buyLoan function doesn't check min loan and collateral ratio for the pool
Each pool has min loan amount and min collateral ratio allowed. This is needed in order to not receive unwanted loans.
However, buyLoan function doesn't check that variables and as result it's possible that loan will be bought with debt that is less than pool's min loan amount or collateral will be provided not enough according to the pool's collateral ratio.
Unwanted loan can be purchased.
VsCode
Add such checks as it's done here
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.