diff --git a/x/protorev/keeper/posthandler.go b/x/protorev/keeper/posthandler.go index d8f69929694..70b4f07e7f9 100644 --- a/x/protorev/keeper/posthandler.go +++ b/x/protorev/keeper/posthandler.go @@ -63,6 +63,7 @@ func (protoRevDec ProtoRevDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simu // Delete swaps to backrun for next transaction without consuming gas // from the current transaction's gas meter, but instead from a new gas meter with 50mil gas. + // 50 mil gas was chosen as an arbitrary large number to ensure deletion does not run out of gas. protoRevDec.ProtoRevKeeper.DeleteSwapsToBackrun(ctx.WithGasMeter(sdk.NewGasMeter(sdk.Gas(50_000_000)))) return next(ctx, tx, simulate)