This tutorial will guide you through the process of staking test tokens (ORING & OKTON & Deposit) on the
Pangoro Testnetusing the staking Dapp built by the Darwinia Dev Team. The staking Dapp is compatible with
Pangoro Testnet(for demo purposes), Crab, and Darwinia. Be sure to select
Pangoro Testnetif you want to stake test tokens (ORING & OKTON & Deposit). If you want to stake Darwinia tokens (RING & KTON & Deposit) on
Darwinia, or Crab tokens (CRAB & CKTON & Deposit) on
Crab(which will be deployed in the near future), this tutorial also works; just switch to the appropriate network.
Get started with the dashboard
To get started with the dashboard, navigate to staking.darwinia.network. You’ll be prompted to connect to MetaMask.
MetaMask will pop up and ask you to sign in. Once signed in, you will be prompted to select the account to connect to the Dapp and accept permissions.
You will also need to add
Pangoro Testnetas a custom network in MetaMask. The Dapp will help you switch to the right network.
Upon accepting permissions and changing the network to
Pangoro Testnet, you will be redirected to the main dashboard where you’ll find details about the staking data.
How to stake
Token holders can delegate a collator candidate by staking tokens and adding to the collator's stake. In return, the collator will share the rewards received from producing blocks amongst all of their delegators. For more information on reward distribution, check out our documentation on staking reward distribution.
Please Note: You will be able to stake ORING, OKTON and Deposit on
To obtain the Deposit, you need to lock your ORING for a certain period of time.
Staking involves two steps: delegating a candidate and staking your own tokens to them. Once these steps are completed, the stake operation will take effect.
For the purpose of staking operations, we will use the following account as an example:
If you click on the
Select a collatorbutton, the collator menu will open up and you will be able to see data for each of the collators in the active and waiting pools.
You can toggle between the Active Pool tab, which contains collators who are producing blocks and earning rewards, and the Waiting tab, which contains collators who are not yet producing blocks or earning rewards.
To initiate a stake, simply click on the collator you would like to delegate. Next, you’ll need to:
- Verify that you selected the correct collator and the address looks correct.
- Enter the amount of tokens you would like to stake. This example uses 100 ORING tokens, 0.1 OKTON, and 1 Deposit.
MetaMask will pop-up and you will be prompted to sign a transaction.
Once the transaction has been confirmed and you receive the transaction confirmed notification, the dashboard will update to include the delegation.
If you check your MetaMask account, you will see that your balance has decreased by the amount of tokens staked (plus gas fees). Please note that it could take a couple of minutes for MetaMask to reflect any changes to the free balance. And you will be able to see the tokens your staked(bonded) tokens on the dashboard.
How to make changes to delegation
How to bond more funds
- Click the
+icon next to the token you want to modify.
- Specify the amount you would like to increase your delegation by. In this case, we are increasing our bond by 100 ORING.
How to reduce funds
- Click on the
–icon next to the token you want to modify.
- Enter the amount you would like to reduce your bond by. In this case, we are reducing our bond by 0.01 OKTON.
You will be prompted to sign a transaction in MetaMask.
Once the transaction has been confirmed and you receive the Transaction confirmed notification, the dashboard will update, and if you hover over the token, it can show you a message that when will the unbonding tokens can be released. At this time, you have the option to cancel this unbonding request or wait 14 days to release the tokens manually.
Once the 14 days unbonding period has passed(on
Crabit is usually 14 days, but on
PangoroTestnets it is usually shorter, probably only a few minutes), you can return to this staking dashboard and release the unbonded tokens, after which you will see the unbonded funds in your free balance on MetaMask.
How to undelegate
Undelegating usually involves two steps: undelegating of the collator and unbonding the tokens that were previously bonded in the stake. To undelegate, click the
Undelegatebutton. This action will take effect immediately. Then, press the
Unbond allbutton to unbond the tokens. This will initiate the 14-day unbonding period. After the period is over, you will need to manually release the tokens before they can be transferred.
That’s it! Now you’ve successfully delegated a collator, updated the delegation amount, and then removed the delegation. You have all the tools necessary to get started with staking on
Pangoro Testnet, and