Keepers, staking and slashing
Docs

Keepers, staking and slashing

Keepers bond to fire strategies, and a false fire is provable on-chain and costs the keeper its whole bond.

Bonding

KeeperBond on Elysium decides who may fire the StrategyRegistry. A keeper is active while its bond is at least minBond, it has not asked to unbond, and it has never been slashed.

Bonds are native HYPE today. The stake token can be set once, only while nothing is bonded; that token is $SCRIPT, and from then on bonds are in $SCRIPT only. minBond moves only inside fixed bounds, and raising it deactivates keepers below the new value until they top up; it never touches a bond.

The Scriptcore keeper bonded today is 0x194A701A9523a6B5F0D2aCba06E41F48BF600bbB. Anyone can bond and run another one.

Bond lifecycle

activebond >= minBondunbondinginactive at once, 2 dayswithdrawnbond returnedslashedwhole bond, for goodrequestUnbondunbondbond againfalse fire provenchallenge
Unbonding deactivates at once and takes 2 days, longer than the 1-day challenge period, so every fire stays slashable.

Challenging a fire

Anyone can challenge a fire within one day:

  1. Reveal the values the keeper committed. They must hash to the fire's snapshotHash.
  2. Name a CoreTruth snapshot read within 60 seconds of the fire's snapshot time. CoreTruth holds HyperCore marks and oracle prices read on HyperEVM by TruthProbe and delivered by retryable ticket; nobody can post one by hand.
  3. If any MARK or ORACLE slot differs from CoreTruth's price for its asset by more than 1%, the keeper's whole bond is slashed and the keeper is deactivated for good.
truth window: snapshotTime +/- 60 sfirechallenge period: 1 dayunbond delay: 2 days
The windows that bound a challenge.

A fire can be challenged once. Slots whose asset is not in the named snapshot are not checked.

The keeper makes sure that snapshot exists. After each confirmed Elysium fire with MARK or ORACLE slots, it sends a TruthProbe ticket on HyperEVM, so CoreTruth holds HyperCore's own reading within seconds of the fire. That reading is what a challenge names. The first one, end to end:

  • Fire 0x0b190cd2 claimed a HYPE mark of 61.35.
  • Ticket 0xaca2cba9 read HyperCore on HyperEVM.
  • Delivered on Elysium in 0x9d0c22c3 as CoreTruth snapshot 2: mark 61.35, five seconds after the fire.

Where a slashed bond goes

  • Half, rounded down, goes to the challenger.
  • The other half goes to the registry fee pot for native HYPE bonds, which flows to the burn; for stake-token bonds it is burned to 0x000000000000000000000000000000000000dEaD.

On HyperEVM

Your CoreExecutor checks MARK and ORACLE values itself: each must be within 1% of the live read precompile in the same transaction as the fire, so a keeper cannot lie about them at all. Order prices always come from the live mark, never from the keeper. The other values (mid, funding, open interest, imbalance, change, big trade, positions, the Kinetiq rate) are attested by the keeper alone, which is why your executor fires only for keepers you allowlist with setKeeper.

The house keeper (0x194A701A9523a6B5F0D2aCba06E41F48BF600bbB) fires executors as well as the registry. It finds executors from the factory's Created events, reads each enabled strategy's code, and calls fire on HyperEVM. TWAP slices follow the executor's own on-chain state (stateOf: next slice and start time), so a restart resumes a TWAP where it stopped. Allowlist it on your executor to have it fire your strategies. Every order needs the executor's own HyperCore account funded with USDC in perp margin; HyperCore's minimum order value is 10 USDC.

Verifying a fire yourself

Every Fired event carries the strategy id, the trigger, the snapshot time, the values and the snapshot hash. To check one: decode the registered code, re-run it on the values (it must be true), recompute the hash, and compare the MARK and ORACLE values with the CoreTruth snapshot nearest the snapshot time. The app and the /api/tape route do the first two for every fire they show.