Rewards: Stake & Claim
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?
- 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 |
This section explains how to stake the rewards into a bancor pool
- 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.
This section explains how to claim the rewards into your wallet
- 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.
Last modified 1yr ago