Skip to content

Commit 48a2345

Browse files
authored
Bump gas limit by 20% (#332)
1 parent b951e21 commit 48a2345

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/worker/tasks/processTx.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ export const processTx = async () => {
198198
...gasOverrides,
199199
});
200200

201+
// TODO: We need to target specific cases here
202+
// Bump gas limit to avoid occasional out of gas errors
203+
txRequest.gasLimit = txRequest.gasLimit
204+
? BigNumber.from(txRequest.gasLimit).mul(120).div(100)
205+
: undefined;
206+
201207
logger.worker.info(
202208
`[Transaction] [${tx.queueId}] Using maxFeePerGas ${
203209
txRequest.maxFeePerGas !== undefined

0 commit comments

Comments
 (0)