baseRewardPool.rewardToken()
to determine what token is rewardedbaseRewardPool.balanceOf(address)
to see how much an address has staked.baseRewardPool.totalSupply()
to see how much is currently staked on the reward contractbaseRewardPool.earned(address)
to see how much rewards an address will receive if they claim their rewards now.baseRewardPool.stake( amount )
to stake a given amount for your address
Use baseRewardPool.stakeAll()
to stake all tokens for your address
Use baseRewardPool.stakeFor( address, amount )
to stake on behalf of another address (*This transfers ownership of the tokens!)baseRewardPool.withdraw( amount, bool )
to withdraw a specific amount. bool is to also claim while withdrawing
Use baseRewardPool.withdrawAll( bool )
to withdraw all tokens staked. bool is to also claim while withdrawing
Use baseRewardPool.withdrawAndUnwrap( amount, bool )
to withdraw a specific amount of tokens AND also unwrap the tokens back into the underlying LP tokens. bool is to also claim while withdrawing
Use baseRewardPool.withdrawAllAndUnwrap(bool claim)
to withdraw all tokens AND also unwrap the tokens back into the underlying LP tokens. bool is to also claim while withdrawingbaseRewardPool.extraRewardsLength()
.
This array holds a list of VirtualBalanceRewardPool contracts which are similar in nature to the base reward contract but without actual control of staked tokens.
This means that if a pool has CRV rewards as well as SNX rewards, the pool's main reward contract(BaseRewardPool) will distribute the CRV and the child contract(VirtualBalanceRewardPool) will distribute the SNX.