Skip to content

fix(#911): apply CEI pattern and ReentrancyGuard to withdraw and claimRewards#7304

Closed
BWM0223 wants to merge 3 commits into
UnsafeLabs:mainfrom
BWM0223:fix/reentrancy-911
Closed

fix(#911): apply CEI pattern and ReentrancyGuard to withdraw and claimRewards#7304
BWM0223 wants to merge 3 commits into
UnsafeLabs:mainfrom
BWM0223:fix/reentrancy-911

Conversation

@BWM0223

@BWM0223 BWM0223 commented Jun 26, 2026

Copy link
Copy Markdown

Fixes #911. Moves state updates before external calls in withdraw and claimRewards. Adds nonReentrant modifier. Includes reentrancy attack test with malicious contract.

@BWM0223

BWM0223 commented Jun 26, 2026

Copy link
Copy Markdown
Author

Payment wallets: ETH/ERC-20: 0xeaCAb48a4bfA0CED0e668c166615927115655594 | SOL: C3MD2yfWYebB8FYXpq6ooqzU5GCQB1bDxbDhQf1JfiCW | BTC: bc1qtmlgtvg7xgv0zry3ct90elp3y7d3ffdutk4e2f

@github-actions

Copy link
Copy Markdown
Contributor

Unfortunately the changes in this PR didn't fully resolve the issue. Please rework your solution and submit a new pull request.

Make sure to review the acceptance criteria in the linked issue and verify all conditions are met before resubmitting. See CONTRIBUTING.md for guidelines.

@github-actions github-actions Bot closed this Jun 26, 2026
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.

[ Crypto ] Fix reentrancy vulnerability in StakingVault withdraw and claimRewards

1 participant