code-423n4 / 2022-06-notional-coop-findings

1 stars 1 forks source link

Gas Optimizations #200

Closed code423n4 closed 2 years ago

code423n4 commented 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.

gzeoneth commented 2 years ago

Duplicate #130 by the same warden.