Use short reason strings can save gas #48
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
WatchPug
Vulnerability details
Every reason string takes at least 32 bytes.
Use short reason strings that fits in 32 bytes or it will become more expensive.
Instances include:
https://github.com/maple-labs/maple-proxy-factory/blob/ee5f6beaf857c1b900cf74bcfdc4250a5189482a/contracts/MapleProxyFactory.sol#L33-L33
https://github.com/maple-labs/maple-proxy-factory/blob/ee5f6beaf857c1b900cf74bcfdc4250a5189482a/contracts/MapleProxyFactory.sol#L42-L42
https://github.com/maple-labs/liquidations/blob/bb09e17b1fac1126ce7734e58c3133be06162590/contracts/SushiswapStrategy.sol#L53-L53
https://github.com/maple-labs/liquidations/blob/bb09e17b1fac1126ce7734e58c3133be06162590/contracts/SushiswapStrategy.sol#L74-L74
https://github.com/maple-labs/liquidations/blob/bb09e17b1fac1126ce7734e58c3133be06162590/contracts/UniswapV2Strategy.sol#L53-L53
https://github.com/maple-labs/liquidations/blob/bb09e17b1fac1126ce7734e58c3133be06162590/contracts/UniswapV2Strategy.sol#L74-L74
The text was updated successfully, but these errors were encountered: