20,000 USDC
View results
Submission Details
Severity: gas

Replace memory with calldata in Lender::_calculateInterest

Vulnerability Details

The parameter type of Lender::_calculateInterest could be calldata instead of memroy since there is no memory write.

Impact

No.

Tools Used

manual

Recommendations

function _calculateInterest(
- Loan memory l
+ Loan calldata l
) internal view returns (uint256 interest, uint256 fees) {

Support

FAQs

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