@meteora-ag/cp-amm-sdk 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -10783,9 +10783,9 @@ var CpAmm = class {
10783
10783
  maxSqrtPrice
10784
10784
  ),
10785
10785
  rawAmount: (delta) => getAmountBFromLiquidityDelta(
10786
- delta,
10787
- sqrtPrice,
10788
10786
  minSqrtPrice,
10787
+ sqrtPrice,
10788
+ delta,
10789
10789
  0 /* Up */
10790
10790
  )
10791
10791
  } : {
@@ -10795,9 +10795,9 @@ var CpAmm = class {
10795
10795
  sqrtPrice
10796
10796
  ),
10797
10797
  rawAmount: (delta) => getAmountAFromLiquidityDelta(
10798
- delta,
10799
10798
  sqrtPrice,
10800
10799
  maxSqrtPrice,
10800
+ delta,
10801
10801
  0 /* Up */
10802
10802
  )
10803
10803
  };
@@ -10837,15 +10837,15 @@ var CpAmm = class {
10837
10837
  tokenBTokenInfo
10838
10838
  } = params;
10839
10839
  const amountA = getAmountAFromLiquidityDelta(
10840
- liquidityDelta,
10841
10840
  sqrtPrice,
10842
10841
  maxSqrtPrice,
10842
+ liquidityDelta,
10843
10843
  1 /* Down */
10844
10844
  );
10845
10845
  const amountB = getAmountBFromLiquidityDelta(
10846
- liquidityDelta,
10847
- sqrtPrice,
10848
10846
  minSqrtPrice,
10847
+ sqrtPrice,
10848
+ liquidityDelta,
10849
10849
  1 /* Down */
10850
10850
  );
10851
10851
  return {
@@ -12007,15 +12007,15 @@ var CpAmm = class {
12007
12007
  refreshVestingInstruction && preInstructions.push(refreshVestingInstruction);
12008
12008
  }
12009
12009
  const tokenAWithdrawAmount = getAmountAFromLiquidityDelta(
12010
- positionBLiquidityDelta,
12011
12010
  poolState.sqrtPrice,
12012
12011
  poolState.sqrtMaxPrice,
12012
+ positionBLiquidityDelta,
12013
12013
  1 /* Down */
12014
12014
  );
12015
12015
  const tokenBWithdrawAmount = getAmountBFromLiquidityDelta(
12016
- positionBLiquidityDelta,
12017
- poolState.sqrtPrice,
12018
12016
  poolState.sqrtMinPrice,
12017
+ poolState.sqrtPrice,
12018
+ positionBLiquidityDelta,
12019
12019
  1 /* Down */
12020
12020
  );
12021
12021
  const newLiquidityDelta = this.getLiquidityDelta({