Rewards: Stake & Claim
Last updated
Last updated
This section explains how to identify the number of pending rewards, and how to stake or claim them.
How to identify the number of rewards you are eligible for and can claim?
Visit the StandardRewards
contract on etherscan
Execute the pendingRewards
function (this is a Read function)
Input variable
provider
address
Your wallet address
ids
array of uint256
1 or more reward program IDs (must be IDs for programs with the same rewards token)
Output response
rewardAmount
uint256
The current available claimable rewards in WEI
This section explains how to stake the rewards into a bancor pool
Visit the StandardRewards
contract on etherscan
Execute the stakeRewards
function (this is a Write function)
Input variable
ids
array of uint256
1 or more reward program IDs (must be IDs for programs with the same rewards token)
Once executed, ALL pending rewards will be staked into the relevant pool, and you will receive the bnTokens to represent your share in the pool.
If the pool has any "standard rewards" which require manual opt-in, you would need to join the relevant rewards plan.
This section explains how to claim the rewards into your wallet
Visit the StandardRewards
contract on etherscan
Execute the claimRewards
function (this is a Write function)
Input variable
ids
array of uint256
1 or more reward program IDs (must be IDs for programs with the same rewards token)
Once executed, ALL pending rewards will be claimed into your wallet.