Skip to content

Commit

Permalink
Fixed hook stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mehranhydary committed Sep 16, 2024
1 parent 011d432 commit c3a0e2e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions contracts/src/base/Hook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c3a0e2e

Please sign in to comment.