@meteora-ag/dlmm 1.0.39-rc.15 → 1.0.39-rc.17

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
@@ -9921,11 +9921,11 @@ var DLMM = class {
9921
9921
  const binArray = binArrays[count];
9922
9922
  if (binArray) {
9923
9923
  const bins = binArray.account.bins;
9924
- if (bins.every(({ liquiditySupply }) => liquiditySupply.isZero())) {
9924
+ if (bins.every(({ amountX }) => amountX.isZero())) {
9925
9925
  count--;
9926
9926
  } else {
9927
- const lastBinWithLiquidityIndex = bins.findIndex(
9928
- ({ liquiditySupply }) => !liquiditySupply.isZero()
9927
+ const lastBinWithLiquidityIndex = bins.findLastIndex(
9928
+ ({ amountX }) => !amountX.isZero()
9929
9929
  );
9930
9930
  console.log(
9931
9931
  bins[lastBinWithLiquidityIndex].amountX.toString(),