> ## 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.

# Settlement and finality

> How a payment on another chain becomes a credit on the market, in about 30 minutes, with the chain's own bridge as the final word.

Settlement turns a payment on the destination chain into a credit on the market. On Base and Arbitrum One it takes about 30 minutes. From HyperEVM to Elysium it takes minutes.

![The path from payment to credit](https://mintcdn.com/ambi/8mjfh67uXoNKAf5Q/images/art/settlement-light.webp?fit=max\&auto=format\&n=8mjfh67uXoNKAf5Q\&q=85\&s=53b46387002e826fc29f13105f3aafc9)

## Fast settlement on rollup routes

A rollup's own bridge takes about a week to carry a message to Ethereum. Ambi doesn't make fillers wait for it. The route's inbox settles on a **bonded claim** instead, and keeps the bridge as the final word.

**1. Claim**

Once the router records the outcome, anyone calls `claimPaid(id)` or `claimExpired(id)` on the inbox and posts the claim bond. Relayers do this automatically within seconds of the payment.

**2. Window**

The claim stands for the route's dispute window, 30 minutes by default. Anyone who sees the claim contradict the destination chain disputes it with the dispute bond.

**3. Settle**

If nobody disputes, the window closes and the market settles: `fulfill` credits the filler, or `refundExpired` credits the maker.

A disputed claim never settles on its own. The order waits for the rollup's bridge to deliver the real outcome, which decides the order and the bonds: whoever was right takes both. A bridge message always overrides a claim, disputed or not.

Fast settlement is safe as long as one honest party watches the destination chain during the window. The maker has every reason to, and relayers watch every claim for everyone. The bonds price griefing. They don't secure the escrow, because a disputed claim can never release funds.

| Route parameter | Default |
| - | - |
| Dispute window (`LIVENESS`) | 30 minutes |
| Claim bond (`CLAIM_BOND`) | 0.01 ETH |
| Dispute bond (`DISPUTE_BOND`) | 0.02 ETH |

Each is fixed in the inbox's code when it is deployed, so the registry's pinned code hash covers them too. The window can be anywhere from 5 minutes to 1 day.

## The bridge behind every claim

> [tab] Base (OP Stack)
>
> 1. The router calls `L2CrossDomainMessenger.sendMessage(inbox, record(statement, outcome), 150000)`.
> 2. A dispute game resolves an output root covering that block.
> 3. Anyone proves the withdrawal on the `OptimismPortal`, waits the proof maturity delay (7 days on Base), and finalizes it.
> 4. The L1 messenger calls `inbox.record`.

> [tab] Arbitrum One
>
> 1. The router calls `ArbSys.sendTxToL1(inbox, record(statement, outcome))`.
> 2. An assertion covering the send is confirmed on Ethereum after the challenge period (about 6.4 days).
> 3. Anyone executes the message through the active `Outbox`, and the bridge calls `inbox.record`.

Every payment sends this message, so the bridge's record always lands, whether or not a claim was disputed. It only decides anything when someone disputed.

## HyperEVM to Elysium

On the [Elysium market](https://docs.ambichain.org/chains/overview.md#two-markets), escrow sits on Elysium and fillers pay on HyperEVM, Elysium's parent chain. Messages from a parent chain to its rollup skip the withdrawal challenge period entirely, so this route needs no claims.

1. The router on HyperEVM creates a retryable ticket through Elysium's Inbox, carrying `record(statement, outcome)` to the Ambi inbox on Elysium.
2. Elysium executes the ticket within minutes. The inbox accepts it only from the router's aliased address.
3. Anyone calls `fulfill` or `refundExpired` on the Elysium market.

The payer funds the ticket with a little HYPE on top of the payment; the router's `quote` gives the amount. If a ticket doesn't execute on its own, anyone can redeem it on Elysium, and the filler can always `resend` the outcome. The inbox ignores duplicates.

## How long it takes

| Step | Base, Arbitrum One | HyperEVM → Elysium |
| - | - | - |
| Match final | About 13 minutes on Ethereum | Seconds on Elysium |
| Payment | Seconds | Seconds |
| Outcome reaches the market | 30-minute dispute window | Minutes |
| If a claim is disputed | The bridge decides, about 7 days | — |

A recorded outcome never expires. If no one settles for a month, the credit is still there when someone does.

![An order between payment and credit](https://mintcdn.com/ambi/YFcg3UdfEoAyYkl8/images/app/order-settling-light.webp?fit=max\&auto=format\&n=YFcg3UdfEoAyYkl8\&q=85\&s=d5b76116bbe945a881b84b32b4b0e4d6)

## Who settles

Anyone, and it makes no difference who. `fulfill` always credits the matched filler, or the receive address they named, and `refundExpired` always credits the maker. See [Relayers](https://docs.ambichain.org/guides/relayers.md).


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