-
Notifications
You must be signed in to change notification settings - Fork 476
Update reporter delegated amount during slashing #11572
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
base: release/core-contracts/16
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -507,6 +507,7 @@ contract LockedGold is | |
| } | ||
|
|
||
| _updateDelegatedAmount(account); | ||
| _updateDelegatedAmount(reporter); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just noting: if I remember correctly, the point of having an In fact, even the above call with |
||
|
|
||
| address communityFund = registry.getAddressForOrDie(GOVERNANCE_REGISTRY_ID); | ||
| address payable communityFundPayable = address(uint160(communityFund)); | ||
|
|
||
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.
When slashing through
GovernanceSlasherthe reporter is0x0so I would add this exclusion:and appropriate test case for it in
LockedGold.t.solUh oh!
There was an error while loading. Please reload this page.
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.
Additionally 👉 how about the found issue within
unlockfunction?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.
Yes, this is probably even necessary, otherwise the call to
voteSignerToAccountinside_updateDelegatedAmountwould revert, making Governance slashings impossible.