-
Notifications
You must be signed in to change notification settings - Fork 3
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
Set default validator OFA share to 50% #22
Conversation
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.
Not sure if int instead of uint for validatorsRefundShareMap
is an intentional choice or not. It looks safe as it is now, just unexpected var type
The intent is to set the refund share to 50% by default for all validators. As E.g. a validator calls: updateValidatorRefundShare(1000); // Sets share to 10% The getValidatorRefundShare(aboveValidator); It returns -4000 + 5000 = Hence |
Cool, this looks good to me then. I can't see any security issues caused by this. We can leave it as is imo. |
This sets the default refund share to 50% instead of 0.
Public method
getValidatorRefundShare
should be used by frontends to retrieve a validator refund share (instead of former public accessorvalidatorsRefundShareMap
).