20,000 USDC
View results
Submission Details
Severity: high
Valid

Possible Violation Of Minimal Loan Amount And Max Ratio

Summary

It is possible to add loan to the pool which is less the the pool minimal loan value and max ration.

Vulnerability Details

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.

Impact

This will allow to violate the pool data consistency, requirements and may lead to griefing attacks.

Tools Used

Manual review

Recommendations

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.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.