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

Unstake only active validators #9

Merged
merged 6 commits into from
Aug 22, 2024
Merged

Unstake only active validators #9

merged 6 commits into from
Aug 22, 2024

Conversation

DhairyaSethi
Copy link
Contributor

@DhairyaSethi DhairyaSethi commented Aug 13, 2024

Currently, the _unstake(validatorId, exitEpoch, rewardInPol) method lacks a validation check on previously offboarded validators in case they have not unstaked their claim. (when they have, their validatorNFT is burned and hence the function reverts on the ownerOf lookup here)
This check is validated externally on all invocations of the method except for the forceUnstake method.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@simonDos simonDos merged commit c795e76 into feat/pol Aug 22, 2024
1 of 2 checks passed
@simonDos simonDos deleted the fix/forceUnstake branch August 22, 2024 10:55
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.

3 participants