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

Lender.sol - create and use an onlyLender() modifier

Summary

A onlyLender() modifier could be created removing duplicated code from multiple functions across the contract

Vulnerability Details

Impact

Tools Used

Manual Review

Recommendations

Create a modifier

modifier onlyLender(lender) {
if (lender != msg.sender) revert Unauthorized();
_;
}

Support

FAQs

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