@meteora-ag/dlmm 1.0.39-rc.12 → 1.0.39-rc.14

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
@@ -9922,7 +9922,7 @@ var DLMM = class {
9922
9922
  if (bins.every(({ liquiditySupply }) => liquiditySupply.isZero())) {
9923
9923
  count--;
9924
9924
  } else {
9925
- const lastBinWithLiquidityIndex = bins.findLastIndex(
9925
+ const lastBinWithLiquidityIndex = bins.findIndex(
9926
9926
  ({ liquiditySupply }) => !liquiditySupply.isZero()
9927
9927
  );
9928
9928
  console.log(
@@ -9930,7 +9930,7 @@ var DLMM = class {
9930
9930
  bins[lastBinWithLiquidityIndex].amountY.toString()
9931
9931
  );
9932
9932
  binPriceWithLastLiquidity = bins[lastBinWithLiquidityIndex].price.toString();
9933
- count = binArrays.length;
9933
+ count = -1;
9934
9934
  }
9935
9935
  }
9936
9936
  }