code-423n4 / 2021-10-pooltogether-findings

0 stars 0 forks source link

`ControlledToken.sol` Unnecessary storage variable #39

Closed code423n4 closed 3 years ago

code423n4 commented 3 years ago

Handle

WatchPug

Vulnerability details

https://github.com/pooltogether/v4-core/blob/055335bf9b09e3f4bbe11a788710dd04d827bf37/contracts/ControlledToken.sol#L18-L18

The storage variable controller is unnecessary as it will never be changed.

Make it immutable can save gas.

PierrickGT commented 3 years ago

Duplicate of https://github.com/code-423n4/2021-10-pooltogether-findings/issues/12

GalloDaSballo commented 3 years ago

Duplicate of #47