Closed code423n4 closed 2 years ago
WatchPug
https://github.com/code-423n4/2021-12-amun/blob/98f6e2ff91f5fcebc0489f5871183566feaec307/contracts/basket/contracts/facets/shared/Reentry/ReentryProtection.sol#L11
s.lockCounter++;
Using ++s.lockCounter is more gas efficient than s.lockCounter++ for storage variable.
++s.lockCounter
s.lockCounter++
Duplicate of #108
Handle
WatchPug
Vulnerability details
https://github.com/code-423n4/2021-12-amun/blob/98f6e2ff91f5fcebc0489f5871183566feaec307/contracts/basket/contracts/facets/shared/Reentry/ReentryProtection.sol#L11
Using
++s.lockCounter
is more gas efficient thans.lockCounter++
for storage variable.