Contracts and addresses
Loaf’s contracts on Arbitrum hold user funds, check proofs and record each batch, and you can inspect every one at its public address. Each address opens on Arbiscan, the blockchain’s public explorer, where anyone can read a contract’s state and history.
Contracts
The rollup contract is a proxy: it keeps a permanent address, funds and records, but runs code from a separate implementation contract. An upgrade points the proxy at a new implementation, under the rules in the next section.
| Contract | What it does | Address |
|---|---|---|
| Rollup contract (proxy) | Holds funds and the record of batches; receives deposits and pays withdrawals | TBC |
| Implementation | Holds the code the rollup contract runs | TBC |
| Proof verifier | Checks each validity proof before its batches execute | TBC |
| Exit verifier | Checks the exit proofs holders submit in exit mode | TBC |
| Data registry | Records the data posted to the blockchain for each batch | TBC |
| Access manager | Holds the role assignments below and the delays on their actions | TBC |
Each market’s property token has its own contract, with its address on the market page and in the issuer’s documents.
TBC
Roles
Five roles can act on the contracts, each within limits.
| Role | Can | Cannot |
|---|---|---|
| Admin | Upgrade the contracts and change roles, only through a multisig and after a 7-day wait | Skip the wait, or upgrade once exit mode starts |
| Operator | Commit and prove batches | Move funds or create trades without users’ signatures |
| Governor | List assets and markets, set market terms, fees within their caps and the withdrawal limit, and manage the treasury, each after a 48-hour wait | Raise fees above their caps, set a withdrawal limit below 0.1% an hour and 1% a day, or move user funds |
| Oracle role | Change the set of oracle signer accounts, after a 48-hour wait | Sign prices itself, or move user funds |
| Guardian | Stop all withdrawals for up to 72 hours, with at least 24 hours between stops, and cancel a waiting Governor or oracle change | Move funds, or cancel an upgrade |
A multisig is an account that acts only when enough of its signers approve TBC. The 7-day wait gives you time to withdraw before an upgrade applies. Each asset also has a withdrawal limit, per hour the larger of 1% of its balance or a floor, and per day the larger of 10% or a floor TBC; exit mode is exempt. Anyone can deposit, execute a proven batch or exit, without permission from any role.
Warning. Before exit mode, the Admin can upgrade the contracts after a 7-day wait, which changes the code that holds your funds. If you disagree with an upgrade, you can withdraw before it applies.
Verify it yourself
Note. Read these values from the rollup contract on Arbiscan to check the state of Loaf yourself:
- Batch pointers: the latest committed and executed batch numbers, which show how far settlement has progressed.
- Exit-mode flag: whether exit mode is active.
- Request queue size: how many requests made directly on the blockchain are waiting to be included.