-
Notifications
You must be signed in to change notification settings - Fork 503
feat: dAppStaking max tier thresholds #1459
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
Conversation
Dinonard
left a comment
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.
Looks good, I just have two requests:
- remove
Optionfrom the config - for migration, just specify the new max values, since you're not re-defining percentage nor minimum required percentage
Dinonard
left a comment
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.
Please update the is_valid check and let's merge it!
runtime/shibuya/src/lib.rs
Outdated
| required_percentage: Perbill::from_parts(1_400), // 0.00014% | ||
| }, | ||
| ]; | ||
| pub const MaxPercentages: [Option<Perbill>; 4] = [None, None, None, None]; |
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 good to use Some values for Shibuya, just for the sake of the test.
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.
Good idea, I suggest:
pub const MaxPercentages: [Option<Perbill>; 4] = [
Some(Perbill::from_parts(30_000)), // 0.0030%
Some(Perbill::from_parts(20_000)), // 0.0020%
Some(Perbill::from_parts(10_000)), // 0.0010%
None
];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.
If it works, sure.
I don't know what the min values on Shibuya are.
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.
[0.0017%, 0.0010%, 0.00034%]
Minimum allowed line rate is |
Dinonard
left a comment
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
PierreOssun
left a comment
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
Pull Request Summary
Closes #1458
Maximum percentages are derived from an Astar token price of $0.05 (base values from dAppStaking v3 launch).
The
maximum_possible_percentagevalue is optional. If is not specified, the default value used is 100% which reflects the entire total supply.Check list