Closed code423n4 closed 3 years ago
WatchPug
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.
controller
Make it immutable can save gas.
immutable
Duplicate of https://github.com/code-423n4/2021-10-pooltogether-findings/issues/12
Duplicate of #47
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.