@haven-fi/solauto-sdk 1.0.291 → 1.0.292

Sign up to get free protection for your applications and to get access to all the features.
@@ -234,7 +234,7 @@ class TransactionsManager {
234
234
  getUpdatedPriorityFeeSetting(prevError, attemptNum) {
235
235
  if (prevError instanceof web3_js_1.TransactionExpiredBlockheightExceededError) {
236
236
  const currIdx = types_1.priorityFeeSettingValues.indexOf(this.priorityFeeSetting);
237
- return types_1.priorityFeeSettingValues[Math.min(types_1.priorityFeeSettingValues.length - 1, currIdx + 1 + Math.floor(attemptNum / 3))];
237
+ return types_1.priorityFeeSettingValues[Math.min(types_1.priorityFeeSettingValues.length - 1, currIdx + Math.floor(attemptNum / 2))];
238
238
  }
239
239
  return this.priorityFeeSetting;
240
240
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.291",
3
+ "version": "1.0.292",
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",
@@ -340,7 +340,7 @@ export class TransactionsManager {
340
340
  return priorityFeeSettingValues[
341
341
  Math.min(
342
342
  priorityFeeSettingValues.length - 1,
343
- currIdx + 1 + Math.floor(attemptNum / 3)
343
+ currIdx + Math.floor(attemptNum / 2)
344
344
  )
345
345
  ];
346
346
  }