@meteora-ag/dlmm 1.0.41-rc.1 → 1.0.42-rc.0

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
@@ -5843,7 +5843,6 @@ function findSetBit(startIndex, endIndex, binArrayBitmapExtension) {
5843
5843
  const getBitmapOffset = (binArrayIndex) => {
5844
5844
  return binArrayIndex.gt(new (0, _anchor.BN)(0)) ? binArrayIndex.div(BIN_ARRAY_BITMAP_SIZE).sub(new (0, _anchor.BN)(1)) : binArrayIndex.add(new (0, _anchor.BN)(1)).neg().div(BIN_ARRAY_BITMAP_SIZE).sub(new (0, _anchor.BN)(1));
5845
5845
  };
5846
- console.log("here", binArrayBitmapExtension.positiveBinArrayBitmap);
5847
5846
  if (startIndex <= endIndex) {
5848
5847
  for (let i = startIndex; i <= endIndex; i++) {
5849
5848
  const binArrayOffset = getBinArrayOffset(new (0, _anchor.BN)(i)).toNumber();
@@ -5944,7 +5943,7 @@ function findNextBinArrayIndexWithLiquidity(swapForY, activeId, lbPairState, bin
5944
5943
  if (binArrayIndex !== null) {
5945
5944
  return new (0, _anchor.BN)(binArrayIndex);
5946
5945
  } else {
5947
- startBinArrayIndex = BIN_ARRAY_BITMAP_SIZE;
5946
+ startBinArrayIndex = BIN_ARRAY_BITMAP_SIZE.sub(new (0, _anchor.BN)(1));
5948
5947
  }
5949
5948
  } else {
5950
5949
  const binArrayIndex = findSetBit(