20,000 USDC
View results
Submission Details
Severity: gas

Optimize names to save gas

Summary

Vulnerability Details

Contracts most called functions could simply save gas by function ordering via Method ID. Calling a function at runtime will be cheaper if the function is positioned earlier in the order (has a relatively lower Method ID) because 22 gas are added to the cost of a function for every position that came before it. The caller can save on gas if you prioritize most called functions.

see more here

Impact

Tools Used

Recommendations

Find a lower method ID name for the most called functions for example Call() vs. Call1() is cheaper by 22 gas.
For example, the function IDs in the Gauge.sol contract will be the most used; A lower method ID may be given.

Support

FAQs

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