Skip to content

Kadia Lending: Supply and Withdraw

You Supply an asset to its pool, and get pool shares for it. Your shares are a claim on a slice of the pool: its cash plus what borrowers owe it, less the pool’s reserve. As borrowers pay interest, each share is worth more.

  • You get amount × shares outstanding ÷ pool value shares. The first supplier gets one share per unit.
  • Priced cautiously. A pool action is built for a named block and stays valid for a short window of 5 blocks. Supply is priced at the window’s worse end for you, as if the pool had already earned 5 blocks of interest at its highest rate. That stops anyone gaining by landing late in the window (EM v1 §7).
  • A large Supply lands in its own block. A Supply worth more than 1% of the pool must be included exactly at its named block, so it can’t be timed against others.
  • No rounding surprises. The app refuses a Supply that would lose more than 0.1% of its value to rounding. Each pool also started with a small seed whose shares are burned, so share prices can’t be skewed when a pool is new.
  • Deposit caps. A Supply that would take the pool past its cap is refused. On testnet, pools lending tETH, tDOGE and tBNB aren’t deployed yet; they’re planned to open later, by a release.
  • Minimums on testnet: 0.1 ERG in the ERG pool, and the smallest amount the app offers in each other pool.

You Withdraw by handing back shares, and get shares × pool value ÷ shares outstanding, rounded down.

  • No fee. Lenders pay nothing to withdraw. The only charge to lenders is the protocol’s cut of interest; see rates.
  • Limited only by cash. You can withdraw what the pool holds in cash. When it’s fully lent, you wait for repayments or new supply. A busy pool’s rate rises, which draws both.
  • Always open. A pause never stops a Withdraw, it reads no price, and it works while an upgrade is announced (when new Supply waits).
Technical details

Source: kadia-lending main at commit a7bea30 (a7bea306537ae4ca4fb2a5ad1c4ff473127099eb, with the final review’s fixes): docs/specs/economic-model-v1.md (EM v1), the prototype’s docs/specs/economic-model.md (EM) for what v1 keeps, and testnet relaunch 2’s launch manifest for the testnet figures: its config, sha256 8f18494e… (8f18494ec1c6d4d44529e53025ac55e28ff1c4a5a8288144a736b6df604a8e9f), from kadia-lending deploy/v1-relaunch2 at 59f43eb, as the lending app pins it.