Gas Optimizations #168
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
GAS OPT
calldata
instead ofmemory
1.) File : contracts/tokenomics/FeeBurner.sol (Line.43)
epoch++
for saving more gasusing prefix is common that more saved gas than using postfix.
Tool Used
Remix
Recommended Mitigation
##Occurances
KeeperGauge.sol#L59
KeeperGauge.sol#L98
Every reason string takes at least 32 bytes. Use short reason strings that fits in 32 bytes or it will become more expensive.
Tool Used
Manual Review
Occurances
e.g. (xxxxxx, IAS) //Inflation has Already Started
= 0
This implementation code can be saving more gas by removing = 0, it because If a variable was not set/initialized, it is assumed to have default value to 0
Tool Used
Manual Review
Mitigation Step
Remove
= 0
Occurances
This can be shorter code for gas opt
File : contracts/StakerVault.sol (Line.169)
changed to
The text was updated successfully, but these errors were encountered: