From 173b3ac1f98f11ba09e2d38f4e2cd780266799ce Mon Sep 17 00:00:00 2001 From: Junion <69495294+Jun1on@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:48:48 -0400 Subject: [PATCH] gas optimization --- .forge-snapshots/FeeTakingWithdrawTwoTokens.snap | 2 +- contracts/hooks/examples/FeeTaker.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.forge-snapshots/FeeTakingWithdrawTwoTokens.snap b/.forge-snapshots/FeeTakingWithdrawTwoTokens.snap index 97b53e53..6565a566 100644 --- a/.forge-snapshots/FeeTakingWithdrawTwoTokens.snap +++ b/.forge-snapshots/FeeTakingWithdrawTwoTokens.snap @@ -1 +1 @@ -71449 \ No newline at end of file +71441 \ No newline at end of file diff --git a/contracts/hooks/examples/FeeTaker.sol b/contracts/hooks/examples/FeeTaker.sol index 5563a113..91d1fb7d 100644 --- a/contracts/hooks/examples/FeeTaker.sol +++ b/contracts/hooks/examples/FeeTaker.sol @@ -75,7 +75,7 @@ abstract contract FeeTaker is BaseHook { manager.burn(address(this), CurrencyLibrary.toId(currencies[i]), amount); manager.take(currencies[i], _recipient(), amount); unchecked { - i++; + ++i; } } return ZERO_BYTES;