Closed code423n4 closed 2 years ago
byterocket
Assigned operations to constant variables are re-evaluated every time. See here.
Therefore, refactor following AccessControl roles from being constant to immutable:
AccessControl
constant
immutable
arbitrum-lpt-bridge: - L2/gateway/L2Migrator * GOVERNOR_ROLE - ControlledGateway * GOVERNOR_ROLE - L1/gateway/L1Migrator * GOVERNOR_ROLE - token/LivepeerToken * MINTER_ROLE * BURNER_ROLE
Duplicate of https://github.com/code-423n4/2022-01-livepeer-findings/issues/172
Handle
byterocket
Vulnerability details
Impact
Assigned operations to constant variables are re-evaluated every time. See here.
Therefore, refactor following
AccessControl
roles from beingconstant
toimmutable
: