Deadlines and refunds¶
The contract uses Ethereum block time. t0 is the deadline for marking a swap ready. t1 is the end of the ordinary claim window. The quote’s expiry and the reverse funding deadline come earlier in the process. Use the deadlines and late-window length for the deployment that holds your swap. The table applies while the escrow is unsettled. Settlement contract
| If a swap stalls | What the wallet can do |
|---|---|
Forward, before t0 |
If ready, the user can claim. If the deposit is missing or short and the swap is still unready, the maker can cancel. Cancellation reveals the maker’s share, so the wallet can sweep back any ZEC it sent. |
Forward, from t0 until t1 |
The user can claim even if the maker went offline before marking ready. |
Forward, from t1 |
Only the maker can refund during the contract’s late window. A refund releases its share for the wallet to recover the ZEC. If the window ends with the escrow still open or ready, the user can claim again. |
| Reverse, still unready | The user can refund. An unready reverse escrow stays refundable even after t0. If the wallet already signed ready, it waits until that authorization can no longer land, then checks the chain before requesting a refund. |
| Reverse, already ready | The maker has until t1 to claim. From t1 onward the user can refund an unclaimed escrow. The refund reveals the user’s share so the maker can recover any ZEC it deposited. A separate payout shields the tokens into the user’s committed refund note. |
Resume after an interruption¶
If the app closes or a request times out, resume with the same wallet and saved swap. Check the recorded transactions and current chain state before retrying a payment. A submitted transaction can still confirm after a timeout. If a claim or refund settled but shielding failed, retry the payout. If Railgun returned the tokens to the swap’s vault, the wallet can authorize a rescue to shield them again. Recovery and persistence