20,000 USDC
View results
Submission Details
Severity: medium

Set MIN_INTEREST_RATE to avoid pool freeze

Summary

Vulnerability Details

The contract has MAX_INTEREST_RATE set but there's no MIN_INTEREST_RATE. This could lead to various functionality of the protocol to stop working for the loan (borrower).

Impact

If the interest rate is set to a very low rate. It could result in various functionalities to stop working.

  1. It will net no protocolFee at all to the protocol (Even though the lender might only earn some interest).

  2. If the interest rate is set to 0 or other low value. It will stop the function from working where the protocolFee is transferred. As, quite a few of the tokens do not allow 0 token transfer.

Tools Used

Manual Review.

Recommendations

Set an appropriate MIN_INTEREST_RATE.

Support

FAQs

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