-
Notifications
You must be signed in to change notification settings - Fork 49
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
Redesign commission rule #1294
Redesign commission rule #1294
Conversation
@@ -563,16 +558,16 @@ fn payout_should_work() { | |||
let session_duration = Duration::new(6 * 60 * 60, 0).as_millis(); | |||
Staking::payout(session_duration, Staking::elapsed_time()); | |||
let rewards = [ | |||
1_366_118_870_124_739_965_121_u128, | |||
2_550_088_512_393_184_504_844, | |||
1_366_118_850_452_628_471_390, |
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.
Slightly different due to the accuracy losses of Perbill
.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@@ -940,6 +930,7 @@ pub use pallet::*; | |||
|
|||
type RewardPoint = u32; | |||
type Power = u32; | |||
type Vote = u32; |
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.
Can you add some comment on the differences between the vote and power here? I am not sure if the vote equals to the power * adjustment.
Check f9b35c2
|
Check f9b35c2
|
Check f9b35c2
|
Check f9b35c2
|
Resolve part of #1238.