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

VirtualStorageLib

Overview

License: Apache-2.0-or-later

library 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)

Structs info

VirtualSupply

struct VirtualSupply {
	int256 supply;
}

Constants info

VIRTUAL_SUPPLY_SLOT (0xfb5203b7)

Functions info

virtualSupply

updateVirtualSupply

getVirtualSupply

Last updated