Skip to content

Commit

Permalink
update gas snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun1on committed Aug 15, 2024
1 parent cea56de commit 7e8c50c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/MIDDLEWARE_PROTECT-multi-protected.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
178969
178303
2 changes: 1 addition & 1 deletion .forge-snapshots/MIDDLEWARE_PROTECT-protected.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
149436
149751
4 changes: 2 additions & 2 deletions src/middleware/CheapQuoter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {PoolKey} from "@uniswap/v4-core/src/types/PoolKey.sol";
import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol";
import {SwapMath} from "@uniswap/v4-core/src/libraries/SwapMath.sol";
import {TickMath} from "@uniswap/v4-core/src/libraries/TickMath.sol";
import "@uniswap/v4-core/src/libraries/SafeCast.sol";
import {SafeCast} from "@uniswap/v4-core/src/libraries/SafeCast.sol";
import {LiquidityMath} from "@uniswap/v4-core/src/libraries/LiquidityMath.sol";
import {PoolTickBitmap} from "../libraries/PoolTickBitmap.sol";
import {Slot0, Slot0Library} from "@uniswap/v4-core/src/types/Slot0.sol";
Expand Down Expand Up @@ -167,7 +167,7 @@ contract CheapQuoter {
if (state.sqrtPriceX96 == step.sqrtPriceNextX96) {
// if the tick is initialized, run the tick transition
if (step.initialized) {
(, int128 liquidityNet,,) = poolManager.getTickInfo(poolKey.toId(), step.tickNext);
(, int128 liquidityNet) = poolManager.getTickLiquidity(poolKey.toId(), step.tickNext);

// if we're moving leftward, we interpret liquidityNet as the opposite sign
// safe because liquidityNet cannot be type(int128).min
Expand Down

0 comments on commit 7e8c50c

Please sign in to comment.