This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Fix inflation calculation to account for total stake #4411
Labels
I3-bug
The node fails to follow expected behavior.
Currently (source), the staking rewards calculation calculates the total amount at stake by multiplying the
SlotStake
- the stake of the minimally staked validator - by the number of validators.The actual amount at stake - if we consider any funds liable to be slashed as "at stake" - then the number of tokens at stake is higher since most validators will have more than the slot stake.
The calculation should find the sum of the amount at stake (sum of
exposure.total
fromStakers
) and pass that to the payout function.Related: #4407
The text was updated successfully, but these errors were encountered: