@meteora-ag/dlmm 1.0.39-rc.3 → 1.0.39-rc.4
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.d.ts +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9904,11 +9904,10 @@ var DLMM = class {
|
|
|
9904
9904
|
lastValidBlockHeight
|
|
9905
9905
|
}).add(syncWithMarketPriceTx);
|
|
9906
9906
|
}
|
|
9907
|
-
async getLastPrice() {
|
|
9908
|
-
const { price } = await this.getActiveBin();
|
|
9907
|
+
async getLastPrice(minPrice) {
|
|
9909
9908
|
const binArrays = await this.getBinArrays();
|
|
9910
9909
|
let count = 0;
|
|
9911
|
-
let binPriceWithLastLiquidity =
|
|
9910
|
+
let binPriceWithLastLiquidity = minPrice;
|
|
9912
9911
|
while (count <= binArrays.length - 1) {
|
|
9913
9912
|
const binArray = binArrays[count];
|
|
9914
9913
|
if (binArray) {
|