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.
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
[Fix|NominationPools] Only allow apply slash to be executed if the slash amount is atleast ED #6540
[Fix|NominationPools] Only allow apply slash to be executed if the slash amount is atleast ED #6540
Changes from 10 commits
89fc9f1
195204d
eff1f31
43dd30a
086d7cd
ce55a7f
5407bf4
02a73ae
d076dc1
d8413c2
c3d887a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
My previous comment only made sense when taken with another made to this line, which asked: why don't we want to enforce the ED checks here?
Sorry, I had the GH open for a while, it might have been lost when I refreshed the browser.
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.
At this point, a gas fee is charged for slashing. Additionally, we need to clean up all bookkeeping before a member withdraws.
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.
Why do we want to to avoid slashing below the ED here (
pub fn apply_slash
)?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.
nit but in order to prevent spreading
do_apply_slash(..., bool)
across the code which is not very readable, how about creating an enum that helps with readability? something along the lines ofNot sure about the enum and variant names, but in general