> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ambichain.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Security model

> What protects every trade, what each route trusts, and exactly what admins can and can't do.

![The protections around every escrow](https://mintcdn.com/ambi/zxJ8qP3zW6Y_3Fqs/images/art/layers-light.webp?fit=max\&auto=format\&n=zxJ8qP3zW6Y_3Fqs\&q=85\&s=864296cba5018ac30a3a8d10fb108827)

## Design

| Protection | How |
| - | - |
| Isolated risk | Each order is its own escrow, filler and route. No pool. |
| Exact binding | A payment counts only for the statement it was made against, which commits to every term and the matched filler. |
| One outcome | Router and inbox each refuse a second, conflicting outcome per statement. |
| Authenticated delivery | Inboxes accept outcomes only from the canonical messenger, on behalf of their own router. |
| Pinned verifiers | Only approved inboxes; code hash checked at listing, matching and settlement. |
| No free options | The maker's bond is lost by a matched filler who doesn't pay. |
| No last-second matches | 30 minutes must remain before `payBy` to list and to match. |
| Pull payments | Settlement only writes credits. Withdrawals clear the credit before transferring. |
| Reentrancy | Every function that moves value is `nonReentrant`; verifier calls are `view`. |
| Exact amounts | Balance checks on deposit, payment and withdrawal reject tokens that move less or more. |

## What each route trusts

* **The market** trusts no one with funds. No address can move escrow or credits except through the rules above.
* **Arbitrum One** settlement trusts what every Arbitrum withdrawal trusts: the rollup's validators and its bridge and outbox contracts.
* **Base** settlement trusts what every Base withdrawal trusts: its fault-proof system and the `OptimismPortal`.
* **Each route's inbox** trusts only its router, and the router has no owner.

## Admin powers

| Role | Can | Can't |
| - | - | - |
| Market owner | Propose a new fee recipient | Touch escrow or credits, change the fee rate or `MIN_WINDOW`, pause, upgrade |
| Fee recipient | Accept the role; withdraw fee credits | Anything else |
| Registry owner | Approve inboxes; disable inboxes for new listings | Affect any order already listed |

Routers and inboxes have no admin at all. Both owner roles use two-step transfers.

## Status

v1 is tested end to end against Ethereum, Arbitrum One, Base, HyperEVM and Elysium, with adversarial tests, dispute scenarios, and fuzzed ledger, fee and claim-timing tests. An external audit is next.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.