FacetBase (inherited API)
FacetBase
Section titled “FacetBase”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.
Solidity API
Section titled “Solidity API”venusInitialIndex
Section titled “venusInitialIndex”The initial Venus index for a market
uint224 venusInitialIndexcorePoolId
Section titled “corePoolId”Returns the Core Pool identifier used by the shared facet storage.
function corePoolId() external pure returns (uint96)actionPaused
Section titled “actionPaused”Checks if a certain action is paused on a market
function actionPaused(address market, enum Action action) public view returns (bool)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| market | address | vToken address |
| action | enum Action | Action id |
getXVSAddress
Section titled “getXVSAddress”Returns the XVS address
function getXVSAddress() external view returns (address)Return Values
Section titled “Return Values”| Name | Type | Description |
|---|---|---|
| [0] | address | The address of XVS token |
getPoolMarketIndex
Section titled “getPoolMarketIndex”Returns the unique market index for the given poolId and vToken pair
function getPoolMarketIndex(uint96 poolId, address vToken) public pure returns (PoolMarketId)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| poolId | uint96 | The ID of the pool |
| vToken | address | The address of the market (vToken) |
Return Values
Section titled “Return Values”| Name | Type | Description |
|---|---|---|
| [0] | PoolMarketId | PoolMarketId The bytes32 key that uniquely represents the (poolId, vToken) pair |