feat: Implement Fixed Block Rewards for Sustainable Tokenomics#1735
Draft
zenopie wants to merge 3 commits intoscrtlabs:masterfrom
Draft
feat: Implement Fixed Block Rewards for Sustainable Tokenomics#1735zenopie wants to merge 3 commits intoscrtlabs:masterfrom
zenopie wants to merge 3 commits intoscrtlabs:masterfrom
Conversation
Author
|
or you could do fixed per second so you don't incentivize block acceleration |
Replace percentage-based inflation with fixed 4 SCRT per block emissions. This ensures predictable, sustainable token issuance that doesn't grow indefinitely with supply. Changes: - Add custom x/mint module with fixed block rewards - Set fixed reward to 4 SCRT (4,000,000 uscrt) per block - Create v1.24 upgrade handler for migration - Update app to use custom mint module instead of Cosmos SDK mint Impact: - Immediate ~30% reduction in inflation (from ~9% to ~6.2%) - Annual emissions constant at ~21M SCRT regardless of supply - Inflation naturally decreases over time as supply grows - Year 5: ~4.8% inflation, ~11% APR - Year 10: ~3.9% inflation, ~9% APR 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Use store service directly instead of mixing with sdk.Context.KVStore(). This follows the Cosmos SDK v0.50 pattern for store access. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
e553659 to
56fd2f1
Compare
|
@zenopie I think you actually hard coded blocktime assumptions, but best practice differs. What you'd likely want to do is replace the hard coded calculation of blocks per year to BlocksPerYear. This is a target, not protocol enforcable due to real world network conditions and the ability of node runners to change node config timings. It has drifted in the past, and when it does, maintenance via gov is done by doing a param change proposal to match. |
Instead of hardcoding BlocksPerYear from block time assumptions, read the existing governance-managed value from chain state. This allows governance to adjust BlocksPerYear via param change proposals when block times drift, without requiring code changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Summary
Replaces percentage-based inflation with fixed 4 SCRT per block emissions for sustainable, predictable
tokenomics.
Problem
Current percentage-based inflation causes emissions to grow indefinitely with supply:
Solution
Fixed block rewards: 4 SCRT per block = constant 21M SCRT/year
Impact
Changes
x/mintmodule with fixed block rewardsv1.24for seamless migrationBenefits
TODO Before Merge
Testing Checklist
Note: This is a DRAFT PR. Core logic is implemented but needs tests, query endpoints, and testnet
validation before merge.