NAV Calculation
NAV formula
function getNAV() public view returns (uint256) {
uint256 total = getTotalAssets();
uint256 supply = totalSupply();
// Stabilize NAV for small vaults using virtual assets/shares.
uint256 totalWithVirtual = total + navVirtualAssets;
uint256 supplyWithVirtual = supply + navVirtualShares;
return (totalWithVirtual * PRECISION) / supplyWithVirtual;
}Total assets
NAV stabilization
Last updated