Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Feb 22, 2023
1 parent 414a3d8 commit 6bdecc7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion tests/e2e/initialization/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ func updateGammGenesis(gammGenState *gammtypes.GenesisState) {

gammGenState.Pools = []*types1.Any{uosmoFeeTokenPool}

// create dummy pools
for poolId := uint64(2); poolId <= StOSMO_OSMOPoolId; poolId++ {
var pool *types1.Any
switch poolId {
Expand Down
6 changes: 0 additions & 6 deletions x/poolmanager/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,11 @@ func (k Keeper) RouteExactAmountIn(
_outMinAmount = tokenOutMinAmount
}

ctx.Logger().Error("BEFORE GET MODULE")

swapModule, err := k.GetPoolModule(ctx, route.PoolId)
if err != nil {
return sdk.Int{}, err
}

ctx.Logger().Error("BEFORE GET POOL")

// Execute the expected swap on the current routed pool
pool, poolErr := swapModule.GetPool(ctx, route.PoolId)
if poolErr != nil {
Expand All @@ -87,8 +83,6 @@ func (k Keeper) RouteExactAmountIn(
swapFee = routeSwapFee.Mul((swapFee.Quo(sumOfSwapFees)))
}

ctx.Logger().Error("BEFORE SWAP")

tokenOutAmount, err = swapModule.SwapExactAmountIn(ctx, sender, pool, tokenIn, route.TokenOutDenom, _outMinAmount, swapFee)
if err != nil {
ctx.Logger().Error(err.Error())
Expand Down

0 comments on commit 6bdecc7

Please sign in to comment.