@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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
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(({
|
|
9924
|
+
if (bins.every(({ amountX }) => amountX.isZero())) {
|
|
9925
9925
|
count--;
|
|
9926
9926
|
} else {
|
|
9927
|
-
const lastBinWithLiquidityIndex = bins.
|
|
9928
|
-
({
|
|
9927
|
+
const lastBinWithLiquidityIndex = bins.findLastIndex(
|
|
9928
|
+
({ amountX }) => !amountX.isZero()
|
|
9929
9929
|
);
|
|
9930
9930
|
console.log(
|
|
9931
9931
|
bins[lastBinWithLiquidityIndex].amountX.toString(),
|