Skip to main content

Expiry refunds

When a matched filler doesn’t pay by payBy:
1

Record the expiry

Anyone calls expire(order) on the destination router. It records ExpiredUnpaid and sends it home.
2

Wait for the window

The expiry is claimed on the inbox like a payment, and settles once its 30-minute dispute window closes. A filler who did pay disputes, and the bridge decides.
3

Refund

Anyone calls refundExpired(id, ""). The maker is credited the escrow and the filler’s bond.
An order that expired unpaid and refunded the makerAn order that expired unpaid and refunded the maker

Mutual cancel

A matched order can’t be cancelled by one side. Either party proposes with proposeCancel, and the other accepts with acceptCancel. acceptCancel first asks the inbox whether Paid has already been recorded. If it has, the cancel reverts and the filler’s payment settles normally. A payment still in flight to Ethereum is not visible yet, so a filler who has paid should never accept a cancel. Mutual cancel is the way out when a route stalls before anyone pays.