Search
⌃K

Rewards: Stake & Claim

This section explains how to identify the number of pending rewards, and how to stake or claim them.

Pending Rewards

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
Name
Type
Description
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
Name
Type
Description
rewardAmount
uint256
The current available claimable rewards in WEI

Staking Rewards

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
Name
Type
Description
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.

Claiming Rewards

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
Name
Type
Description
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.