Skip to content

Commit

Permalink
Bump gas limit by 20% (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-maj authored Dec 5, 2023
1 parent b951e21 commit 48a2345
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/worker/tasks/processTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48a2345

Please sign in to comment.