liquidate() has no check on address collateral, address user and uint256 debtToCover.
The liquidate() function has 3 user inputs address collateral, address user and uint256 debtToCover but no safety check apart from moreThanZero modifier.
address collateral could be a wrong token address making the function fail.
address user could be address(0) making the function fail.
uint256 debtToCover could be an uint256 > user's balance.
Lack of checks can lead to user's errors and protocol malfunction.
Manual review
Add appropriate safety checks.
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.