diff --git a/src/worker/tasks/retryTx.ts b/src/worker/tasks/retryTx.ts index 586e58590..142b395a1 100644 --- a/src/worker/tasks/retryTx.ts +++ b/src/worker/tasks/retryTx.ts @@ -49,21 +49,21 @@ export const retryTx = async () => { } const gasOverrides = await getGasSettingsForRetry(tx, provider); - // if ( - // gasOverrides.maxFeePerGas?.gt(config.maxFeePerGasForRetries) || - // gasOverrides.maxPriorityFeePerGas?.gt( - // config.maxPriorityFeePerGasForRetries, - // ) - // ) { - // // Return if gas settings exceed configured limits. Try again later. - // logger({ - // service: "worker", - // level: "warn", - // queueId: tx.id, - // message: `${tx.chainId} chain gas price is higher than maximum threshold.`, - // }); - // return; - // } + if ( + gasOverrides.maxFeePerGas?.gt(config.maxFeePerGasForRetries) || + gasOverrides.maxPriorityFeePerGas?.gt( + config.maxPriorityFeePerGasForRetries, + ) + ) { + // Return if gas settings exceed configured limits. Try again later. + logger({ + service: "worker", + level: "warn", + queueId: tx.id, + message: `${tx.chainId} chain gas price is higher than maximum threshold MaxFeePerGas: ${config.maxFeePerGasForRetries}, MaxPriorityFeePerGas: ${config.maxPriorityFeePerGasForRetries}`, + }); + return; + } logger({ service: "worker",