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

Consider adding a `onlyPoolLender` modifier

Summary

The condition pools[poolId].lender != msg.sender has been checked in Lender.sol::addToPool, Lender.sol::removeFromPool, Lender.sol::updateMaxLoanRatio and Lender.sol::updateInterestRate. Creating a modifier onlyPoolLender and adding it to these functions is recommended.

Support

FAQs

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