Skip to content

Commit 46d2785

Browse files
author
alexisdevilliers
committed
update l2
1 parent 39ff3a2 commit 46d2785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rollup/internal/controller/relayer/l2_relayer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ func (r *Layer2Relayer) ProcessGasPriceOracle() {
346346

347347
// last is undefined or (suggestGasPriceUint64 >= minGasPrice && exceed diff)
348348
if r.lastGasPrice == 0 || (suggestGasPriceUint64 >= r.minGasPrice &&
349-
(math.Abs(float64(suggestGasPriceUint64)-float64(r.lastGasPrice)) >= float64(expectedDelta))) {
349+
(math.Abs(float64(suggestGasPriceUint64-r.lastGasPrice)) >= float64(expectedDelta))) {
350350
data, err := r.l2GasOracleABI.Pack("setL2BaseFee", suggestGasPrice)
351351
if err != nil {
352352
log.Error("Failed to pack setL2BaseFee", "batch.Hash", batch.Hash, "GasPrice", suggestGasPrice.Uint64(), "err", err)

0 commit comments

Comments
 (0)