@haven-fi/solauto-sdk 1.0.288 → 1.0.289
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 +
|
237
|
+
return types_1.priorityFeeSettingValues[Math.min(types_1.priorityFeeSettingValues.length - 1, currIdx + 1 + Math.floor(attemptNum / 3))];
|
238
238
|
}
|
239
239
|
return this.priorityFeeSetting;
|
240
240
|
}
|
package/package.json
CHANGED
@@ -340,7 +340,7 @@ export class TransactionsManager {
|
|
340
340
|
return priorityFeeSettingValues[
|
341
341
|
Math.min(
|
342
342
|
priorityFeeSettingValues.length - 1,
|
343
|
-
currIdx +
|
343
|
+
currIdx + 1 + Math.floor(attemptNum / 3)
|
344
344
|
)
|
345
345
|
];
|
346
346
|
}
|