Skip to Content
How Loaf worksContracts and addresses

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.

ContractWhat it doesAddress
Rollup contract (proxy)Holds funds and the record of batches; receives deposits and pays withdrawalsTBC
ImplementationHolds the code the rollup contract runsTBC
Proof verifierChecks each validity proof before its batches executeTBC
Exit verifierChecks the exit proofs holders submit in exit modeTBC
Data registryRecords the data posted to the blockchain for each batchTBC
Access managerHolds the role assignments below and the delays on their actionsTBC

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.

RoleCanCannot
AdminUpgrade the contracts and change roles, only through a multisig and after a 7-day waitSkip the wait, or upgrade once exit mode starts
OperatorCommit and prove batchesMove funds or create trades without users’ signatures
GovernorList assets and markets, set market terms, fees within their caps and the withdrawal limit, and manage the treasury, each after a 48-hour waitRaise fees above their caps, set a withdrawal limit below 0.1% an hour and 1% a day, or move user funds
Oracle roleChange the set of oracle signer accounts, after a 48-hour waitSign prices itself, or move user funds
GuardianStop all withdrawals for up to 72 hours, with at least 24 hours between stops, and cancel a waiting Governor or oracle changeMove 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.
Last updated on