Skip to content

Commit

Permalink
re-added the gas check as checkout needs this check (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhanW3 authored Mar 1, 2024
1 parent e544785 commit 7017471
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/worker/tasks/retryTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7017471

Please sign in to comment.