Rewards: Joining Standard Rewards
This section explains how to stake bnTokens into standard rewards program. Note that if you followed the process in Deposit and Join, your tokens have already been staked in the rewards program.
Standard rewards program is an opt-in program where users can stake their bnTokens and receive rewards and bonuses (typically different token from the deposited one)
1. Identify if there is a program
This step explains how to identify if there is a standard rewards program for the bnTokens you hold in your wallet.
Visit the
StandardRewards
contract on etherscanExecute the
latestProgramId
function (this is a Read function)
Input variable
Name | Type | Description |
---|---|---|
pool | address | The reserve token address (i.e. LINK, DAI, BNT etc) |
Output response
Name | Type | Description |
---|---|---|
id | uint256 | The unique ID for the latest created program for the indicated token |
2. Identify if the program is active
This step explains how to identify if the latest standard rewards program ID (found in the previous step) is active.
Visit
StandardRewards
contract on etherscanExecute the
isProgramActive
function (this is a Read function)
Input variable
Name | Type | Description |
---|---|---|
id | uint256 | The unique standard rewards ID (found in the previous step) |
Output response
Name | Type | Description |
---|---|---|
bool | boolean | True/False indication (True means the program is active) |
3. Identify the poolToken address
This step explains how to find the bnToken address.
Option 1:
If you have bnTokens in your wallet, you can use etherscan to find them.
Visit etherscan.io and search for your wallet address
Type the bnToken name in the following format 'bn' and the token name (i.e. bnDAI, bnBNT, etc)
Click on the bnToken in your wallet
Find the
Contract
address
Option 2:
Visit
bancorNetworkInfo
contrat on etherscanExecute the
poolToken
function (this is a Read function)
Input variable
Name | Type | Description |
---|---|---|
pool | address | Reserve token address (i.e. BNT, DAI, LINK, etc address) |
Output response
Name | Type | Description |
---|---|---|
poolToken | address | The pool token address |
This section explains how to allow the contract to interact with your wallet (this is only an approval step).
Visit the relevant bnToken contract (found in the previous step) on etherscan
Connect your wallet as explained in "Using Etherscan"
Execute the
Approve
function (this is a Write function)
_spender | The address of the |
_value | The bnToken amount you would like to stake |
Click
Write
to sign theApprove
in your wallet
4. Stake bnTokens into standard rewards
This step explains how to complete the flow and stake your bnTokens into the standardRewards
contract.
Visit
standardRewards
contrat on etherscanExecute the
join
function (this is a Write function)
Input variable
Name | Type | Description |
---|---|---|
id | uint256 | Unique standard rewards program ID |
poolTokenAmount | uint256 | The amount of bnTokens you would like to stake |
Congrats! Your bnTokens are now staked into the standardRewards program
Last updated