Factory.sol#constructor
Remove redundant code can save gas
#66
Labels
bug
Warden finding
duplicate
Another warden found this issue
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
WatchPug
Vulnerability details
As per the Solidity documenation:
Setting
ownerSplit
to0
in the constructor is redundant.Removing
ownerSplit = 0;
can make the code simpler and save some gas.https://github.com/code-423n4/2021-10-defiprotocol/blob/7ca848f2779e2e64ed0b4756c02f0137ecd73e50/contracts/contracts/Factory.sol#L18-L22
Recommendation
Remove the redundant code.
The text was updated successfully, but these errors were encountered: