Closed bobo-k2 closed 2 months ago
Visit the preview URL for this PR (updated for commit f40ec50):
https://astar-apps--pr1269-fix-burned-rewards-w3lcu4xd.web.app
(expires Fri, 03 May 2024 06:57:49 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: dd76fe72958fe2910fef9d53f0b4539b82b849db
Thanks @bobo-k2 I'll check & verify by manually adding tokens tomorrow!
Pull Request Summary
Fixed existing 'tokens to be burned' calculation to use real dApp tiers allocation.
The code goes from the first
era
in the current period 'tillcurrent_era - 1
and calculates how much reward are allocated for empty tiers slots (those are burned rewards). Those calculation is based on real data.Second part of the calculations calculates the same from
current_era
until lastera
of the current period under assumption that we will have the same dApp tier allocations as in previousera
. Since we are looking for total tokens to be burned this is the best we can. The more we are progressing till the end of the current period the more precise calculation will be.Check list