Skip to content

Commit

Permalink
Add back delete swaps to backrun after each tx
Browse files Browse the repository at this point in the history
  • Loading branch information
mattverse committed Mar 7, 2024
1 parent 1e4e42b commit 4690908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/protorev/keeper/posthandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (protoRevDec ProtoRevDecorator) PostHandle(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))))
protoRevDec.ProtoRevKeeper.DeleteSwapsToBackrun(ctx.WithGasMeter(sdk.NewGasMeter(sdk.Gas(50_000_000))))

return next(ctx, tx, success, simulate)
}
Expand Down

0 comments on commit 4690908

Please sign in to comment.