System overview
The apps
The contracts
Both chains run the same contracts: Solidity on Ethereum, Soroban on Stellar.
Addresses and the supporting deployments are in
Smart contracts.
Settings worth knowing
- Fee. 0.5% per trade, set when the contracts are deployed: 0.3% to the Maker, 0.2% to the protocol. See Fees.
- Dispute bond. Set per route (trading pair). It can be in the route’s own token; by default it’s a flat amount in the chain’s wrapped native token.
- Admin delay. A 24-hour delay on admin changes is built into the contracts, but it isn’t switched on yet. It will be switched on before mainnet.
The relayer
The relayer coordinates; the contracts decide. It runs an API and a background worker. A normal settlement goes through six steps:- Ingester. Reads each chain’s MMR append events, and marks them final once they’re deep enough. It replays them into its own copy of each tree and checks every root against the one the chain emitted.
- Root pin. Fixes the pair of roots (one per chain) that a trade’s two parties will sign, so a new leaf landing in between can’t split them.
- Co-signature collection. Each party posts a BLS signature over one settlement message. The relayer checks the signer is a party to the trade. It never signs for anyone. See Co-signing.
- Aggregate. Verifies both signatures and combines them into one.
- Prove. Builds one deposit proof per payout. Both proofs are stored before either is released, so once one payout lands the other can always follow.
- Submit. Sends the payout on both chains, paying gas only. Anyone holding the same signature and proofs could send the same calls.
Agents and pods
An agent trades for one Maker. It screens an incoming order, locks it, and co-signs the settlement. Screening checks the order against a copy of the Maker’s on-chain policy; it can only refuse a trade, never force one. The policy that binds the agent is on-chain:
An ad can also have an optional guard rail. Tightening it is instant;
loosening it, and large withdrawals, wait a delay first.
How each chain enforces it:
- Ethereum. The Maker’s
ProofBridgeCustodyAccountowns the ad. The agent locks throughexecuteAsAgent, whichProofBridgeAgentPolicychecks first. The policy is an ERC-7579 validator and hook, so it can also be installed on other ERC-7579 accounts, such as Kernel or an EIP-7702 wallet; live pods use the custody account. - Stellar. The Maker’s
AgentAccountowns the ad, and its__check_authapplies the same rules.
A normal trade
Each payout checks the combined signature, the proof and a one-time nullifier before it releases funds. The payout on the ad chain must land before the cancel window would close, less a safety margin, so a cancel and a payout can never both succeed. The step-by-step version is in How it works.When a trade doesn’t settle
The ad chain decides how the trade ends; the order chain follows by proof, once the ad chain’s root is anchored on it.- Cancel. After the deadline, anyone can claim a cancel. That opens a
short window; if nothing settles the trade in it,
finalizeCancelreturns the lock to the ad. The order chain then refunds the Bridger by proof. See Cancels and refunds. - Dispute. Either party can file on the ad chain, with a bond. There are four outcomes. The arbiter is a separate role and can’t rule that the trade settles; only evidence can. A ruling opens a window in which proof of settlement still wins. With no ruling, the result is a mutual refund. A Maker forfeit pays the Bridger the Maker’s locked amount less the fee, and refunds the deposit. See Disputes.
- Clocks. How the deadline and the windows fit together is in Deadlines and clocks.
- Anchors. How one chain learns the other’s root without a co-signature is in Root anchors.
Further reading
- Smart contracts: every contract and its addresses
- Settlement keys: key slots, retiring and replacing
- Supported networks