The function seizeLoan(uint256[] calldata loanIds) can be executed as long as long as the auction has ended. Even if the borrower has not defaulted.
The function seizeLoan(uint256[] calldata loanIds) public puts the borrower in a vulnerable position, as he has no control over the liquidation process.
Even though he won't have to pay any fees/interest, he will lose his collateral, he might lose money if the collateral price goes up.
Borrowers could face unmerited financial losses, especially if the collateral's value goes up.
A detailed review of the code base was conducted to identify this issue.
Add a check for LTV, only liquidate the loan if LTV gets lower than maxLoanRatio.
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.