Claim rewards
Stafi makes stakers claim their rewards for past eras by submitting a transaction. This naturally leads to spreading out reward distribution, as people make transactions at disparate times, rather than updating the accounts of all stakers in a single block. Even if everyone submitted a reward claim at the same time, the fact that they are individual transactions would allow the block construction algorithm to process only a limited number per block and ensure that the network maintains a constant block time. If all rewards were sent out in one block, this could cause serious issues with the stability of the network.
Simple payouts requires one transaction per validator per era to claim rewards. The reason Stafi requires this is to avoid an attack where someone has several thousand accounts nominating a single validator. The major cost in reward distribution is mutating the accounts in storage, and Stafi cannot pay out several thousand accounts in a single transaction.


Stafi stores up to 84 eras of reward info like maps of era number to validator points, inflationary rewards, and nomination exposures. Rewards will not be claimable more than 84 eras after they were earned. This means that all rewards must be claimed within 84 eras.
Anyone can trigger a payout for any validator, as long as they are willing to pay the transaction fee. Someone must submit a transaction with a validator ID and an era index. Stafi will automatically calculate that validator's reward, find the top 64 nominators for that era, and distribute the rewards pro rata.
Note: The Staking system only applies the highest 64 nominations to each validator to reduce the complexity of the staking set.
These details are handled for you automatically if you use the Stafiapp, which also allows you to submit batches of eras at once.
To claim rewards, you will need to be in the "Payouts" tab underneath "Staking", which will list all the pending payouts for your stashes.
To then claim your reward, select the "Payout all" button. This will prompt you to select your stash accounts for payout.
Once you are done with payout, another screen will appear asking for you to sign and submit the transaction, and that is all there is to claiming rewards.
Last modified 1yr ago
Copy link