Closed code423n4 closed 2 years ago
gzeon
Some known to be safe math can be put in a unchecked block to save gas.
contracts/L2/gateway/L2LPTDataCache.sol:65
l2SupplyFromL1 -= _amount;
is safe since _amount <= l2SupplyFromL1
unchecked{ l2SupplyFromL1 -= _amount; }
Duplicate of https://github.com/code-423n4/2022-01-livepeer-findings/issues/173
Handle
gzeon
Vulnerability details
Impact
Some known to be safe math can be put in a unchecked block to save gas.
Proof of Concept
contracts/L2/gateway/L2LPTDataCache.sol:65
is safe since _amount <= l2SupplyFromL1