@meteora-ag/dlmm 1.1.3-rc.0 → 1.1.3-rc.1

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
@@ -9766,8 +9766,10 @@ var DLMM = class {
9766
9766
  user
9767
9767
  );
9768
9768
  createPayerTokenIx && preInstructions.push(createPayerTokenIx);
9769
+ const reserve = removeLiquidityForY ? reserveY : reserveX;
9770
+ const tokenMint = removeLiquidityForY ? tokenYMint : tokenXMint;
9769
9771
  const postInstructions = [];
9770
- if (removeLiquidityForY && this.tokenY.publicKey.equals(_spltoken.NATIVE_MINT) || !removeLiquidityForY && this.tokenX.publicKey.equals(_spltoken.NATIVE_MINT)) {
9772
+ if (tokenMint.equals(_spltoken.NATIVE_MINT)) {
9771
9773
  const closeWrappedSOLIx = await unwrapSOLInstruction(user);
9772
9774
  closeWrappedSOLIx && postInstructions.push(closeWrappedSOLIx);
9773
9775
  }
@@ -9777,8 +9779,6 @@ var DLMM = class {
9777
9779
  const maxBinArrayIndex = binIdToBinArrayIndex(new (0, _anchor.BN)(maxBinId));
9778
9780
  const useExtension = isOverflowDefaultBinArrayBitmap(minBinArrayIndex) || isOverflowDefaultBinArrayBitmap(maxBinArrayIndex);
9779
9781
  const binArrayBitmapExtension = useExtension ? deriveBinArrayBitmapExtension(this.pubkey, this.program.programId)[0] : null;
9780
- const reserve = removeLiquidityForY ? reserveY : reserveX;
9781
- const tokenMint = removeLiquidityForY ? tokenYMint : tokenXMint;
9782
9782
  const removeLiquiditySingleSideTx = await this.program.methods.removeLiquiditySingleSide().accounts({
9783
9783
  position,
9784
9784
  lbPair,