Skip to content
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

update delegation when slashing #11287

Merged

Conversation

pahor167
Copy link
Contributor

@pahor167 pahor167 commented Dec 3, 2024

Description

When GovernanceSlasher would decide to slash account that is not validator, this account could be delegating votes. When slashing delegation of the votes is not updated correctly. This PR fixes that

Other changes

No other changes

Tested

Unit tests

Related issues

Backwards compatibility

Yes

@pahor167 pahor167 requested a review from a team as a code owner December 3, 2024 13:41
Copy link

openzeppelin-code bot commented Dec 3, 2024

update delegation when slashing

Generated at commit: 9e147ce4cbebc784af9e3c08f4715e3b2fc0154f

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
2
0
14
43
62
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@pahor167 pahor167 enabled auto-merge (squash) December 4, 2024 10:53
@pahor167 pahor167 merged commit 6fde928 into release/core-contracts/12 Dec 4, 2024
24 of 25 checks passed
@pahor167 pahor167 deleted the pahor/updateDelegationWhenSlashing branch December 4, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants