EN

Shares and exchange rates

4 minDifficulty Checked 2026-11-10
Key takeaways
  • A share's value is the vault's total assets divided by the shares outstanding.
  • Withdrawals subtract unrealized loss, so everyone who leaves carries part of it.
  • A withdrawal can only pay out assets the vault has available now.

A vault share is a slice of the jar. Its value is simple division: everything the vault is worth, divided by all the shares that exist.

Deposits. The first depositor sets the starting count. After that, each deposit gets shares in proportion to what is already there. Put in 1% of the jar's value and you get about 1% of the shares. The share count always rounds down to a whole number.

Growth and loss. If a connected protocol earns money, the jar is worth more and the share count stays the same. Each share redeems for more. If the protocol loses money, each share redeems for less.

Paper losses. Sometimes a loan looks bad before it has failed. The vault records that as an unrealized loss. It is a warning on the books, not a final number.

A paper loss creates a problem. People who leave early could dodge it and push the whole loss onto those who stay. So withdrawals are priced with the paper loss already subtracted. Everyone who leaves carries a fair part of it.

Available is not total. Money out on loan still counts toward the vault's value. It is not in the jar, though. A withdrawal can only pay out what is in the jar at that moment. If too much is lent out, a withdrawal fails until money comes back.

Withdrawals are first come, first served. There is no queue on the ledger.

Check yourself3 questions
1. A vault holds XRP. How many shares does the first 10 XRP deposit create?
2. What does unrealized loss do to a withdrawal?
3. A vault's total is 1,000 but only 100 is available. What can depositors withdraw now?
Sources
Next lessonPublic, private and fixed-term vaults4 min