code-423n4 / 2022-01-openleverage-findings

0 stars 0 forks source link

.length in a loop #243

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

.length in a loop can be extracted into a variable and used where necessary to reduce the number of storage reads GovernorAlpha.sol

  for (uint i = 0; i < proposal.targets.length; i++)
ColaM12 commented 2 years ago

Duplicate to #15