We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2423216 commit 990eaa6Copy full SHA for 990eaa6
1 file changed
pkg/modules/gasprice/filter.go
@@ -3,6 +3,7 @@ package gasprice
3
import (
4
"math/big"
5
6
+ "github.com/ethereum/go-ethereum/common"
7
"github.com/stackup-wallet/stackup-bundler/pkg/modules"
8
"github.com/stackup-wallet/stackup-bundler/pkg/userop"
9
)
@@ -13,7 +14,7 @@ func FilterUnderpriced() modules.BatchHandlerFunc {
13
14
return func(ctx *modules.BatchHandlerCtx) error {
15
b := []*userop.UserOperation{}
16
for _, op := range ctx.Batch {
- if ctx.BaseFee != nil && ctx.Tip != nil {
17
+ if ctx.BaseFee != nil && ctx.BaseFee.Cmp(common.Big0) != 0 && ctx.Tip != nil {
18
gp := big.NewInt(0).Add(ctx.BaseFee, ctx.Tip)
19
if op.GetDynamicGasPrice(ctx.BaseFee).Cmp(gp) >= 0 {
20
b = append(b, op)
0 commit comments