Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
abi87 committed Feb 14, 2024
1 parent 657d722 commit 96f26e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fees/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,6 @@ func computeNextPriceWindow(
nextUnitFee = previousUnitFee
)
switch {
case totalUnitsConsumed == target:
return nextUnitFee, newRollupWindow, nil
case totalUnitsConsumed > target:
// If the parent block used more units than its target, the baseFee should increase.
rawDelta := previousUnitFee * (totalUnitsConsumed - target) / target
Expand Down Expand Up @@ -266,6 +264,8 @@ func computeNextPriceWindow(
if under != nil {
nextUnitFee = 0
}
case totalUnitsConsumed == target:
return nextUnitFee, newRollupWindow, nil
}

nextUnitFee = max(nextUnitFee, minUnitFee)
Expand Down

0 comments on commit 96f26e1

Please sign in to comment.