Open code423n4 opened 2 years ago
Caching requires using a register, which we're running quite low on due to other variables and scoping. We'll see if I can make this work out.
reopening as per judges assessment as "primary issue" on findings sheet
Handle
pauliax
Vulnerability details
Impact
_currentValset.validators.length in functions submitLogicCall, submitBatch and updateValset are accessed multiple (4) times. It would save some gas if you cache this value in a variable and re-use it where necessary.