Skip to content
docs

RELAY_ORDER_LIFETIME_S

const RELAY_ORDER_LIFETIME_S: 604800 = 604_800

Defined in: protocol-swap2-relay/src/config.ts:114

How long Relay gives an order: the output deadline and every refund deadline are the quote time + 7 days (every order seen, 2026-11-02 … 2026-11-10). The verifier holds a deadline to this lifetime, which is also what makes an old order stale: one issued more than RELAY_MAX_ORDER_AGE_S ago is refused even when everything else fits.