Exitisium
Using it / Exiting
Using it

Exiting

One call on Elysium starts the withdrawal, writes the terms and opens the auction. HYPE and gateway tokens take slightly different paths.
exitNative()msg.value = amountsendTxToL1{value}settle(terms) + HYPETicketVaultone deliveryexitToken()USDC, kHYPE, ...gateway outboundTransfertokens to TicketVaultsendTxToL1settle(terms)TicketVaulttwo deliveries
HYPE leaves in one message. A gateway token leaves through its gateway, plus one message for the terms.

HYPE

ExitGate.exitNative(recipient, maxDiscountBps, rampSeconds, fillWindow) sends one outbox message to TicketVault that carries the HYPE and the terms together. At maturity they arrive in the same call, so the payout happens in that call too.

Gateway tokens

A bridged ERC-20 cannot carry data through its gateway. ExitGate.exitToken sends the tokens through the gateway router to TicketVault and sends a second message with the terms. Both mature after the same challenge period. If the terms arrive first, the payout waits for the tokens, and anyone can call redeem(terms) once they land.

TokenElysiumHyperEVM
HYPEnativenative
USDC0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B650xb88339CB7199b77E23DB6E890353E22632Ba630f
kHYPE0x248888D396A546A69A188f3Deb476964e581E9d00xfD739d4e423301CE9385c1fb8850539D657C296D

The terms

Every exit writes the same struct, and a ticket's id is its hash: exit id, token on HyperEVM, amount, recipient, discount cap (at most 5%), ramp time, opening time and the last second a fill is accepted (at most 24 hours later).