From c3a0e2e735e18eeb3fd43ff14f994c04ac6144d6 Mon Sep 17 00:00:00 2001 From: mehranhydary Date: Mon, 16 Sep 2024 18:18:47 -0400 Subject: [PATCH] Fixed hook stuff --- contracts/src/base/Hook.sol | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/contracts/src/base/Hook.sol b/contracts/src/base/Hook.sol index b5cef58..832d393 100644 --- a/contracts/src/base/Hook.sol +++ b/contracts/src/base/Hook.sol @@ -221,10 +221,11 @@ abstract contract Hook is BaseHook, WyvernInspired { } } - beforeSwapDelta = toBeforeSwapDelta( - int128(uint128(amountIn)), // specified == token0/token1 - -int128(uint128(amountOut)) // unspecified == token1/token0 - ); + // beforeSwapDelta = toBeforeSwapDelta( + // int128(uint128(amountIn)), // specified == token0/token1 + // -int128(uint128(amountOut)) // unspecified == token1/token0 + // ); + beforeSwapDelta = toBeforeSwapDelta(0, 0); } function _settle(Currency currency, uint128 amount) internal {