Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis committed Dec 27, 2024
1 parent fa3692f commit 4d72c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup/internal/controller/relayer/l2_relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func (r *Layer2Relayer) ProcessGasPriceOracle() {
expectedDelta = 1
}

// last is undefine or (suggestGasPriceUint64 >= minGasPrice && exceed diff)
// last is undefined or (suggestGasPriceUint64 >= minGasPrice && exceed diff)
if r.lastGasPrice == 0 || (suggestGasPriceUint64 >= r.minGasPrice &&
(math.Abs(float64(suggestGasPriceUint64)-float64(r.lastGasPrice)) >= float64(expectedDelta))) {
data, err := r.l2GasOracleABI.Pack("setL2BaseFee", suggestGasPrice)
Expand Down

0 comments on commit 4d72c98

Please sign in to comment.