@@ -31,8 +31,7 @@ abstract contract BNBPartyLiquidity is BNBPartySwaps {
31
31
amount1,
32
32
sqrtPrice,
33
33
party.partyLpFee,
34
- party.partyTicks.tickLower,
35
- party.partyTicks.tickUpper
34
+ party.partyTicks
36
35
);
37
36
isParty[liquidityPool] = true ; // Mark the liquidity pool as a party pool
38
37
isTokenOnPartyLP[_token] = true ; // Mark the token as part of the party LP
@@ -56,8 +55,7 @@ abstract contract BNBPartyLiquidity is BNBPartySwaps {
56
55
uint256 amount1 ,
57
56
uint160 sqrtPriceX96 ,
58
57
uint24 fee ,
59
- int24 tickLower ,
60
- int24 tickUpper
58
+ Ticks memory ticks
61
59
) internal returns (address liquidityPool ) {
62
60
// Create LP
63
61
liquidityPool = liquidityManager.createAndInitializePoolIfNecessary (
@@ -73,8 +71,8 @@ abstract contract BNBPartyLiquidity is BNBPartySwaps {
73
71
token0: token0,
74
72
token1: token1,
75
73
fee: fee,
76
- tickLower: tickLower,
77
- tickUpper: tickUpper,
74
+ tickLower: ticks. tickLower,
75
+ tickUpper: ticks. tickUpper,
78
76
amount0Desired: amount0,
79
77
amount1Desired: amount1,
80
78
amount0Min: 0 ,
@@ -140,7 +138,7 @@ abstract contract BNBPartyLiquidity is BNBPartySwaps {
140
138
IERC20 (token0).approve (address (positionManager), amount0);
141
139
IERC20 (token1).approve (address (positionManager), amount1);
142
140
// Create new Liquidity Pool
143
- _createLP (positionManager, token0, token1, amount0, amount1, newSqrtPriceX96, party.lpFee, party.lpTicks.tickLower, party.lpTicks.tickUpper );
141
+ _createLP (positionManager, token0, token1, amount0, amount1, newSqrtPriceX96, party.lpFee, party.lpTicks);
144
142
145
143
// Send bonuses
146
144
_unwrapAndSendBNB (recipient, unwrapAmount);
0 commit comments