You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We cannot call EscrowAnnuity::update_reward_per_block() because the escrow account also contains rewards already distributed to participants. We do the calculation rewardPerBlock = totalBalance / emissionPeriod where totalBalance should be the total amount for that emissionPeriod but is actually the balance of EscrowAnnuityAccount which also includes unclaimed tokens already distributed.
Expected behavior
We should calculate this value based on the inflation amount sent to the escrow account.
Additional context
We rectified the token distribution on Interlay and Kintsugi here:
Describe the bug
We cannot call
EscrowAnnuity::update_reward_per_block()
because the escrow account also contains rewards already distributed to participants. We do the calculationrewardPerBlock = totalBalance / emissionPeriod
wheretotalBalance
should be the total amount for thatemissionPeriod
but is actually the balance ofEscrowAnnuityAccount
which also includes unclaimed tokens already distributed.Expected behavior
We should calculate this value based on the inflation amount sent to the escrow account.
Additional context
We rectified the token distribution on Interlay and Kintsugi here:
The text was updated successfully, but these errors were encountered: