Concepts
Hedge-cost pricing
Each swap is priced at HyperCore mid plus the expected slippage of hedging that size, so the hedge is paid for before it happens.
The formula
Formula
price = HyperCore mid + hedge slippage(size) + inventory skew + feeSlippage is read from HyperCore's book for that exact size, so small swaps stay tight and large swaps pay for the depth they use. Funding on the hedge leg is also counted in pricing.
Worked example
Note · Illustrative only. The numbers below are made up to show the arithmetic; they are not quotes, fees or results.
| Input | Example value |
|---|---|
| HyperCore mid | 30.0000 |
| Swap size | 25,000 USDC buy |
| Hedge slippage for this size | +1.42 bps |
| Inventory skew | +0.00 bps (vault is flat) |
| Fee | +5.00 bps |
| Quoted price | 30.0000 × (1 + 6.42 bps) = 30.0193 |
Data age
HyperCore data inside Elysium is attested by the sequencer, not proven by HyperCore, and is about 150–350 ms old. The hook prices that age in. If the data gets too old, quoting stops, see Staleness guard.
Before the precompile
Until Elysium's ArbOS upgrade ships the HyperCore read precompile, v1 runs on a signed price feed and a conservative fee. The provider of that feed is TBD.