Closed code423n4 closed 2 years ago
hyh
Gas is overspent on a function call with results unused in production.
gas variable is unused: https://github.com/code-423n4/2021-11-overlay/blob/main/contracts/UniswapV3Listener.sol#L39
gas
Remove the uint gas = gasleft() line.
uint gas = gasleft()
This is not a part of the audit
Invalid - out of scope
Handle
hyh
Vulnerability details
Impact
Gas is overspent on a function call with results unused in production.
Proof of Concept
gas
variable is unused: https://github.com/code-423n4/2021-11-overlay/blob/main/contracts/UniswapV3Listener.sol#L39Recommended Mitigation Steps
Remove the
uint gas = gasleft()
line.