@meteora-ag/dlmm 1.0.39-rc.23 → 1.0.39-rc.25

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.mjs CHANGED
@@ -9898,13 +9898,13 @@ var DLMM = class {
9898
9898
  lastValidBlockHeight
9899
9899
  }).add(syncWithMarketPriceTx);
9900
9900
  }
9901
- async getMaxPrice(minPrice, binArrays) {
9901
+ async getMaxPrice(binArrays) {
9902
9902
  const _binArrays = binArrays || await this.getBinArrays();
9903
9903
  const sortedBinArrays = _binArrays.sort(
9904
9904
  ({ account: { index: indexA } }, { account: { index: indexB } }) => indexA.toNumber() - indexB.toNumber()
9905
9905
  );
9906
9906
  let count = sortedBinArrays.length - 1;
9907
- let binPriceWithLastLiquidity = minPrice;
9907
+ let binPriceWithLastLiquidity;
9908
9908
  while (count >= 0) {
9909
9909
  const binArray = sortedBinArrays[count];
9910
9910
  if (binArray) {
@@ -9920,6 +9920,7 @@ var DLMM = class {
9920
9920
  }
9921
9921
  }
9922
9922
  }
9923
+ console.log(binPriceWithLastLiquidity);
9923
9924
  return this.fromPricePerLamport(
9924
9925
  Number(binPriceWithLastLiquidity) / (2 ** 64 - 1)
9925
9926
  );