Using it
Filling and tickets
A filler pays the exit's recipient on HyperEVM and receives an ERC-721 ticket. The ticket can be held to maturity or sold.
Check the exit
Before paying, a filler reads the exit on Elysium: the ExitOpened event, the terms and exitHash(exitId) on ExitGate. Fillers usually wait until the batch holding the exit is posted to HyperEVM. The vault cannot check Elysium for them, so this read is the filler's own risk. A fill whose terms differ from the real exit never pays, and the user is paid by the real exit either way.
Fill
TicketVault.fill(terms, ticketTo)
price = amount - amount * discountBps(now) / 10_000
HYPE: msg.value == price, sent to terms.recipient
ERC-20: price pulled from the filler, sent to terms.recipient
mints ticket id = uint256(keccak256(abi.encode(terms)))Fills close at the exit's deadline and once its terms are delivered. One set of terms can be filled once.
The ticket
Exit #48213 · USDCEXIT-TKT200,000.0017:22:05bought at 0.100%, worth 0.072% off face todayto maturity
Tickets are ERC-721 tokens on HyperEVM named EXIT-TKT. They transfer like any NFT, so a holder can sell one before maturity to anyone who prefers the remaining hours. At maturity the vault pays whoever holds it and burns it.