Oracle system
The oracle layer provides price feeds for all assets on the exchange. Oracles are classified by theOracleKindMap into three modes:
Each block receives multiple price inputs that feed into funding calculations:
Mark price calculation
The mark price is the reference price used for funding rate computation and liquidation triggers. It is derived from a combination of:- Oracle price — the external reference price for the underlying asset
- Spot price inputs — on-chain spot market prices where available
- External perp prices — prices from external perpetual exchanges for cross-referencing
- Order book mid-price — the current mid-market price on HyperLiquid
Impact USD
The funding rate calculation uses an impact USD parameter that determines the notional size used when sampling the order book for the premium/discount calculation:impact_usd value smooths out the funding rate by sampling deeper into the order book, while a smaller value makes funding more responsive to thin liquidity at the top of book.
Impact USD is conceptually similar to Binance’s “Impact Margin Notional” — it represents the notional value used to calculate the bid/ask impact prices that determine the premium index.
Funding rate formula
HyperLiquid supports two funding rate formulas:Default formula
The standard funding rate is calculated as:clamp limits the maximum funding rate per period to prevent extreme values. On most exchanges with similar mechanisms, the clamp is typically set to 0.05% (5 basis points) per 8-hour interval, though HyperLiquid’s specific clamp values are governance-configurable per asset.
Example calculation:
Settlement frequency
Funding is settled every hour at one-eighth of the computed 8-hour rate. The formula calculates an 8-hour funding rate, but payments are distributed hourly in equal installments. For example, a 0.05% 8-hour rate results in ~0.00625% paid each hour.Binance formula option
HyperLiquid can optionally use the Binance funding formula for specific perps:Per-perp funding parameters
Each perpetual market has individually configurable funding parameters:Funding multipliers
Interest rates
HL-only perps
Some perpetual markets exist only on HyperLiquid without an external reference price:Funding distribution
Funding payments are distributed between longs and shorts based on the calculated rate. The distribution process is rate-limited by guard mechanisms:Distribution guards
The three guards serve distinct purposes:
These guards prevent excessive computation per block and ensure funding calculations remain consistent across the validator set.
Per-block execution data
Each block produces several data outputs relevant to funding:hip3_oracle_updates field is particularly relevant for HIP-3 deployed tokens that use deployer-managed oracle feeds rather than the protocol’s built-in oracle system.