@meteora-ag/dlmm 1.6.0-sam.1 → 1.6.0-sam.2

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
@@ -13892,7 +13892,7 @@ async function chunkDepositWithRebalanceEndpoint(dlmm, strategy, slippagePercent
13892
13892
  calculatedAddLiquidityCU += DEFAULT_ADD_LIQUIDITY_CU;
13893
13893
  const addLiquidityIxs = [];
13894
13894
  addLiquidityIxs.push(...initBitmapIxs, ...initBinArrayIxs);
13895
- if (dlmm.tokenX.publicKey.equals(_spltoken.NATIVE_MINT) && !totalXAmount.isZero()) {
13895
+ if (dlmm.tokenX.publicKey.equals(_spltoken.NATIVE_MINT)) {
13896
13896
  const wrapSOLIx = wrapSOLInstruction(
13897
13897
  owner,
13898
13898
  userTokenX,
@@ -13901,7 +13901,7 @@ async function chunkDepositWithRebalanceEndpoint(dlmm, strategy, slippagePercent
13901
13901
  addLiquidityIxs.push(createUserTokenXIx);
13902
13902
  addLiquidityIxs.push(...wrapSOLIx);
13903
13903
  }
13904
- if (dlmm.tokenY.publicKey.equals(_spltoken.NATIVE_MINT) && !totalYAmount.isZero()) {
13904
+ if (dlmm.tokenY.publicKey.equals(_spltoken.NATIVE_MINT)) {
13905
13905
  const wrapSOLIx = wrapSOLInstruction(
13906
13906
  owner,
13907
13907
  userTokenY,
@@ -15932,7 +15932,7 @@ var DLMM = class {
15932
15932
  const instructionsByPositions = [];
15933
15933
  let startBinId = minBinId;
15934
15934
  const initializeAtaIxs = [];
15935
- if (!this.tokenX.publicKey.equals(_spltoken.NATIVE_MINT) && !totalXAmount.isZero()) {
15935
+ if (!this.tokenX.publicKey.equals(_spltoken.NATIVE_MINT)) {
15936
15936
  const ownerAtaX = _spltoken.getAssociatedTokenAddressSync.call(void 0,
15937
15937
  this.tokenX.publicKey,
15938
15938
  owner,
@@ -15949,7 +15949,7 @@ var DLMM = class {
15949
15949
  )
15950
15950
  );
15951
15951
  }
15952
- if (!this.tokenY.publicKey.equals(_spltoken.NATIVE_MINT) && !totalYAmount.isZero()) {
15952
+ if (!this.tokenY.publicKey.equals(_spltoken.NATIVE_MINT)) {
15953
15953
  const ownerAtaY = _spltoken.getAssociatedTokenAddressSync.call(void 0,
15954
15954
  this.tokenY.publicKey,
15955
15955
  owner,