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

Use descriptive errors

Summary

In Lender.sol the updateInterestRate() and updateMaxLoanRatio() use PoolConfig() for reverts which is not descriptive enough.

Vulnerability Details

When debugging, for instance in updateInterestRate() if one passes interestRate which is greater than MAX_INTEREST_RATE, only
PoolConfig() error is displayed.

Impact

Increase in debug time.

Tools Used

Manual review

Recommendations

Use

+revert InvalidInterestRate()
-revert PoolConfig()

Support

FAQs

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

Give us feedback!