NAV, read on chain
The formula
AmphoraVault adds up what it holds, all of it read on chain in the same call:
- its equity in the vault, through the
0x802precompile, less the leader's profit share estimated on the contract's own cost basis:equity − share × max(0, equity − basis), wherebasisis the USD put into the vault less the cost of what came out (zero share for HLP); - its perp USD on HyperCore, through
0x803; - its spot USDC on HyperCore, through
0x801(8 decimals there, 6 here); - its free USDC on HyperEVM: everything not belonging to a deposit waiting for a batch, to a priced redeem, or to fees;
- USDC that left HyperEVM in the current block, which HyperCore credits right after that block;
less what is owed and not yet set aside: priced redeems and fees. NAV per share is that total over the shares outstanding, with one virtual micro-dollar and one virtual micro-share so a donation can never move the price of the next mint.
When it is read
Read precompiles return HyperCore's state as of the moment the HyperEVM block is built, and a vault transfer sent from CoreWriter lands on HyperCore about four seconds later. So AmphoraVault never prices while one of its own HyperCore actions may still be landing: every pricing step waits 30 seconds after the last action.
NAV on Elysium
Each mint ticket carries the NAV of its batch, and anyone can post the current NAV to the token (at most every 10 minutes, paying the Elysium ticket). The token's nav() returns it with a flag that turns false after two hours. Pools and the app use it to show a price; nothing on Elysium prices a mint or a redeem with it: those are priced on HyperEVM, from HyperCore, every time.