XVS
XVS at token-bridge v2.7.0 is the destination-chain XVS implementation. BNB Chain uses the native XVS contract instead. The destination token inherits the standard ERC-20 ABI and the complete TokenController surface in addition to the mint and burn functions below.
Both mint and burn check the exact AccessControlManager signature. Production bridge permissions and minterToCap must be configured for the local XVSProxyOFTDest; deployment alone does not authorize it.
XVS contract serves as a customized ERC-20 token with additional minting and burning functionality.
It also incorporates access control features provided by the TokenController contract to ensure proper governance and restrictions on minting and burning operations.
Solidity API
Section titled “Solidity API”Creates amount_ tokens and assigns them to account_, increasing
the total supply. Checks access and eligibility.
function mint(address account_, uint256 amount_) externalParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| account_ | address | Address to which tokens are assigned. |
| amount_ | uint256 | Amount of tokens to be assigned. |
📅 Events
Section titled “📅 Events”- Emits MintLimitDecreased with new available limit.
⛔️ Access Requirements
Section titled “⛔️ Access Requirements”- Controlled by AccessControlManager.
❌ Errors
Section titled “❌ Errors”- MintLimitExceed is thrown when minting amount exceeds the maximum cap.
Destroys amount_ tokens from account_, reducing the
total supply. Checks access and eligibility.
function burn(address account_, uint256 amount_) externalParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| account_ | address | Address from which tokens be destroyed. |
| amount_ | uint256 | Amount of tokens to be destroyed. |
📅 Events
Section titled “📅 Events”- Emits MintLimitIncreased with new available limit.
⛔️ Access Requirements
Section titled “⛔️ Access Requirements”- Controlled by AccessControlManager.