@meteora-ag/dlmm 1.0.39-rc.32 → 1.0.39-rc.34

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
@@ -5962,6 +5962,7 @@ function findNextBinArrayIndexWithLiquidity(swapForY, activeId, lbPairState, bin
5962
5962
  const bitmapType = 0 /* U1024 */;
5963
5963
  const bitmapDetail = bitmapTypeDetail(bitmapType);
5964
5964
  const offset = startBinArrayIndex.add(BIN_ARRAY_BITMAP_SIZE);
5965
+ console.log(lbPairState.binArrayBitmap?.map((b) => b.toString()));
5965
5966
  const bitmap = buildBitmapFromU64Arrays(
5966
5967
  lbPairState.binArrayBitmap,
5967
5968
  bitmapType
@@ -9898,9 +9899,8 @@ var DLMM = class {
9898
9899
  lastValidBlockHeight
9899
9900
  }).add(syncWithMarketPriceTx);
9900
9901
  }
9901
- async getMaxPrice(binArrayAccounts) {
9902
- const binArrays = binArrayAccounts || await this.getBinArrayForSwap(false);
9903
- const sortedBinArrays = binArrays.sort(
9902
+ async getMaxPriceInBinArrays(binArrayAccounts) {
9903
+ const sortedBinArrays = binArrayAccounts.sort(
9904
9904
  ({ account: { index: indexA } }, { account: { index: indexB } }) => indexA.toNumber() - indexB.toNumber()
9905
9905
  );
9906
9906
  let count = sortedBinArrays.length - 1;