20,000 USDC
View results
Submission Details
Severity: gas

Use calldata instead of memory

Summary

Use calldata instead of memory

Vulnerability Details

Consider refactoring the function arguments from memory to calldata when they are immutable, as calldata is cheaper.

Impact

Cost more gas.

Tools Used

Manual Review

Recommendations

  • Consider using calldata instead of memory.

Support

FAQs

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