-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: Municipal Inflation #162
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #162 +/- ##
==========================================
+ Coverage 60.45% 60.51% +0.05%
==========================================
Files 600 601 +1
Lines 38791 38920 +129
==========================================
+ Hits 23452 23551 +99
- Misses 13366 13386 +20
- Partials 1973 1983 +10
|
* fix: [Cosmetic] Go linting * CI test run - setting golang v1.18.10
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.
LGTM
@@ Coverage Diff @@ main #162 +/-==========================================
|
Implements the Municipal Inflation mechanism.
Municipal(= Local) GOVERNANCE of distribution
The defining feature is the governance of the tokens generated(minted) by Municipal Inflation - tokens are minted on to predefined target address, and whoever controls access to that adress (e.g. it can be related private key, multisig wallet, contract, or possibly address of cosmos-sdk module) fully controls dictribution of tokens generated by the municipal inflation at that target address - hence the "Municipal" name (as opposed to trully decentralised governance distribution model(e.g. distrubution based on proportionality of users stake agains over all staked amount)).
If required, the Decentralisation can be achieved by using contract (which implements decentralised distribution of the inflated tokens) and setting address of such contract in to
target_address
. This will “convert” Municipal distribution governance do Decentralised one, so to speak.CONFIGURATION
Municipal inflation is configured in
genesis.json
located in themint.minter.municipal_inflation
node - see below the example.min.minter
node in order to make the configuartion immutable = by design, it is NOT possible to change configuration of Municipal Inflation while network is running (e.g. via governance proposal). The only way how to change the configuration of Municipal Inflation is to restart the network.value
represents ANNUAL value of inflation in[1]
unit ([%] = 100x[1]
), what means that"value": 0.03
equals to3%
annual inflation