@meteora-ag/dlmm 1.0.50-rc.0 → 1.0.50-rc.2

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 CHANGED
@@ -10738,7 +10738,7 @@ var DLMM = class {
10738
10738
  }).add(syncWithMarketPriceTx);
10739
10739
  }
10740
10740
  async getMaxPriceInBinArrays(binArrayAccounts) {
10741
- const sortedBinArrays = binArrayAccounts.sort(
10741
+ const sortedBinArrays = [...binArrayAccounts].sort(
10742
10742
  ({ account: { index: indexA } }, { account: { index: indexB } }) => indexA.toNumber() - indexB.toNumber()
10743
10743
  );
10744
10744
  let count = sortedBinArrays.length - 1;
@@ -10746,7 +10746,7 @@ var DLMM = class {
10746
10746
  while (count >= 0) {
10747
10747
  const binArray = sortedBinArrays[count];
10748
10748
  if (binArray) {
10749
- const bins = binArray.account.bins.reverse();
10749
+ const bins = binArray.account.bins;
10750
10750
  if (bins.every(({ amountX }) => amountX.isZero())) {
10751
10751
  count--;
10752
10752
  } else {