@meteora-ag/dlmm 1.0.39-rc.25 → 1.0.39-rc.27
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 +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9908,7 +9908,7 @@ var DLMM = class {
|
|
|
9908
9908
|
while (count >= 0) {
|
|
9909
9909
|
const binArray = sortedBinArrays[count];
|
|
9910
9910
|
if (binArray) {
|
|
9911
|
-
const bins = binArray.account
|
|
9911
|
+
const { bins } = binArray.account;
|
|
9912
9912
|
if (bins.every(({ amountX }) => amountX.isZero())) {
|
|
9913
9913
|
count--;
|
|
9914
9914
|
} else {
|
|
@@ -9920,7 +9920,6 @@ var DLMM = class {
|
|
|
9920
9920
|
}
|
|
9921
9921
|
}
|
|
9922
9922
|
}
|
|
9923
|
-
console.log(binPriceWithLastLiquidity);
|
|
9924
9923
|
return this.fromPricePerLamport(
|
|
9925
9924
|
Number(binPriceWithLastLiquidity) / (2 ** 64 - 1)
|
|
9926
9925
|
);
|