Pricing and oracle
Every fill, liquidation and take-profit uses the HyperCore mark price, read on-chain through Elysium's precompile and checked on every read.
Reference price
The reference price P is Hyperliquid's mark price, read through Elysium's HyperCore market-data precompile. The mark blends Hyperliquid's CEX-median oracle with its own book, so it is much harder to push than the book mid. Venues that settle on the best bid and offer can be pushed into a payout; Nine does not.
Each read returns mark, mid, Hyperliquid oracle price, depth within ±bps, and the HyperCore block and timestamp (hcBlock, hcTs).
Sanity checks on every read
If any check fails, the fill reverts or the request is refunded. No payout is ever made on a price that fails a check.
| Check | Rule | Launch value |
|---|---|---|
| Freshness | now − hcTs ≤ 1,000 ms | 1 s |
| Mark vs mid | |mark − mid| / mark ≤ 15 bps | 15 bps |
| Mark vs Hyperliquid oracle | |mark − oracle| / mark ≤ 50 bps | 50 bps |
A large mark-vs-mid gap means the book is being pushed, so new fills on that market pause until it closes.
Two-stage price path
| Stage | Price source | Trust |
|---|---|---|
| v0, before the precompile ships | Keepers sign (market, mark, mid, oracle, hcBlock, hcTs) from Hyperliquid. The contract runs the same checks, plus a maximum jump from the last price and a 2-of-3 keeper signature quorum. | The keeper quorum |
| v1 | The HyperCore precompile is read directly inside fill and liquidate. | Elysium's sequencer attestation |
The switch from v0 to v1 is a NineOracle mode change behind the timelock. Contract logic does not change.
Display prices vs settlement prices
The app's charts tick live from Hyperliquid's public feed for display only. Every fill, liquidation and take-profit uses the on-chain price described above. The number on your screen and your fill price will differ slightly; that is expected.