AnchorHook pools
WHYPE/USDC and KNTQ/USDC on Uniswap v4. The fee is set from the live HyperCore book on every swap, so arbitrageurs pay the deviation and LPs keep it.
Signed every ~100 ms, verified in your contract. Pools that price like the exchange, perps that settle on the real book, and an open API.
WHYPE/USDC and KNTQ/USDC on Uniswap v4. The fee is set from the live HyperCore book on every swap, so arbitrageurs pay the deviation and LPs keep it.
USDC-margined perps that open, close and liquidate at HyperCore's price. Never trusts a snapshot older than 3 seconds.
Signed EIP-712 snapshots over REST and WebSocket, verified by BookAttestor. Switches to Elysium's native precompile when it ships — your integration stays the same.
Every swap carries a signed HyperCore snapshot in hookData. The hook computes baseline = 0.03% + k·spread + k·volatility. If the trade moves the pool away from HyperCore's mid (an arbitrageur exploiting stale pricing) the fee rises to cover the deviation: fee = max(baseline, |deviation| + ½ spread + 3 bps). No fresh snapshot → 1% blind fee.
Why LP here: on a fixed-fee pool, whenever HyperCore moves, arbitrageurs buy your tokens at the old price — the "LVR" leak. Here that trade is repriced to the real deviation, so the leak becomes your fee income. Liquidity is full range so the pool is always quoting.
The vault is the counterparty to every BookPerp position. It receives open/close fees, funding on the heavier side and a share of liquidation bounties. Trader profit comes out of the vault; trader losses go into it. Share price moves with the net result.
Risk: this is a directional, undercollateralised strategy. Open interest is capped at — of vault assets and positions are liquidated at maintenance margin by a permissionless keeper, but a fast move against a crowded side can produce losses. Deposit only what you are prepared to lose.
// Solidity: verify & read a snapshot from the Hyperbook API
import {IBookOracle} from "hyperbook/IBookOracle.sol";
IBookOracle oracle = IBookOracle(ORACLE);
BookTypes.BookSnapshot memory s = oracle.verify(payload); // reverts if stale / bad sig
uint256 mid = s.midE8; // 1e8 fixed-point USD
uint256 depth = s.depthBidUsdE8 + s.depthAskUsdE8;
# fetch a payload (HYPE) and hookData for a swap
curl https://hyperbook-elysium.com/v1/snapshot/HYPE
curl "https://hyperbook-elysium.com/v1/pool/quote?pool=hype&zeroForOne=true&amountIn=1000000"
curl "https://hyperbook-elysium.com/v1/pool/state?pool=kntq"
All Hyperbook protocol revenue flows into the Buyback contract (—). Every run: USDC → KNTQ on the Hyperbook KNTQ/USDC pool → HBOOK on its Forge pool → 0x…dEaD. The AnchorHook sends its protocol share of every swap straight into it, and BookPerp's protocol fees are claimed into it. Triggered by the keeper, totals on-chain.
Snapshots are signed by Hyperbook's attestation service from a full-depth (L4) HyperCore feed. Signer set and freshness are enforced by BookAttestor; the oracle interface stays identical when the native Elysium precompile goes live.