Keepers
Keepers post prices and trigger state changes. Anyone can run one.
A keeper is an off-chain process that does three jobs: post prices, trigger Boxes and run housekeeping.
Jobs
| Every | Job |
|---|---|
| 1 s | Fetch Hyperliquid metaAndAssetCtxs and 1-minute candles. Sign and post a price batch for markets with open Boxes or a move above 0.05%. |
| 30 s | Post every listed market, moved or not. |
| 1 s | Scan open Boxes and call poke() on any that crossed a band, hit a trail, liquidation or take-profit, or ran out of budget. |
| 1 s | Settle pending Turbo closes with settleClose() once a newer price is posted. Watch Private Boxes off chain and call collapsePrivate() when the mark crosses the hidden band. |
| 1 h | List new Hyperliquid perps. Swap the buyback reserve to $POP and burn it. Re-measure 1-second moves on Turbo markets and pause Turbo opens where p99 is too high. |
poke()
poke(uint256[] ids) is permissionless. It checks each Box against the latest oracle price and applies whatever is due: collapse, trailing stop, liquidation, take-profit or expiry.
Rewards
reward = min(0.01% · N, 1 USDC) per action, paid from fees
Run one
Anyone can call poke() and collect the reward. Price posting needs a key in the oracle's keeper set. The reference keeper lives in keeper/ in the repository.
Without contract addresses configured, the keeper runs in watch mode: it computes every price batch and every poke and logs what it would send, without sending anything.