sherlock-audit / 2024-05-elfi-protocol-judging

11 stars 7 forks source link

Salem - Unchecked External Calls #264

Closed sherlock-admin4 closed 4 months ago

sherlock-admin4 commented 4 months ago

Salem

Medium

Unchecked External Calls

Summary

Calls to external contracts such as IVault, IWETH, and IERC20 are not checked for success. This can lead to situations where the external call fails (e.g., due to a revert or an out-of-gas error), but the contract continues execution as if the call succeeded. This can result in inconsistent state

Vulnerability Detail

Impact

Code Snippet

https://github.com/sherlock-audit#L72

Tool used

Manual Review

Recommendation

Utilize low-level calls and verify return values to ensure the success of external calls. This can be achieved by employing the call method and confirming the return value.

Duplicate of #227