It is possible to add loan to the pool which is less the the pool minimal loan value and max ration.
In the buyLoan function it is not checked if the totalDebt value is not less than the pools[poolId].minLoanSize. It is not checked if the loan ratio is less or equal than pool[poolId].maxLoanRatio.
This will allow to violate the pool data consistency, requirements and may lead to griefing attacks.
Manual review
Verify if the totalDebt value is not less than the pools[poolId].minLoanSize and if the loan ratio is less or equal than pool[poolId].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.