Important Note on Refund Processing Times:
Refunds are not instant. Expired swap deposits must pass through periodic batch processing, oracle verification, and canonical bridge confirmations, a process that takes several hours to settle. Do not instruct end-users to expect immediate refunds.
When Refunds Occur
Refunds occur when no relayer fills a deposit before itsfillDeadline expires. This is rare on mainnet, but a deposit becomes eligible for an automated refund when:
- The
fillDeadlinepasses without any relayer filling the cross-chain intent. - No partial fills were executed.
On-Chain Refund Flow
1
Swap Expiration
The
fillDeadline passes and the swap status updates to expired. User funds remain safely escrowed in the origin liquidity pool contract.2
Bundle Processing
The system bundles the expired deposit into the next global settlement batch.
3
Settlement Verification
The batch undergoes verification and an optimistic oracle challenge period to confirm valid state transitions.
4
Refund Execution
Upon finality, the refund root is transmitted to the origin chain via canonical bridges. Escrowed funds are returned automatically to the
address of the wallet, and the API status updates to refunded..png?fit=max&auto=format&n=ML35RDblT1Ol-zJb&q=85&s=062e79ad9c4540929eec204aff020178)
.png?fit=max&auto=format&n=ML35RDblT1Ol-zJb&q=85&s=f6328956931c9664a2a070c2edb6e9b3)