Dark HIP-3
Docs · Mechanism

The cross price

Samples

During the commit window the contract reads the price of the market's pool on its launch venue (one sample per block at most, up to 32 per batch). Each market names its price source: VenueV4Price reads slot0 and liquidity from any Uniswap v4 PoolManager (Ascend runs one; the pool id includes the launchpad hook and the dynamic-fee flag, and HYPE can be native or WHYPE on either side), and V2PairPrice reads a v2-style pair through getReserves. Every commit takes a sample and the keeper adds a few more per batch with orders.

Median

s1s2s3s4s5s6s7sorted: the middle sample is the cross pricesamples in the commit window, one pushed by a large swap

The cross price is the median of the samples. It is fixed when the commit window closes, before the first reveal, so nobody can move it after seeing an order. Pushing the median takes moving the pool across many independent blocks, which costs real swaps in the pool.

The part of an order that crosses inside the batch pays no price impact: it is filled at the pool price without touching the pool. Only the remainder, if you choose to send it to the pool, trades against the curve.

HyperCore mid

UniswapThe coin's pool price todayHyperliquidHyperCore mid after EL1Read

Once Elysium ships its EL1Read precompile (expected about four weeks after mainnet), HYPE and coins listed on HyperCore can switch their reference to the HyperCore book mid, read in the settlement transaction, with the coin's pool price kept as a sanity band. The switch is a per-market config change through the 48-hour timelock. Coins without a HyperCore book keep the price from their own pool.