XVSVault
XVS Vault
The XVS Vault allows XVS holders to lock their XVS to recieve voting rights in Venus governance and are rewarded with XVS.
Solidity API
pause
Pauses vault
resume
Resume vault
poolLength
Returns the number of pools with the specified reward token
Parameters
Return Values
add
Add a new token pool
Parameters
set
Update the given pool's reward allocation point
Parameters
setRewardAmountPerBlock
Update the given reward token's amount per block
Parameters
setWithdrawalLockingPeriod
Update the lock period after which a requested withdrawal can be executed
Parameters
deposit
Deposit XVSVault for XVS allocation
Parameters
claim
Claim rewards for pool
Parameters
executeWithdrawal
Execute withdrawal to XVSVault for XVS allocation
Parameters
requestWithdrawal
Request withdrawal to XVSVault for XVS allocation
Parameters
getEligibleWithdrawalAmount
Get unlocked withdrawal amount
Parameters
Return Values
getRequestedAmount
Get requested amount
Parameters
Return Values
getWithdrawalRequests
Returns the array of withdrawal requests that have not been executed yet
Parameters
Return Values
pendingReward
View function to see pending XVSs on frontend
Parameters
Return Values
updatePool
Update reward variables of the given pool to be up-to-date
Parameters
getUserInfo
Get user info with reward token address and pid
Parameters
Return Values
pendingWithdrawalsBeforeUpgrade
Gets the total pending withdrawal amount of a user before upgrade
Parameters
Return Values
delegate
Delegate votes from msg.sender
to delegatee
Parameters
delegateBySig
Delegates votes from signatory to delegatee
Parameters
getCurrentVotes
Gets the current votes balance for account
Parameters
Return Values
getPriorVotes
Determine the xvs stake balance for an account
Parameters
Return Values
_become
Admin Functions **
setAccessControl
Sets the address of the access control of this contract
Parameters
Last updated