@meteora-ag/dlmm 1.0.48 → 1.0.49-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
@@ -9768,6 +9768,11 @@ var DLMM = class {
9768
9768
  sParameters2,
9769
9769
  activeId.toNumber()
9770
9770
  );
9771
+ console.log(
9772
+ activeId.toString(),
9773
+ binArrayAccountToSwap.account.index.toString(),
9774
+ isBinIdWithinBinArray(activeId, binArrayAccountToSwap.account.index)
9775
+ );
9771
9776
  if (isBinIdWithinBinArray(activeId, binArrayAccountToSwap.account.index)) {
9772
9777
  const bin = getBinFromBinArray(
9773
9778
  activeId.toNumber(),
@@ -9781,6 +9786,13 @@ var DLMM = class {
9781
9786
  inAmountLeft,
9782
9787
  swapForY
9783
9788
  );
9789
+ console.log(
9790
+ "\u{1F680} ~ DLMM ~ amountIn:",
9791
+ amountIn.toString(),
9792
+ amountOut.toString(),
9793
+ fee.toString(),
9794
+ protocolFee.toString()
9795
+ );
9784
9796
  if (!amountIn.isZero()) {
9785
9797
  inAmountLeft = inAmountLeft.sub(amountIn);
9786
9798
  actualOutAmount = actualOutAmount.add(amountOut);
@@ -10552,7 +10564,9 @@ var DLMM = class {
10552
10564
  tokensInvolved.push(this.lbPair.rewardInfos[i].mint);
10553
10565
  }
10554
10566
  }
10555
- positions = positions.filter(({ positionData: { feeX, feeY, rewardOne, rewardTwo } }) => !feeX.isZero() || !feeY.isZero() || !rewardOne.isZero() || !rewardTwo.isZero());
10567
+ positions = positions.filter(
10568
+ ({ positionData: { feeX, feeY, rewardOne, rewardTwo } }) => !feeX.isZero() || !feeY.isZero() || !rewardOne.isZero() || !rewardTwo.isZero()
10569
+ );
10556
10570
  const feeOwners = [
10557
10571
  .../* @__PURE__ */ new Set([
10558
10572
  owner.toBase58(),