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

Create modifier to check if isLender

Summary

Vulnerability Details

The same code for checking if the msg.sender is the owner of the pool or not; has been repeated over and over again in multiple functions.

Impact

Issue with the general programming principle of DRY (Don't Repeat Yourself). Can be considered Informational.

Tools Used

Manual Review.

Recommendations

Use a modifier which checks if the msg.sender is ther owner of the pool and implement the modifier to the functions.

Support

FAQs

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