@haven-fi/solauto-sdk 1.0.291 → 1.0.292
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.
|
@@ -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