Architecture
Vault, Yoke, Counterweight, Rebalance, Ledger, Reserve and Treasury, and how a deposit flows through them.
The flow
A deposit becomes two legs; the fees from both come back through one Ledger and one Treasury.
The parts
- Vault
- One isolated contract per pool (TOKEN/HYPE). Takes HYPE, mints ERC-4626-style shares, owns one Yoke and one Counterweight. Share price is the vault's live NAV divided by its supply. Has a capacity and a priorityOnly flag when full.
- Yoke
- The LP leg. Swaps half the deposit into TOKEN and provides concentrated liquidity on the Uniswap v4 pool, in a ±15% range around the price. Reports its token delta, its value in HYPE and the fees it has earned.
- Counterweight
- The hedge leg. A short perp on HyperCore, sized to the Yoke's token delta, margined with the other half of the deposit. On mainnet it places orders through the EL1Write hook; on testnet it is a mock driven by a keeper.
- Rebalance
- A v4 hook and a keeper. When the price leaves the range, or the hedge ratio drifts outside its tolerance, it recentres the range and resizes the short in the same transaction. Its gas and slippage are paid from fees.
- Ledger
- An hourly on-chain snapshot per vault: NAV per share, total assets, cumulative fees, cumulative funding, hedge PnL, hedge ratio, slippage. Public, append-only.
- Treasury
- Receives the 10% performance fee in HYPE and runs the buyback: 100% of the fee buys $ZYGOS on its pool by TWAP, 50% of the tokens are burned, 50% go to the Reserve.
- Reserve
- A pool of bought-back $ZYGOS. Absorbs a realised hedge gap before depositors do.
Isolation
Vaults do not share balances. A bad week on MONTRA/HYPE cannot touch kHYPE/HYPE. The only shared contracts are the Ledger, which only records, the Rebalancer, which only recentres and resizes, and the Treasury, which only receives fees.
The Reserve is shared on purpose: it is funded by every vault's fees and backs every vault's hedge.