Vault lifecycle
Deposit, share pricing, rebalance triggers, withdrawal, capacity and priority.
Deposit
Send HYPE, receive shares at the current NAV per share, and the vault opens both legs in the same transaction.
- 01You call
depositNative()with HYPE. The vault wraps it to WHYPE and mints shares:shares = assets × totalSupply / totalAssets, rounded down. - 02Half of the new assets go to the Yoke, which swaps into TOKEN and adds liquidity around the current price.
- 03The other half goes to the Counterweight as margin. The short is resized so that it equals the Yoke's token delta.
- 04If this is your first deposit in that vault, your address gets the next
depositorIndex. The first 1,000 indexes across all vaults qualify for the launch claim. $ZYGOS
Share pricing
totalAssets() is read live: idle WHYPE in the vault, plus the Yoke's value in HYPE (both legs of the LP at the current price, plus unclaimed fees), plus the Counterweight's equity (margin, plus unrealised PnL, plus accrued funding). NAV per share is that figure divided by the share supply. The Ledger stores snapshots of it; it is not the source of truth for pricing.
The vault keeps a high-water mark of NAV per share. The performance fee is charged only on the part of the NAV above the mark, at harvest. Rounding is always in the vault's favour, and the share supply carries a virtual offset so the first depositor cannot inflate the price.
Rebalance triggers
Two conditions trigger a rebalance, either one alone:
- Price leaves the range. The Yoke is now one-sided and earning nothing. The keeper recentres the range around the new price.
- Hedge ratio leaves the band. As the price moves through the range, the Yoke's token delta changes while the short does not. When
short / deltadrifts outside 98%–102%, the keeper resizes the short.
Both happen in one transaction, and the vault records the block in lastRebalanceBlock. Gas and slippage are deducted from the Yoke's accrued fees, never from principal.
Withdraw
You call redeemNative(shares). The vault burns the shares, closes the same fraction of the Yoke and of the Counterweight in the same block, unwraps the WHYPE and sends HYPE. There is no queue, no cooldown and no withdrawal fee. You receive shares × totalAssets / totalSupply, rounded down.
Because both legs are unwound together, a withdrawal cannot leave the remaining depositors with a different hedge ratio than before.
Capacity and priority
A vault's capacity is bounded by the depth of the perp it shorts: a vault that is too large for its perp market cannot rebalance without moving the price against itself. Capacity is set per vault and shown on the vaults page.
When a vault reaches capacity its status becomes Full and priorityOnly() turns on: new deposits are accepted only from addresses holding at least the vault's $ZYGOS threshold. Withdrawals are always open. A Paused vault accepts no deposits at all, from anyone, and still lets everyone withdraw.