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

Lack of pause pool function in Lender contract

Summary

If a lender would like to stop lending, they have no option to do it.

Vulnerability Details

Lets say Pool A has an ongoing loan of 10 token A, and 0 liquidity in the pool.
Pool A does not want to initialize any more loans.
As soon as the Loan of 10 token A is paid back by the borrower it's possible to take it as a loan and maybe the pool owner is not able to withdraw it before it happens.

Impact

Possibility of lender cannot access their liquidity

Tools Used

Manual review

Recommendations

Add an option to pause the pool -> so no new loans can be taken from the available liquidity

Support

FAQs

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