Refunds
A ticket only ever fills at one reading: the first reading after its commit (see Delayed NAV). It never fills at some other price. In the few cases where it can’t fill, the market refunds it, whole and with no fee:
| Ticket | Refund |
|---|---|
| Mint | Your HYPE back |
| Redemption | Your side tokens back |
A refunded ticket never fills at any NAV. Refunds go to the ticket’s refundTo, the committer unless the commit named
another address.
A market never loses a ticket’s reading: every relayed round stays in its feed for good, readable by its id, so a keeper that comes late still finds the reading each ticket fills at. A ticket is refunded only in the cases below.
When a market freezes
Section titled “When a market freezes”A market freezes for good in two cases:
| Case | It freezes at | Mints still waiting | Redemptions still waiting |
|---|---|---|---|
| Silence. The oldest waiting ticket still has no reading 7 days after its commit: a token whose price stopped, a feed whose rounds stopped being posted, or a signer set left without enough signers | Its current price | Refunded (reason Unmatured) |
Filled at the frozen price, less the 4% fee |
| Retirement. The market was retired, after a sunset or a switched-off feed | The first reading that would fill a ticket committed at the retirement: a round observed more than 60 seconds after it | Each fills at its own first reading, at the latest the freeze reading. If the market freezes for silence first, the mints not yet filled are refunded | Each one committed before the retirement fills at its own first reading, at the latest the freeze reading; those committed after it fill at the frozen price |
A frozen market reads no price again, takes no mints, and takes redemptions of any size, each at the frozen price less the fee. A stock token’s weekend or holiday closure never freezes a market.
Mints too small to fill
Section titled “Mints too small to fill”A mint is also refunded, whole, if its net amount would buy no tokens at all, or if it goes into an empty side and would
leave that side with less than 10⁻⁶ of a token. A mint of at least the 0.05 HYPE minimum always revives an empty side,
and previewMint flags these cases before you commit.
What a refund is not
Section titled “What a refund is not”- Not a cancel. You can’t ask for a refund. Tickets have no cancel; a refund happens only in the cases above. A pause, a sunset or a retirement never refunds a ticket that already matured.
- Not a loss of your position. A refunded redemption gives your side tokens back, still a share of their pot, and you can commit again. If its side rolled to a new epoch meanwhile, you get the same old-epoch tokens back, still worth what they were.
- Not a size limit. A mint is never refunded for making its side’s token count too large: the side rolls to a new epoch instead. Only a side that had already rolled about four billion times would refund such a mint in full, and no market will get there.
How a refund is paid
Section titled “How a refund is paid”A refunded mint’s HYPE is sent to refundTo with a fixed gas allowance. If the send fails, for example to a contract
that rejects HYPE, the market keeps it for that address, which collects it with claim(to). A refunded redemption’s
tokens are transferred back at once.
If a ticket’s settlement ever reverts, which only a bug could cause, the market sets that ticket aside instead of
blocking the queue: a mint’s HYPE is kept for refundTo to claim, and a redemption’s tokens stay in the market until
anyone calls reclaim(id), which returns them to refundTo. Neither pays a fee.