@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 +
|
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