Docs / Use

Pricing

The premium is computed on chain in SoterPool.quotePremium, from a quote the keeper signs (EIP-712) with three inputs per market:

InputHow it is measured
Mark priceHyperliquid mid price at signing
Realized volatilityStandard deviation of 1-hour log returns over 7 days, annualized
Recovery rateShare of breaks of the trailing six-hour low or high, on 1-minute candles over the last days, that closed back within 60 minutes; bounded to 30% to 95%

Formula

d       = |ln(mark / liq)|
sigmaT  = vol * sqrt(term / 365 days)
P(touch)= 2 * Phi(-d / sigmaT)          // driftless lognormal barrier
premium = margin * P(touch) * recovery * 1.25
premium = max(premium, 0.3% of margin)
premium = premium * (1 - staker discount)

Phi is the standard normal distribution, computed with the Abramowitz and Stegun 26.2.17 approximation in WickMath. The 1.25 load pays underwriters for model error and fat tails. Covers with P(touch) above 50% are not written.

Example, live

The markets page prices 10x, 20x and 50x longs on 1,000 USDC for each coin with the current inputs, and the cover page prices your exact position.