XVSVaultTreasury
XVSVaultTreasury
This contract stores XVS received from XVSVaultConverter and funds XVSVault
Solidity API
XVS_ADDRESS
The xvs token address
address XVS_ADDRESSxvsVault
The xvsvault address
address xvsVaultfundXVSVault
This function transfers funds to the XVS vault
function fundXVSVault(uint256 amountMantissa) externalParameters
Name
Type
Description
amountMantissa
uint256
Amount to be sent to XVS vault
📅 Events
- FundsTransferredToXVSStore emits on success 
⛔️ Access Requirements
- Restricted by ACM 
❌ Errors
- InsufficientBalance is thrown when amount entered is greater than balance 
sweepToken
This function sweep tokens from the contract
function sweepToken(address tokenAddress, address to, uint256 amount) externalParameters
Name
Type
Description
tokenAddress
address
Address of the asset(token)
to
address
Address to which assets will be transferred
amount
uint256
Amount need to sweep from the contract
📅 Events
- SweepToken emits on success 
⛔️ Access Requirements
- Restricted by ACM 
Last updated

