Custody
Where your tokens are at each stage of a loan, and exactly who can move them.
Before a loan
Your tokens stay in your wallet. Signing an offer or request reserves nothing. An approval lets the Return contract move up to the approved amount, but only inside a transaction that opens a loan on terms you signed or accepted yourself, or when you pay back.
During a loan
The collateral sits in the Return market contract. The contract is the only custodian, and it releases collateral in exactly three ways:
| Path | Who receives the collateral | Who can trigger it |
|---|---|---|
| The borrower repays | The borrower | The borrower |
| Someone else repays, then Get collateral back | The borrower | The borrower |
| The deadline passes unpaid, then Claim collateral | The note holder | Anyone |
No other function moves collateral. We have none (see What we control), and the contract cannot be upgraded to add one.
Money held for note holders
If a payback cannot be delivered to a frozen note holder, the contract holds it in the same way, released only to the current note holder. See Getting paid back.
Reserved balances
The contract tracks, per token, how much it owes: all locked collateral plus held paybacks. That total is reserved. Anything above it (for example, tokens someone sent by mistake) is surplus, which we can send to our treasury. Reserved funds can never be withdrawn as surplus. This relies on each admitted token having one address per balance, which our token review checks.
Last updated