Ledger
What each hourly snapshot contains and how to verify it on-chain.
What a snapshot contains
Once an hour, the keeper calls Ledger.snapshot(vault). The contract reads the vault and writes one row. Nothing is reported off-chain.
| Field | Type | Meaning |
|---|---|---|
timestamp | uint40 | Block time of the snapshot. |
navPerShare | uint96 | totalAssets / totalSupply, in HYPE, 18 decimals. |
totalAssets | uint96 | Idle WHYPE + Yoke value in HYPE + Counterweight equity. |
feesCumulative | uint96 | Swap fees earned by the Yoke since inception, in HYPE. |
fundingCumulative | int96 | Funding received (positive) or paid (negative) by the short since inception. |
hedgePnl | int96 | Unrealised PnL of the short at the snapshot price. |
hedgeRatioBps | uint16 | shortSize / tokenAmount, in basis points. 10,000 is a perfect hedge. |
slippageBps | uint16 | Slippage paid by rebalances since the previous snapshot, in basis points of the resized notional. |
The vault page draws the last 30 days of navPerShare and lists the last 48 rows with hourly deltas of fees and funding. The 7-day yield on the vaults page is navPerShare(now) / navPerShare(7 days ago) − 1, per 1,000 HYPE.
Verifying it yourself
Every getter is public. With Foundry's cast against the testnet RPC:
cast call $LEDGER "count(address)(uint256)" $VAULT --rpc-url https://testnet-rpc.elysium.kinetiq.xyz cast call $LEDGER "latest(address)((uint40,uint96,uint96,uint96,int96,int96,uint16,uint16))" $VAULT --rpc-url https://testnet-rpc.elysium.kinetiq.xyz cast call $VAULT "totalAssets()(uint256)" --rpc-url https://testnet-rpc.elysium.kinetiq.xyz
latest() should match the last row on the vault page, and totalAssets() divided by totalSupply() should match the live share price shown in the deposit card. Addresses are on the Contracts page.
On mainnet nothing is backfilled: the first row is written with the first live snapshot after launch, and every row after it is live.