-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Hybrid Inflation to Shiden #1095
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The overall code is good!
However, I believe the approach to Shiden has to be different than to Shibuya.
There it was fine to set parameters calculated way before for Astar, since it's not like anyone cares about Shibuya.
But for Shiden & Astar we need to be more precise.
The new inflation model will have 7% yearly inflation, and 3.2% of that will go towards collators, and 5% towards the treasury.
So for both Shiden & Astar, when PR is being prepared:
inflation = total_issuance * 0.07;
collator_reward_per_block = inflation * 0.032 / (7200 * 365)
treasury_reward_per_block = inflation * 0.05 / (7200 * 365)
According to this, collators should get around 0,071244 SDN per block.
Based on today issuance collator_reward_per_block = inflation * 0.032 / (7200 * 365) = 0.0712542335 calc here Stakers and dApp reward should be the same on absolute value:
So new max reward (sum of all) = 2.313789 SDN calc here New percentages (based on this new block reward const):
|
@PierreOssun the numbers look good to me! 👍 |
Minimum allowed line rate is |
Pull Request Summary
Updated Reward Model
Current blockReward: 2,664 SDN
collatorReward = 0,0689 SDN (100x less than Astar)
treasuryReward = 0,1076 SDN (100x less than Astar)
Stakers and dApp reward should be the same on absolute value:
dAppRewards = 15.00% * 2,664 = 0,3996 SDN
baseStakerPercent = 20.00% * 2,664 = 0,5328 SDN
adjustablePercent = 45.00% * 2,664 = 1,1988 SDN
So new max reward (sum of all) = 2,3077 SDN
New percentages (based on this new block reward const):
Check list