Some ERC20 tokens (major ones like USDT, BNB) have a vulnerability "Missing Return Value Bug". If this contract has to deal with those tokens, it might pose a problem.
Recommended Mitigation Steps
In the contract Zapper.sol, safeERC20 library should be used to implement the ERC20 token transfer functionality. This library is already being used for approve in this contract, so might as well use it for transfer
Handle
cryptojedi88
Vulnerability details
Impact
Some ERC20 tokens (major ones like USDT, BNB) have a vulnerability "Missing Return Value Bug". If this contract has to deal with those tokens, it might pose a problem.
Recommended Mitigation Steps
In the contract Zapper.sol, safeERC20 library should be used to implement the ERC20 token transfer functionality. This library is already being used for
approve
in this contract, so might as well use it fortransfer