Return value of ERC20 token approve not checked for successful approval
ERC20 tokens return a bolean value to indicate the success of the approval operation. The _replaceDepositToken
and the _replaceDepositTokenGateway
internal functions implement ERC20 token approvals without checking the return values.
Potential critical code execution when transaction is supposed to revert early.
Manual Review
Consider validating the boolean
return value of the ERC20 token approve function.
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.