@haven-fi/solauto-sdk 1.0.775 → 1.0.776

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.
@@ -64,7 +64,7 @@ class TransactionsManager {
64
64
  ]);
65
65
  for (let j = i; j >= 0; j--) {
66
66
  const tx = txItems[j];
67
- if ((await newSet.fitsWith(tx))) {
67
+ if (await newSet.fitsWith(tx)) {
68
68
  newSet.prepend(tx);
69
69
  i--;
70
70
  }
@@ -346,7 +346,7 @@ class TransactionsManager {
346
346
  });
347
347
  (0, utils_1.consoleLog)(errorString);
348
348
  if (!errorDetails.canBeIgnored) {
349
- throw error;
349
+ throw errorDetails.errorName ? new Error(errorString) : error;
350
350
  }
351
351
  }
352
352
  }
@@ -97,7 +97,7 @@ async function getPythPrices(mints) {
97
97
  };
98
98
  });
99
99
  return prices;
100
- }, 5, 200);
100
+ }, 5, 250);
101
101
  return (0, generalUtils_1.createRecord)(mints.map((x) => x.toString()), prices);
102
102
  }
103
103
  function getSortedPriceData(prices, mints) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.775",
3
+ "version": "1.0.776",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -126,7 +126,7 @@ export class TransactionsManager<T extends TxHandler> {
126
126
  ]);
127
127
  for (let j = i; j >= 0; j--) {
128
128
  const tx = txItems[j];
129
- if ((await newSet.fitsWith(tx))) {
129
+ if (await newSet.fitsWith(tx)) {
130
130
  newSet.prepend(tx);
131
131
  i--;
132
132
  } else {
@@ -585,7 +585,7 @@ export class TransactionsManager<T extends TxHandler> {
585
585
  consoleLog(errorString);
586
586
 
587
587
  if (!errorDetails.canBeIgnored) {
588
- throw error;
588
+ throw errorDetails.errorName ? new Error(errorString) : error;
589
589
  }
590
590
  }
591
591
  }
@@ -123,7 +123,7 @@ export async function getPythPrices(
123
123
  return prices;
124
124
  },
125
125
  5,
126
- 200
126
+ 250
127
127
  );
128
128
 
129
129
  return createRecord(