Closed code423n4 closed 2 years ago
1-. Redundant variable initialization
a. Summary: Initialization for some variables is not needed.
b. Details: The default value of bytes is 0x00 which is the same as 0, thus the initialization to 0 is not needed and will save gas.
c. Github Permalinks: https://github.com/code-423n4/2022-06-notional-coop/blob/main/notional-wrapped-fcash/contracts/proxy/WrappedfCashFactory.sol#L12
d. Mitigation: Remove the initialization.
Duplicate #130 by the same warden.
1-. Redundant variable initialization
a. Summary: Initialization for some variables is not needed.
b. Details: The default value of bytes is 0x00 which is the same as 0, thus the initialization to 0 is not needed and will save gas.
c. Github Permalinks: https://github.com/code-423n4/2022-06-notional-coop/blob/main/notional-wrapped-fcash/contracts/proxy/WrappedfCashFactory.sol#L12
d. Mitigation: Remove the initialization.