Skip to content

Keepers

A market only moves when someone applies a reading, and a ticket only fills when someone executes it. Nothing about that work is privileged: anyone can do it, and the bounty share of every fee pays for it. There is no keeper contract and no allowlist. Only the price rounds themselves need the price signers’ signatures (see Relayed prices).

Each market’s needsWork() view says what it needs:

Field Meaning
executable A ticket can fill now: its reading has been applied, or the market is frozen
readingReady A call would apply a reading. Keepers act on it only while barrier is set: an idle market’s pots move when its users trade or poke
silent A call would freeze the market: its oldest waiting ticket has had no reading for 7 days
retirable The market’s version or listing was sunset, or its feed switched off: retire() is open
barrier The commit time of the oldest ticket still waiting, or 0
accruedBurn The burn share collectFees() would send to the burn vault
Job Call What it does
Execute execute(maxTickets, beneficiary) Applies the readings that are ready and fills up to 64 matured tickets, oldest first, each at the NAV right after its own reading. The bounty goes to beneficiary
Poke poke() The same, up to 16 tickets, with the bounty to the caller
Retire retire() Retires a market once retirable is set. Tickets committed before the call still fill at their own readings; the market freezes at the first round observed more than 60 seconds after the call, and its holders redeem at that price
Collect collectFees() Sends the market’s accrued burn share to the burn vault
Reclaim reclaim(id) Returns a set-aside redemption’s tokens to its owner (only a settlement bug sets one aside)
Claim claimFor(account) Sends an account the HYPE it is owed; the account itself can use claim(to)

Each call does at most 32 readings, and reports how many readings and tickets it handled and whether more is left (more). A duplicate call, such as a second poke with nothing new to read, does nothing.

No commit ever fills a ticket: only pokes and execute calls do, so keepers matter for every waiting ticket. When they act doesn’t change the price a ticket fills at: that is fixed by the first reading after its commit.

A market applies every round of its feed, once and in order. Rounds are posted when some market on the feed has a ticket waiting, so a sibling nobody touched for a while keeps a backlog of those rounds, and whoever executes its next ticket walks it, up to 32 rounds per call, about 19,000 gas a round. Each market on a feed walks the same rounds on its own. A keeper can skip a backlog that the waiting tickets’ bounties don’t pay for, and whoever holds a small ticket can always execute it themselves.

The execute call whose mint rolls a side to a new epoch also deploys the side’s new token, about 260,000 gas more, once per roll. Estimate gas before sending an execute. Keepers never convert anyone’s tokens: holders convert their own, and redemptions take old tokens directly.

10% of every fee goes to bounties. Executing a ticket earns that ticket’s bounty share, up to 0.001 HYPE, and the rest of the share goes to the burn; there is no bounty pool. A call’s bounties are added up and kept for the beneficiary in the market, which collects them with claim(to). A refunded ticket pays no fee and so no bounty.

The bounties also pay for the rounds the tickets wait on: there is no reading fee. On a quiet market a lone ticket’s round and its execute cost about 328,000 gas, about 0.000164 HYPE at Elysium’s 0.5 gwei minimum base fee. The bounty share of a mint at the 0.05 HYPE minimum is 0.0002 HYPE, which covers that with 22% to spare, and a call that fills several tickets shares the cost. Smaller shares rely on bigger tickets sharing the call, or on their owners: Execute on the market page fills a matured ticket for the gas and pays its bounty to whoever sends it.

A few addresses can never be paid by a market: the market itself, its side tokens, its feed, the factory, the Registry, the burn vault, Multicall3, WHYPE, the market implementation and its four facets. A poke, or an execute that names no beneficiary, sent from one of them forfeits its bounties to the burn, and naming one as the beneficiary is refused. Any other contract, a keeper’s own batching contract included, is credited like any account, even if it can’t receive HYPE, and collects with claim(to). A call can fail only as a whole: a call short of gas reverts, and never refunds, freezes or sets aside a ticket.

Sagitta runs a keeper of its own, with a standby that takes a job only once it has been due a while longer. Neither has special rights: every call they send is one anyone could, and every round they post carries the price signers’ signatures like any other. The keeper pays for its own work from what the work earns: bounties and the burn’s grid fees. It:

  1. posts relayed rounds the price signers sign: the reading every waiting ticket needs, a retiring market’s freeze reading and the first round a new listing starts from, each inside its post window, and each listed by GET /api/readings; and, on its own schedule, HYPE’s price in US dollars, which no market reads (see HYPE in US dollars);
  2. executes: the due tickets of every market, the longest-waiting first, up to 64 tickets a call, and the execute that freezes a silent market;
  3. retires: each market whose retirable is set, and the executes of a retired market until it freezes;
  4. collects each market’s burn share when it is worth the gas, and withdraws its own bounties with claim;
  5. runs the burn: posts the four grid readings each burn needs, then calls buyAndBurn() inside its window, and collects the grid fees it has earned (see The burn);
  6. lists: checks every stock token against the listing floor daily, writes the feed-list proposals for the timelock, lists each newly listed stock token’s first market, and watches listed stock tokens for the quick stop (see Stock tokens);
  7. watches: compares a stock reading with the record of Jupiter’s answer kept when it was signed or its own sample of Jupiter, a copied round with the Chainlink round it names, and a HYPE / USD round with Hyperliquid’s one-minute high and low, fires the sentinel on a mismatch, and raises a round it can’t check with Sagitta’s operators (see Relayed prices).

It simulates every call before sending it, and never sends one that would revert. It sends a call only when what the call earns it covers the gas, plus a margin, with three exceptions that go out whatever they pay: a round a waiting ticket needs, a retire with the executes of a retired market until it freezes, and the execute that freezes a silent market. Elysium orders transactions by their priority fee; the keeper tips nothing on ordinary work and a little on a round at its last chance to post. It warns its operators when a ticket has waited six days with no reading, a day before the market would freeze.

  • With the SDK: readWork lists what each market needs, and its builders make the poke, execute, retire and collectFees calls for your key to sign (see SDK).
  • With the CLI: node sagitta.mjs work lists what is pending, then poke <market> and execute <market> (see Agents).
  • Over HTTP: GET /api/arena?keeper=1 lists the same work, and POST /api/arena builds each call for your key to sign (see The trading API).
  • Without it: call the market contract directly (see Contracts and Exit without the site).

Grid readings for the burn are open to anyone too: whoever posts one that a burn uses earns the vault’s grid fee, 0.00024 HYPE, and collects it with the vault’s claim (see The burn).