For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Trilobyte Protocol

Decentralised lending infrastructure on Stellar

Real-world businesses borrow working capital; investors earn yield on incoming cash flows, split into a senior and a junior tranche.

Trilobyte is currently in active development on Stellar Testnet. Smart contracts are undergoing auditing and are not yet deployed on mainnet. This documentation reflects the tranched-waterfall protocol as of September 2026 — see the Changelog.

What is Trilobyte?

Trilobyte is a decentralised lending protocol built on Stellar's Soroban smart contract platform. It connects businesses that need working capital with investors who want transparent, yield-bearing exposure to real-world cash flows.

Each loan is represented by a Vault — a smart contract that manages the full lending lifecycle from fundraising to repayment. Pool Managers underwrite and structure loans, while investors fund them in one of two tranches and earn yield from the borrower's periodic repayments.

How It Works

  1. A Pool Manager evaluates a business and structures a loan, including a leverage ratio that sets the size of the junior tranche

  2. Junior investors (starting with the manager's own collateral) fund the first-loss junior tranche; once it is locked, senior investors fund the rest

  3. The Borrower receives the capital and makes periodic repayments

  4. Each repayment flows through a strict six-bucket waterfall — reserve fee, senior interest, senior principal, junior interest, junior principal, then residual to the borrower

  5. Investors claim yield from their tranche's pool; on default, recoveries pay senior in full before junior sees anything

See Tranches and the Waterfall for the non-technical walkthrough, or Payments & the Waterfall for the mechanics.

Key Features

  • Two tranches, one first-loss cushion — the pool manager's own collateral anchors the junior tranche; senior capital is capped at a governed leverage multiple of junior

  • On-chain transparency — every deposit, payment, and claim is recorded on Stellar

  • SEP-41 debt tokens — investors receive non-transferable tokens representing their tranche position

  • Manager accountability — pool managers stake collateral that gets slashed on default, after borrower collateral (if any)

  • Optional real-world-asset collateral — a borrower can additionally pledge a tokenized asset into a shared escrow, seized first on default

  • Covenants and exposure caps — borrower/manager concentration limits, a reporting covenant, and a cash-pool lock while a borrower is behind

  • Optional compliance gate — a protocol-wide allowlist can gate investing, borrowing, and vault creation

  • Timelock governance — critical protocol changes (fees, roles, upgrades) go through a time-delayed governance process, hardened so upgrades themselves can require the timelock

  • Built on OpenZeppelin — Access Control, Pausable, Upgradeable, and FungibleToken modules

What is Trilobyte?Tranches and the WaterfallHow a Loan WorksFor InvestorsFor Pool ManagersSmart Contract Architecture

Last updated