REQUIEM
Docs · 01

Overview

Requiem computes the price a protocol actually wants and stands behind it with a bond. A feed is a recipe: a fixed computation over public inputs (Hyperliquid's books, candles and funding, Elysium's HYPE/USDC pools) such as a TWAP, a VWAP, a mid weighted at a position size, or the size a market can absorb inside a band. Every bonded reporter computes it with the same open code and signs the result with EIP-712; Feeds on Elysium (chain 99901) keeps the median of the signatures, holds it in a challenge window, and serves it as final once nobody has shown it wrong.

Raw HyperCore values (book mids, settled hourly funding, vault equity) run through the same path as feeds of their own, and they are the inputs every recipe starts from.

Why recipes

Reading a raw HyperCore value from a contract is becoming free on Elysium. The number a protocol acts on is something else: a liquidation price that does not follow one trade, a mark sized to the positions it holds, a cap set to what the market can take. Those choices (the window, the size, the band, the venues that count) are the recipe, and they are what Requiem turns into a feed with bonded reporters, a public window and a vote behind every value.

The recipes on chain

  • HYPE TWAP, 1 h (feed 7): The time-weighted average price of the hour that just closed: the mean of its sixty 1-minute closes. A minute without a trade carries the previous close.
  • HYPE VWAP, 1 h (feed 8): The volume-weighted average price of the hour that just closed: each minute's typical price, (high + low + close) / 3, weighted by the volume traded in it.
  • HYPE depth-weighted mid, $100k (feed 9): The midpoint between the average fill of a $100,000 market buy and of a $100,000 market sell against Hyperliquid's HYPE book, so the price reflects size, not the top tick.
  • HYPE sell depth, 2% (feed 10): The USD a seller of HYPE receives before the price is 2% below the mid: every bid on Hyperliquid's book inside that band, plus what Elysium's HYPE/USDC pools pay to move down to the same price.

Any recipe on any Hyperliquid market, with your own window, size, band or hours, is computed live on Compose a feed and by GET /api/request.

Three contracts

  • Bonds holds the reporter set: bonds, ids, unbonding, watchers and the checkpointed weights votes use.
  • Feeds verifies signed batches, stores rounds, serves final values (latest, valueAt, roundAt, pending), and holds each feed's USDC pool and the fees.
  • Court takes disputes on pending rounds and runs the bonded vote that slashes wrong signers or the disputer.

The path of one value

  1. Each reporter reads the feed's inputs, runs its recipe (or the raw read) and signs an Observation(feedId, value, observedAt). Its observe endpoint shows the inputs it used next to every value.
  2. A relayer collects the signatures and calls submit once a round is due (an hour for TWAP, VWAP and funding; a heartbeat or a move past its deviation threshold for the others).
  3. The Feeds contract checks each signer is an active bonded reporter, takes the median, checks every value sits within the feed's spread of it, stores the round as pending and charges the feed's fee into escrow.
  4. When the challenge window ends without a dispute, the round is final; its fee pays the signers. A disputed round never becomes final, and signers of a value voted wrong lose half their bond.