Skip to content
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

fix(mint): provide annual inflation rate #179

Merged
merged 2 commits into from
Oct 7, 2022
Merged

Conversation

amimart
Copy link
Member

@amimart amimart commented Oct 7, 2022

Fix the inflation calcul to provide an annual inflation rate, the per block being populated by the module itself.

Additionally, Staking rewards on the Whitepaper being calculated once a year and the actual mint module calculating it every block there's a difference caused by previously minted coins. To mitigate this issue the initial inflation rate is set to 7.5% instead of 15%, but the distribution will not be linear across blocks, a re-implementation of the mint module shall be considered.

@amimart amimart requested review from ccamel and bdeneux October 7, 2022 11:09
@amimart amimart self-assigned this Oct 7, 2022
@amimart amimart force-pushed the fix/mint-inflation branch from a5005f6 to 608af3f Compare October 7, 2022 11:21
@amimart amimart marked this pull request as ready for review October 7, 2022 11:55
@amimart amimart merged commit 5cf87f4 into main Oct 7, 2022
@amimart amimart deleted the fix/mint-inflation branch October 7, 2022 12:34
@bot-anik
Copy link
Member

🎉 This PR is included in version 2.1.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants