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

0 stars 0 forks source link

Repeated access of storage #239

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

You should cache storage access to improve gas efficiency, e.g.: tranches[_trancheId] is accessed 5 times in function _claim. function acceptAdmin could first set local variable oldPendingAdmin and then compare against it.

ColaM12 commented 2 years ago

Duplicate to #137