From 48a23454856255632afbdf18910cac8581e932f4 Mon Sep 17 00:00:00 2001 From: Adam Majmudar <64697628+adam-maj@users.noreply.github.com> Date: Tue, 5 Dec 2023 11:58:36 -0800 Subject: [PATCH] Bump gas limit by 20% (#332) --- src/worker/tasks/processTx.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/worker/tasks/processTx.ts b/src/worker/tasks/processTx.ts index affa64130..ffd09e3ef 100644 --- a/src/worker/tasks/processTx.ts +++ b/src/worker/tasks/processTx.ts @@ -198,6 +198,12 @@ export const processTx = async () => { ...gasOverrides, }); + // TODO: We need to target specific cases here + // Bump gas limit to avoid occasional out of gas errors + txRequest.gasLimit = txRequest.gasLimit + ? BigNumber.from(txRequest.gasLimit).mul(120).div(100) + : undefined; + logger.worker.info( `[Transaction] [${tx.queueId}] Using maxFeePerGas ${ txRequest.maxFeePerGas !== undefined