Skip to content

Commit

Permalink
linting update after posthandler addition
Browse files Browse the repository at this point in the history
  • Loading branch information
davidterpay committed Dec 21, 2022
1 parent 1dced39 commit e330d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/protorev/keeper/posthandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (protoRevDec ProtoRevDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simu
// Get the max number of pools to iterate through
maxPoolsToIterate, err := protoRevDec.ProtoRevKeeper.GetMaxPools(cacheCtx)
if err != nil {
next(ctx, tx, simulate)
return next(ctx, tx, simulate)
}

// Find routes for every single pool that was swapped on (up to maxPoolsToIterate pools per tx)
Expand Down Expand Up @@ -82,7 +82,7 @@ func (k Keeper) ProtoRevTrade(ctx sdk.Context, swap SwapToBackrun) error {
// Find optimal input amounts for routes
maxProfitInputCoin, maxProfitAmount, optimalRoute := k.IterateRoutes(ctx, routes)

// The error that returns here is particulary focused on the minting/burning of coins, and the execution of the MultiHopSwapExactAmountIn.
// The error that returns here is particularly focused on the minting/burning of coins, and the execution of the MultiHopSwapExactAmountIn.
if maxProfitAmount.GT(sdk.ZeroInt()) {
if err := k.ExecuteTrade(ctx, optimalRoute, maxProfitInputCoin, swap.PoolId); err != nil {
return err
Expand Down

0 comments on commit e330d0f

Please sign in to comment.