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

Solidity Optimizor

Summary

Solidity Gas Optimizor not set in configuration or documentation or policy

Vulnerability Details

The Solidity Optimizer settings are not explicitly set as a policy or in the configurations or foundry.toml etc
It appears there is no policy on this crucial issue or default e.g 200 runs is accepted

Impact

This can result in using optimizer settings that are no best for reducing gas costs for the users.
The more the runs e.g 10,000 the cheaper the gas costs for functions for users. The smaller the runs, the cheaper the deployment costs. It's essential to put users first in order to attract more and better usage of protocol.

Tools Used

Manual Analysis

Recommendations

It is recommended to test various solidity optimizer runs until the optimal value that reduces the gas costs of functions of users is obtained. Projects need to put users first and help reduce their costs of interacting with projects to increase their incentive to participate.
E.g specify in foundry.toml file or as part of policy for deployment etc
optimizer = true
optimizer_runs = 2000

Support

FAQs

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