@meteora-ag/dlmm 1.0.39-rc.35 → 1.0.39-rc.37
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 +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5846,7 +5846,9 @@ function findSetBit(startIndex, endIndex, binArrayBitmapExtension) {
|
|
|
5846
5846
|
if (startIndex <= endIndex) {
|
|
5847
5847
|
for (let i = startIndex; i <= endIndex; i++) {
|
|
5848
5848
|
const binArrayOffset = getBinArrayOffset(i);
|
|
5849
|
+
console.log("\u{1F680} ~ binArrayOffset:", binArrayOffset);
|
|
5849
5850
|
const bitmapOffset = getBitmapOffset(i);
|
|
5851
|
+
console.log("\u{1F680} ~ bitmapOffset:", bitmapOffset);
|
|
5850
5852
|
const bitmapChunks = i > 0 ? binArrayBitmapExtension.positiveBinArrayBitmap[bitmapOffset] : binArrayBitmapExtension.negativeBinArrayBitmap[bitmapOffset];
|
|
5851
5853
|
console.log(
|
|
5852
5854
|
"\u{1F680} ~ bitmapChunks:",
|
|
@@ -5954,7 +5956,12 @@ function findNextBinArrayIndexWithLiquidity(swapForY, activeId, lbPairState, bin
|
|
|
5954
5956
|
">>>> finNext",
|
|
5955
5957
|
startBinArrayIndex.toNumber(),
|
|
5956
5958
|
maxBinArrayIndex.toNumber(),
|
|
5957
|
-
binArrayBitmapExtension
|
|
5959
|
+
binArrayBitmapExtension.negativeBinArrayBitmap.map(
|
|
5960
|
+
(t) => t.map((b) => b.toString())
|
|
5961
|
+
),
|
|
5962
|
+
binArrayBitmapExtension.positiveBinArrayBitmap.map(
|
|
5963
|
+
(t) => t.map((b) => b.toString())
|
|
5964
|
+
)
|
|
5958
5965
|
);
|
|
5959
5966
|
const binArrayIndex = findSetBit(
|
|
5960
5967
|
startBinArrayIndex.toNumber(),
|