sherlock-audit / 2024-05-napier-update-judging

8 stars 7 forks source link

Albort - When executing RenzoAdapter::_stake(), sending RswETH to the contract might cause the final check to fail. #92

Closed sherlock-admin4 closed 4 months ago

sherlock-admin4 commented 5 months ago

Albort

medium

When executing RenzoAdapter::_stake(), sending RswETH to the contract might cause the final check to fail.

Summary

When executing RenzoAdapter::_stake(), sending RswETH to the contract might cause the final check to fail.

Vulnerability Detail

Impact

An exception cannot be thrown when the operation RENZO_RESTAKE_MANAGER.depositETH{value: stakeAmount}(0); fails.

Code Snippet

Tool used

Manual Review

Recommendation

Check the address sending tokens to the contract.

sherlock-admin4 commented 4 months ago

1 comment(s) were left on this issue during the judging contest.

z3s commented:

Invalid; Vulnerability Detail is not clear.