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

Gas Optimization on constructor

Summary

In the constructor, we can remove s_collateralTokens.push(tokenAddresses[i]); from the for loop so we can save some gas

Vulnerability Details

Impact

Low

Tools Used

Foundry Gas report

Recommendations

Remove the s_collateralTokens.push(tokenAddresses[i]); from inside the constructor (line 120) and put outside of it and attribute, like: s_collateralTokens = tokenAddresses;

Support

FAQs

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