updateShareholder
in FeeSplitter.sol
can be implemented more efficiently
#11
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
0x0x0x
Vulnerability details
Explanation
updateShareholder
inFeeSplitter.sol
can be implemented more efficiently. The updated version consumes less gas and also has the secondrequire
statement earlier, which reduces the gas cost in case the statement of secondrequire
is not fullfilled.FeeSplitter.sol
: L166-174:can be replaced with:
Tools Used
Manual analysis
The text was updated successfully, but these errors were encountered: