Skip to content

Commit

Permalink
feat: update v4 core deps (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
chefburger authored Apr 16, 2024
1 parent 3e0f407 commit 92d8948
Show file tree
Hide file tree
Showing 28 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
81156
80256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
628530
629630
Original file line number Diff line number Diff line change
@@ -1 +1 @@
920418
920865
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1271123
1271570
Original file line number Diff line number Diff line change
@@ -1 +1 @@
81193
80190
Original file line number Diff line number Diff line change
@@ -1 +1 @@
118210
116639
Original file line number Diff line number Diff line change
@@ -1 +1 @@
115015
113444
Original file line number Diff line number Diff line change
@@ -1 +1 @@
139547
140057
Original file line number Diff line number Diff line change
@@ -1 +1 @@
132273
132783
Original file line number Diff line number Diff line change
@@ -1 +1 @@
137086
137596
Original file line number Diff line number Diff line change
@@ -1 +1 @@
133053
133563
Original file line number Diff line number Diff line change
@@ -1 +1 @@
133128
133638
Original file line number Diff line number Diff line change
@@ -1 +1 @@
168458
168610
Original file line number Diff line number Diff line change
@@ -1 +1 @@
144911
145531
Original file line number Diff line number Diff line change
@@ -1 +1 @@
138417
139037
Original file line number Diff line number Diff line change
@@ -1 +1 @@
138504
139124
Original file line number Diff line number Diff line change
@@ -1 +1 @@
172989
173361
Original file line number Diff line number Diff line change
@@ -1 +1 @@
130870
131490
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactInput.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
251392
251546
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
181897
182408
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactOutput.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
257389
257543
2 changes: 1 addition & 1 deletion .forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
181468
181979
2 changes: 1 addition & 1 deletion .forge-snapshots/NonfungiblePositionManager#collect.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
199332
196939
Original file line number Diff line number Diff line change
@@ -1 +1 @@
75566
74097
Original file line number Diff line number Diff line change
@@ -1 +1 @@
82881
81286
2 changes: 1 addition & 1 deletion .forge-snapshots/NonfungiblePositionManager#mint.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
626792
627163
2 changes: 1 addition & 1 deletion lib/pancake-v4-core
Submodule pancake-v4-core updated 101 files
6 changes: 3 additions & 3 deletions src/pool-cl/base/LiquidityManagement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ abstract contract LiquidityManagement is CLPeripheryImmutableState, PeripheryPay
poolManager.modifyLiquidity(poolKey, ICLPoolManager.ModifyLiquidityParams(tickLower, tickUpper, 0), "");

if (delta.amount0() < 0) {
vault.mint(poolKey.currency0, address(this), uint256(int256(-delta.amount0())));
vault.mint(address(this), poolKey.currency0, uint256(int256(-delta.amount0())));
}

if (delta.amount1() < 0) {
vault.mint(poolKey.currency1, address(this), uint256(int256(-delta.amount1())));
vault.mint(address(this), poolKey.currency1, uint256(int256(-delta.amount1())));
}
}
}
Expand Down Expand Up @@ -106,7 +106,7 @@ abstract contract LiquidityManagement is CLPeripheryImmutableState, PeripheryPay
}

function burnAndTake(Currency currency, address to, uint256 amount) internal {
vault.burn(currency, amount);
vault.burn(address(this), currency, amount);
vault.take(currency, to, amount);
}

Expand Down

0 comments on commit 92d8948

Please sign in to comment.