-
Notifications
You must be signed in to change notification settings - Fork 364
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/dyn tier thresholds #1306
Merged
Merged
Feat/dyn tier thresholds #1306
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
815ed11
remove number_of_slots from TiersConfiguration
ipapandinas 04ea0df
remove use of TierThreshold enum in TiersConfiguration
ipapandinas 26dd611
percentage variants added to TierThreshold for values derivation from…
ipapandinas 13001f6
dyn tier percentages adjusted
ipapandinas 24a09ae
sanity checks for total issuance percentages customisable via config
ipapandinas 5b5affa
storage migration
ipapandinas 68887d7
storage version checks added
ipapandinas 27a6d32
storage version checks adjusted
ipapandinas 9276ffd
new threshold calculation adjusted
ipapandinas f735aea
field renamed
ipapandinas 5195002
try-runtime sanity check to ensure same number of slots
ipapandinas fbb0bda
add small tolerance to try-runtime sanity check
ipapandinas ce58e5c
README updated
ipapandinas 5fbb35d
remove configurable min/max percentage checks for extra safety
ipapandinas ca710c8
preserve not applied migrations
ipapandinas 657b658
useless procedural macros removed
ipapandinas 32dd3f0
tvl amount variants removed from TierThreshold
ipapandinas aa4d147
from conversion
ipapandinas 18725d0
field renamed
ipapandinas c87cdaa
versioned migration used for static tier params
ipapandinas 853bc6e
PR review fixes
ipapandinas 352eaaf
adjust percentages
ipapandinas d2d4287
review feedbacks
ipapandinas 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
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
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.
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.
Might be worth considering adding more checks for this into the try-runtime check 🙂
For another PR though.
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.
Are you thinking of sanity checks in
pre_upgrade
, like: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.
Both pre & post.
E.g. take current thresholds (active ones) in pre-upgrade, send them to post upgrade.
In post-upgrade, after you derive the new thresholds, ensure they are e.g. within 10% of the old ones.