ERC20 tokens that do not follow the standard correctly can cause a DOS or unexpected behavior.
In Lender.sol dangerous ERC20 operations are used for collateralToken and loanToken (which are both configured by the user). Not all ERC20s follow the standard. Some do silent fails if not the operation is not checked (like USDT), some revert if approval is from non-zero to non-zero value and other have before and after transfer hooks.
The protocol can wrongly assume that a certain ERC20 operation was successful, leading to unexpected behavior.
Manual Review
use safeERC20 by OZ.
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.