Unchecked Return Values from External Calls in BridgeSteth Contract
The contract does not check the return values of the transferFrom and transfer functions of the stETH contract. This could potentially lead to unexpected behavior if these functions fail for any reason.
Manual Review
To resolve this issue, you should explicitly check the return values of the 'transferFrom' and 'transfer' functions. If these functions do not return 'true', the contract should revert with an appropriate error message. Here is an example of how you can modify the 'deposit' and 'withdraw' functions:
This way, if the 'transferFrom' or 'transfer' function fails for any reason, the entire transaction will be reverted, preventing any inconsistencies in the contract's state.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.