-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go back to block based staking rounds and make inflation dynamic (slo…
…t based) (#2690) * make staking rounds block based again and inflation slot based * remove unused imports * create migration skeleton * implement migration * integrate round migration to common migrations * apply proportion duration to the current round * compile benchs and test * add moonbase migration to multiply round length by 2 * compute round duration before round update * fix some bugs * fix some rust tests * fix migration * apply suggestions * First staking rewards at round 3 * revert moonwall config local changes * fix rounds per year * fix periods calculation in reset_round() * fix rustc warning * fmt * rework compute issuance * Remove Staked storage item * Remove Staked storage item on rust tests * fix two rust tests more * fix test_on_initialize_weights * fix payouts_follow_delegation_changes test * Update pallets/parachain-staking/src/lib.rs Co-authored-by: Rodrigo Quelhas <[email protected]> * Comment moonbase migration * typo * Update runtime/moonbase/src/migrations.rs Co-authored-by: Rodrigo Quelhas <[email protected]> * Update runtime/moonbase/src/migrations.rs * Update pallets/parachain-staking/src/lib.rs --------- Co-authored-by: Agusrodri <[email protected]> Co-authored-by: Rodrigo Quelhas <[email protected]>
- Loading branch information
1 parent
85b81ca
commit 3be4e9a
Showing
20 changed files
with
467 additions
and
371 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
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.