For the complete documentation index, see llms.txt. This page is also available as Markdown.

VirtualStorageLib

VirtualStorageLib

Provides functions to get and update virtual supply (VS-only model)

Uses ERC-7201 namespaced storage pattern VS-only model: Transfer writes negative VS on source (NAV-neutral), positive VS on destination Sync has no VS impact (NAV-impacting on both chains)

VIRTUAL_SUPPLY_SLOT

bytes32 VIRTUAL_SUPPLY_SLOT

VirtualSupply

struct VirtualSupply {
  int256 supply;
}

virtualSupply

function virtualSupply() internal pure returns (struct VirtualStorageLib.VirtualSupply s)

updateVirtualSupply

function updateVirtualSupply(int256 delta) internal

getVirtualSupply

Last updated