Exit without the site
Your side tokens sit in your own wallet, and the market contract pays out to whoever holds them. You never need sagitta.broker, its API or any Sagitta server to leave a market.
What you need
Section titled “What you need”- The wallet that holds the side tokens, with a little HYPE for gas.
- Any Elysium RPC endpoint, for example the public one at
https://rpc.elysium.kinetiq.xyz. - The market’s address: from its page on sagitta.broker, from the explorer at
elysium.kinetiq.xyz/explorer (a side token’s
market()names it), or from the Registry’sMarketRegisteredevents (see Contracts).
The steps
Section titled “The steps”-
Commit a redemption on the market contract:
commitRedeem(side, shares, recipient, refundTo), with side0for UP or1for DOWN andsharesin the token’s base units (18 decimals). Use the explorer’s contract page orcast send. The market takes the tokens from your wallet itself, so no approval is needed. For tokens of an earlier epoch, callcommitRedeemEpoch(side, epochId, shares, recipient, refundTo). -
Wait for your reading, the first reading after your commit: a new round of the market’s relayed feed, observed more than 60 seconds after your commit. Sagitta’s keeper posts the rounds waiting tickets need, each signed by the price signers, held to the rules on Relayed prices and listed by
GET /api/readings. An Ondo token gets none while it is closed, and the first one after a closure fills nothing.Once that round exists, any keeper’s poke or execute call fills your ticket, and you can make the call yourself. Until it exists, a poke changes nothing and the ticket keeps waiting.
-
Receive your HYPE, paid to
recipientat the side’s NAV after that reading, less the 4% fee. If the payment can’t be sent, the market keeps it forrecipient, who collects it withclaim(to).
With cast
Section titled “With cast”RPC=https://rpc.elysium.kinetiq.xyzMARKET=0x... # the marketME=0x... # your wallet
# What you hold: the market's UP token (DOWN is the same with side 1)UP=$(cast call $MARKET "epoch(uint8)(uint256,address)" 0 --rpc-url $RPC | tail -1)SHARES=$(cast call $UP "balanceOf(address)(uint256)" $ME --rpc-url $RPC | cut -d' ' -f1)
# 1. Commit the redemption; refundTo 0x0 means yourselfcast send $MARKET "commitRedeem(uint8,uint256,address,address)" 0 $SHARES $ME 0x0000000000000000000000000000000000000000 \ --rpc-url $RPC --account me
# 2. Your ticket's id is the first indexed topic of your transaction's Committed event# (right after your commit it is also queue()'s tail - 1). Check whether it has matured:cast call $MARKET "matured(uint256)(bool)" <id> --rpc-url $RPC
# 3. Once it has matured, fill it (and earn its bounty yourself)cast send $MARKET "execute(uint256,address)" 64 $ME --rpc-url $RPC --account me
# Only if the payment couldn't be sent to youcast send $MARKET "claim(address)" $ME --rpc-url $RPC --account meWhy this always works
Section titled “Why this always works”- The core contracts are immutable: no one can change a deployed market’s code. Its router and facets are fixed at deployment, with no upgrade path (see Elysium).
- No admin path can touch the HYPE in pots or tickets.
- Redeeming, executing and claiming never call the Registry or the burn vault, so no pause, sunset or setting can block them. The guardian’s and the sentinel’s pause stops new mints only.
- Once an old version is sunset (a separate timelock operation from shipping its replacement), its mints stop and its pots stay redeemable forever.
- If a market’s oldest waiting ticket has had no reading for 7 days, the market freezes and every holder redeems at the frozen price (see Refunds).
See Security for everything admins can and can’t do.