Skip to content

FacetBase (inherited API)

FacetBase is shared inherited code for the BNB Core Pool facets, not a separately deployed runtime facet. The public getters below are reached through whichever installed facet exposes their selectors. Resolve each selector through the live Diamond before calling it.

The initial Venus index for a market

uint224 venusInitialIndex

Returns the Core Pool identifier used by the shared facet storage.

function corePoolId() external pure returns (uint96)

Checks if a certain action is paused on a market

function actionPaused(address market, enum Action action) public view returns (bool)
NameTypeDescription
marketaddressvToken address
actionenum ActionAction id

Returns the XVS address

function getXVSAddress() external view returns (address)
NameTypeDescription
[0]addressThe address of XVS token

Returns the unique market index for the given poolId and vToken pair

function getPoolMarketIndex(uint96 poolId, address vToken) public pure returns (PoolMarketId)
NameTypeDescription
poolIduint96The ID of the pool
vTokenaddressThe address of the market (vToken)
NameTypeDescription
[0]PoolMarketIdPoolMarketId The bytes32 key that uniquely represents the (poolId, vToken) pair