@meteora-ag/dlmm 1.0.40 → 1.0.41-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/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9898,8 +9898,9 @@ var DLMM = class {
|
|
|
9898
9898
|
lastValidBlockHeight
|
|
9899
9899
|
}).add(syncWithMarketPriceTx);
|
|
9900
9900
|
}
|
|
9901
|
-
async
|
|
9902
|
-
const
|
|
9901
|
+
async getMaxPrice(binArrayAccounts) {
|
|
9902
|
+
const binArrays = binArrayAccounts || await this.getBinArrayForSwap(false);
|
|
9903
|
+
const sortedBinArrays = binArrays.sort(
|
|
9903
9904
|
({ account: { index: indexA } }, { account: { index: indexB } }) => indexA.toNumber() - indexB.toNumber()
|
|
9904
9905
|
);
|
|
9905
9906
|
let count = sortedBinArrays.length - 1;
|