Skip to content

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.

Creates amount_ tokens and assigns them to account_, increasing the total supply. Checks access and eligibility.

function mint(address account_, uint256 amount_) external
NameTypeDescription
account_addressAddress to which tokens are assigned.
amount_uint256Amount of tokens to be assigned.
  • Emits MintLimitDecreased with new available limit.
  • Controlled by AccessControlManager.
  • 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_) external
NameTypeDescription
account_addressAddress from which tokens be destroyed.
amount_uint256Amount of tokens to be destroyed.
  • Emits MintLimitIncreased with new available limit.
  • Controlled by AccessControlManager.