Skip to Content

Custody

Loaf is non-custodial: user funds are held by the Loaf contract on Arbitrum, not by Loaf Markets. Your Loaf wallet owns your account, and funds move only through orders and withdrawals signed for it, which every proof checks. The contract pays withdrawals only to your Loaf wallet: what a valid proof supports, or in exit mode, what your own proof shows.

A centralised exchange holds customer deposits in its own accounts, and users depend on it to pay withdrawals. On Loaf, withdrawals are paid by the contract against a valid proof, and exit mode allows withdrawal without Loaf’s systems if Loaf stops operating.

Deposits and withdrawals

You deposit USDC or USDT on Arbitrum into the Loaf contract. Loaf’s relayer sends the transaction for you, so you pay no network fees, and every proof checks that deposits are credited. Deposit and withdraw walks through the steps in the app.

To withdraw, you request a withdrawal in the app. It is credited when its batch executes, and Loaf pays it to your Loaf wallet automatically, usually within minutes. Property tokens can be withdrawn the same way, and once you send them on to a wallet of your own, they are standard tokens in your sole care.

Forced withdrawals

If Loaf ever ignores a withdrawal, you can request it directly on the blockchain for a small fixed fee TBC. You send this request to the Loaf contract yourself, and Loaf must include it within 14 days. If it is still waiting after 14 days, exit mode starts.

The number of requests waiting is public, in the request queue described on Contracts and addresses.

For perps, you can also force a pool’s exit on the blockchain. Each of the pool’s positions closes at the oracle price against the backstop, and the pool’s collateral is then paid out.

Withdrawal limit

Money leaving the Loaf contract is paced by a limit on each asset: per hour, the larger of 1% of the asset’s balance or a floor, and per day, the larger of 10% or a floor TBC. A withdrawal over the limit waits, and a large balance comes out in parts. A Guardian can also stop all withdrawals for up to 72 hours if something goes wrong, but it cannot move funds. Exit mode is exempt from both, because it is the way out if Loaf stops operating.

Exit mode

Exit mode is the state in which the Loaf contract on the blockchain freezes and every holder withdraws using their own proof, if the operator ever fails to process a withdrawal request within 14 days. It is designed so that holders can withdraw even if Loaf stops operating altogether.

A request goes unprocessed

A withdrawal requested directly on the blockchain is still not included after 14 days.

The contract freezes

Exit mode starts, and the contract accepts no further batches. No one can upgrade the contracts from then on, so the exit rules cannot change.

You rebuild your balance

Your balance is rebuilt from the account state published on the blockchain, without relying on Loaf; see Data on the blockchain.

You submit an exit proof

You build a proof of your balance and send it to the contract TBC.

The exit verifier checks it

The exit verifier contract checks your proof, and the contract releases your funds.

The prover chooses nothing. The frozen state fixes every amount, and an exit proof can only show what that state records. Open perpetual futures positions settle at the last proven oracle price and funding. Deposits still in the request queue follow their own exit rules TBC.

Warning. Custody depends on the Loaf contracts and proof system working as designed, and leaving through exit mode takes at least 14 days. Before exit mode, the Admin can upgrade the contracts after a 7-day wait.

Last updated on