Skip to content

Commit

Permalink
don't save baseFee if set to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless-eth committed Oct 1, 2024
1 parent 18ef09b commit 7d58634
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/handlers/gasPriceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class ArbitrumManager {
}

public saveL1BaseFee(baseFee: bigint) {
if (baseFee === 0n) {
return
}

const queue = this.queueL1BaseFee
const last = queue.length > 0 ? queue[queue.length - 1] : null
const timestamp = Date.now()
Expand All @@ -66,6 +70,10 @@ class ArbitrumManager {
}

public saveL2BaseFee(baseFee: bigint) {
if (baseFee === 0n) {
return
}

const queue = this.queueL2BaseFee
const last = queue.length > 0 ? queue[queue.length - 1] : null
const timestamp = Date.now()
Expand Down

0 comments on commit 7d58634

Please sign in to comment.