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

Consider using descriptive constants

using constant to store the MAX_LENDER_FEE and MAX_BORROW_FEE will increase the readability of the code

uint256 private constant MAX_LENDER_FEE = 5000 ;
uint256 private constant MAX_BORROW_FEE = 500 ;

the check in the setter functions will be

if (_fee > MAX_LENDER_FEE) revert FeeTooHigh();
if (_fee > MAX_BORROW_FEE) revert FeeTooHigh();

Support

FAQs

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