Every number on this page comes from the program's math (src/math.rs) and the parameter study in the engine's CORE.md, which replays one year of real funding.
The quote
Each market has an anchor: an exponential moving average of its realized funding with a 7-day half-life, updated by every print. The pool quotes around it with a skew that grows with its own exposure.
fixed rate for a trade moving net notional n0 -> n1
= anchor + skew x (n0 + n1) / (2 x n_max)
Pay fixed adds to net notional and receive fixed subtracts. The skew is integrated over the whole trade, so cutting one large trade into small ones pays the same rate. Rates round up for payers and down for receivers.
Exposure cap
cap equity = lp_cash - max(trader_pnl, 0)
n_max = equity x cap_share_bps x 1e12 / (10,000 x rate_cap x margin_periods)
cap_share_bps is 5% at launch, so each market's worst-case move can cost the pool at most 5% of its equity. A trade that grows net notional past the cap is refused (ExposureCapExceeded); a trade that shrinks it always goes through.
| Market | rate_cap (APR) | Net notional a $1M pool can carry with 28 days to run |
|---|---|---|
| HL BTC | 8% | about $7.6M |
| HL ETH | 13% | about $4.7M |
| HL SOL | 26% | about $2.3M |
| BIN BTC | 8% | about $7.6M |
rate_cap is the smallest cap that covers the 99.5th percentile hold-to-maturity loss at every remaining tenor from 1 to 28 days, measured on twelve months of real prints.
Margin
margin periods = remaining periods + 2 days of buffer
initial margin = ceil(notional x rate_cap x margin_periods / 1e12)
maintenance margin = initial / 2, rounded up
| Market | Initial margin on $10,000, 28 days to run | Largest notional per dollar of margin |
|---|---|---|
| HL BTC | $65.75 | 152x |
| HL ETH | $106.85 | 94x |
| HL SOL | $213.70 | 47x |
| BIN BTC | $65.75 | 152x |
Fees
The spread is charged once, up front, in USDC, on the tenor you take:
fee = ceil(notional x spread x remaining_periods / 1e12)
At launch the spread is 0.25% a year. 90% of each fee goes to liquidity providers and 10% (protocol_fee_bps) to the fee vault.
Worked example: $1M of 28-day Hyperliquid notional pays 0.25% x 28 / 365 x $1M = $191.78 in fees, of which $172.60 goes to LPs and $19.18 to the protocol.
What liquidity providers earn and carry
LPs earn the spread and the skew. They carry the net rate exposure the book leaves them, bounded by the per-market cap. In a replay of the full year with an adversary who knows the next seven days of funding, the worst 28-day pool loss was 16.8% with the launch settings. LP deposits and withdrawals price every open position at whichever of the anchor and the last print is worse for the LP entering or leaving, and withdrawals wait out a cooldown.