-
Notifications
You must be signed in to change notification settings - Fork 977
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mariari/inflation-rewards' into draft
* mariari/inflation-rewards: masp: implement remaining inflation logic Fixup clippy issues Update the test with the correct inflation values Corrected the compounding of the MASP transparent balance. Now handle native inflation rewards for native tokens. Make the formula for the conversion rates reliable, also dump logs for e2e Update e2e tests Change the last inflation amount to reflect the actual amount minted Fix dev.toml having inconsistent token values and inconsistent dot Convert test storage to use the WlStorage and added token initalizer Add the total token balance to the address of each token account Add default values for each token parameter Add Parameter data structure for holding an initalizing token params Update the update_allowed_conversions to use the pd controller Reaplace by hand reward depositing, with a call to mint Add Token Parameters module, and keys like inflation and lock ratio Move inflation to core from shared app/node: tidy up some commented out code and logging core/storage: refactor epoch update tracker apps/finalize_block: log error when last proposer is missing app/finalize_block: refactor log_block_rewards/apply_inflation clean redundant code and old comments fix `value` types in functions that update parameters storage fix block proposer look-up and unit tests pos/docs: fix docstring typo app/ledger/finalize_block: write inflation + locked ratio via write-log app/ledger: tidy up some logging app/ledger/finalize_block: fix and refactor block proposer look-up test/finalize_block: extend no-DB commit test to ensure we hit inflation apps/ledger: only specify num of validators in "dev" build changelog: add #714 [ci] wasm checksums update redo block proposer storage in abciplus mode clean up documentation and print-outs fix e2e::ledger_tests::double_signing_gets_slashed fix e2e::ledger_tests::pos_init_validator error fix e2e::ledger_tests::proposal_submission upgrade total token supply tracking and balance tracking at genesis fix e2e test ibc WIP - current changes, debug printouts, etc stuff update comments and documentation Cargo lock and tomls tests for inflation configure genesis to set up any number of validators trigger 2-block countdown to new epoch for Tendermint log block rewards with accumulator LazyMaps and apply inflation with rewards products storage types and keys for inflation inflation and rewards modules
- Loading branch information
Showing
18 changed files
with
1,510 additions
and
539 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- Introduce infrastructure for PoS inflation and rewards. Includes inflation | ||
using the PD controller mechanism and rewards based on validator block voting | ||
behavior. Rewards are tracked and effectively distributed using the F1 fee | ||
mechanism. In this PR, rewards are calculated and stored, but they are not | ||
yet applied to voting powers or considered when unbonding and withdrawing. | ||
([#714](https://github.com/anoma/namada/pull/714)) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.