Curated Uniswap v4 liquidity that rebalances as a maker on Hyperliquid's order book.
Counterbook is a liquidity vault for one trading pair on HyperEVM (chain 999). It holds a single inventory across two venues, prices every swap from Hyperliquid's order book in the same block, and corrects its exposure by placing maker orders on that book.
Vault
One inventory. NAV counts both legs at the HyperCore reference price.
Pool leg
Uniswap v4 position on HyperEVM
Book leg
Spot float on HyperCore
Sweep moves assets between the legs when they drift apart
A Counterbook vault provides liquidity for one pair. The v0 mandate is HYPE/USDC. The vault's inventory sits in two places at once:
A Uniswap v4 hook sets the fee of every swap from HyperCore state read in the same block. On top of a base fee it adds three terms: how far the pool price has drifted from the order book, how wide the book is, and whether the trade pushes the vault further from its target mix. See the fee model.
The vault computes its net asset value (NAV) on-chain from both legs. A curator sets strategy parameters inside bounds fixed at deployment, and is paid a performance fee only on outperformance against holding the assets. Anyone can recompute that fee from chain state. See curation.
| You are | What Counterbook gives you | Start with |
|---|---|---|
| A depositor holding HYPE or USDC | A position that is priced from the book and rebalanced as a maker, with NAV and the curator's fee computed on-chain | Vault |
| A curator | A Uniswap v4 mandate with Hyperliquid's book as the rebalancing venue, and a performance fee enforced by code | Curation |
| A router, aggregator or liquidator | A standard v4 dynamic-fee pool on Uniswap's PoolManager, quoted like any other hook pool | Integrate |
| An auditor or reviewer | Interfaces, invariants, a threat model and the HyperCore details the contracts rely on | Contracts, Security |
On Hyperliquid the order book is chain state. A HyperEVM contract can read the HyperCore book inside a swap through read precompiles, and can send orders to it through the CoreWriter system contract. Counterbook uses both: the book prices the pool, and the book is where the vault rebalances. Fixing exposure on the deepest venue means the vault never swaps through its own pool, or any other AMM, to rebalance.
The docs use two scope tags. v0 is the initial release. Anything marked Planned (v1) is designed but not built.
| Capability | Scope |
|---|---|
| Swap pricing from the in-block HyperCore book (gap, spread, inventory skew) | v0 |
| One vault, one pair (HYPE/USDC), one curator per deployment | v0 |
| NAV across both legs, computed on-chain | v0 |
| Maker rebalancing on HyperCore spot, IOC past the hard band | v0 |
| Asynchronous claim for the book-leg share of a redemption | v0 |
| Performance fee against HODL with a high-water mark | v0 |
| Vault factory and multiple curators | Planned (v1) |
| Lending idle HyperCore float | Planned (v1) |
| Bounties for permissionless maintenance calls | Planned (v1) |
| Other venues: Elysium, then same-EVM books such as Hanji (Base) and Kuru (Monad) behind an oracle guard (Venues) | Planned (v1) |
| Aggregator integrations | Planned (v1) |
| External audit before outside deposits | Planned (v1) |
Counterbook is not deployed on any chain. To see the whole loop, run the local devnet with pnpm devnet (see the runbook). Deployment status is on the contracts page.