20,000 USDC
View results
Submission Details
Severity: high

`giveLoan` the old lender can cause the new lender more risk and cause more debt on him

Summary

Vulnerability Details

if (pool.poolBalance < totalDebt) revert PoolTooSmall();

ex:

Bob has 1,000,000 poolBalance for loans
Bob only wants 200,000 loan
But Alice increases the interest to (500,000) which creates more risk for the loan(lender)

Bob takes it since there is no minimum check on how much debt Bob wants to take

Impact

Risk for Bob and causing Bob more debt than before by artificially upping the interest

Tools Used

Recommendations

Add state var that checks the minimum of debt that the new lender wants to take

Support

FAQs

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