VAIVault
VAI Vault
The VAI Vault is configured for users to stake VAI And receive XVS as a reward.
Solidity API
pause
Pause vault
resume
Resume vault
deposit
Deposit VAI to VAIVault for XVS allocation
Parameters
Name | Type | Description |
---|---|---|
_amount | uint256 | The amount to deposit to vault |
withdraw
Withdraw VAI from VAIVault
Parameters
Name | Type | Description |
---|---|---|
_amount | uint256 | The amount to withdraw from vault |
claim
Claim XVS from VAIVault
claim
Claim XVS from VAIVault
Parameters
Name | Type | Description |
---|---|---|
account | address | The account for which to claim XVS |
pendingXVS
View function to see pending XVS on frontend
Parameters
Name | Type | Description |
---|---|---|
_user | address | The user to see pending XVS |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | Amount of XVS the user can claim |
updatePendingRewards
Function that updates pending rewards
_become
Admin Functions **
setAccessControl
Sets the address of the access control of this contract
Parameters
Name | Type | Description |
---|---|---|
newAccessControlAddress | address | New address for the access control |
Last updated