Skip to content

Commit

Permalink
fix doUpdate condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dshiell committed Nov 10, 2024
1 parent 3f4004f commit 4640587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async function feesTooHigh(transactionArgs: TransactionArgs) {

const now = Math.floor(Date.now() / 1000);
const elapsed_secs = now - lastUpdateTime;
const doUpdate = (elapsed_secs < EMA_UPDATE_DELTA_SECS);
const doUpdate = (elapsed_secs >= EMA_UPDATE_DELTA_SECS);
const gasPrice = (maxFeePerGas + maxPriorityFeePerGas);
let rejectTxn = false;

Expand Down

0 comments on commit 4640587

Please sign in to comment.