Skip to content

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.

  • 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’s MarketRegistered events (see Contracts).
  1. Commit a redemption on the market contract: commitRedeem(side, shares, recipient, refundTo), with side 0 for UP or 1 for DOWN and shares in the token’s base units (18 decimals). Use the explorer’s contract page or cast send. The market takes the tokens from your wallet itself, so no approval is needed. For tokens of an earlier epoch, call commitRedeemEpoch(side, epochId, shares, recipient, refundTo).

  2. 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.

  3. Receive your HYPE, paid to recipient at the side’s NAV after that reading, less the 4% fee. If the payment can’t be sent, the market keeps it for recipient, who collects it with claim(to).

Terminal window
RPC=https://rpc.elysium.kinetiq.xyz
MARKET=0x... # the market
ME=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 yourself
cast 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 you
cast send $MARKET "claim(address)" $ME --rpc-url $RPC --account me
  • 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.