20,000 USDC
View results
Submission Details
Severity: high

Missing check for transfer and transferFrom() return values

Some tokens don't implement EIP20 correctly which means they don't revert on failed transfers. Examples include but aren't limited to USDT, EURS and BAT.

https://etherscan.io/token/0xdb25f211ab05b1c97d595516f45794528a807ad8#code

https://etherscan.io/token/0x0d8775f648430679a709e98d2b0cb6250d2887ef#code

This will allow pool managers and borrowers to participate in the lending / borrowing without having required funds.

Mitigation steps:

Check transfer and transferFrom return values

Use safeERC20.sol library from openzepplin

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.