The _depositRawEthIntoLido function in the ZapRouterBase contract performs a low-level call to the Lido contract without handling potential failures. This could lead to silent failures and unexpected behavior.
Issue
The call to the Lido contract could fail without being detected, leading to incorrect balance calculations.
Lines of code
https://github.com/code-423n4/2024-06-badger/blob/9173558ee1ac8a78a7ae0a39b97b50ff0dd9e0f8/ebtc-zap-router/src/ZapRouterBase.sol#L34-L41
Vulnerability details
Description
The _depositRawEthIntoLido function in the ZapRouterBase contract performs a low-level call to the Lido contract without handling potential failures. This could lead to silent failures and unexpected behavior.
Issue
The
call
to the Lido contract could fail without being detected, leading to incorrect balance calculations.Tools Used
Manual review
Recommended Mitigation Steps
Assessed type
Error