-
Notifications
You must be signed in to change notification settings - Fork 335
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
Go back to block based staking rounds and make inflation dynamic (slot based) #2690
Merged
Merged
Changes from 30 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
4cc6ad4
make staking rounds block based again and inflation slot based
librelois 7081f63
remove unused imports
librelois 4bca269
create migration skeleton
librelois 6569530
implement migration
librelois c767ee5
integrate round migration to common migrations
librelois 6f4ebca
apply proportion duration to the current round
librelois c552dd5
compile benchs and test
librelois eac1c7a
add moonbase migration to multiply round length by 2
librelois 7a40e08
compute round duration before round update
librelois 82d249d
fix some bugs
librelois a55186e
fix some rust tests
librelois b8074d9
fix migration
librelois e284107
Merge branch 'master' into elois-rework-staking-rounds
librelois 2dad7f9
apply suggestions
librelois e6bc039
First staking rewards at round 3
librelois 03c751e
revert moonwall config local changes
librelois 00f1935
fix rounds per year
librelois 09f610b
fix periods calculation in reset_round()
Agusrodri 122681a
fix rustc warning
librelois 77049b8
fmt
librelois 1335e31
rework compute issuance
librelois 43e87c3
Remove Staked storage item
librelois ef7fdda
Remove Staked storage item on rust tests
librelois 17fa448
fix two rust tests more
Agusrodri ec43a24
fix test_on_initialize_weights
Agusrodri 9cbe017
fix payouts_follow_delegation_changes test
Agusrodri 2953eb9
Update pallets/parachain-staking/src/lib.rs
librelois 08472ab
Comment moonbase migration
librelois 4b65251
typo
librelois e9dab8b
Update runtime/moonbase/src/migrations.rs
librelois 96336ef
Update runtime/moonbase/src/migrations.rs
RomarQ 6b2f75c
Update pallets/parachain-staking/src/lib.rs
RomarQ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
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.
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.
We could probably have a new helper function named
blocks_per_year
and replaceMS_PER_YEAR / T::BlockTime::get()
by it everywhere.