Skip to content

Commit

Permalink
fix white space and double import
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Aug 6, 2023
1 parent 7aa9f0c commit 0b2c113
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion x/protorev/keeper/hooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func (s *KeeperTestSuite) TestSwapping() {
},
},
executeSwap: func() {

route := []poolmanagertypes.SwapAmountInRoute{{PoolId: 50, TokenOutDenom: "epochTwo"}}

_, err := s.App.PoolManagerKeeper.RouteExactAmountIn(s.Ctx, s.TestAccs[0], route, sdk.NewCoin("uosmo", sdk.NewInt(10)), sdk.NewInt(1))
Expand Down
9 changes: 4 additions & 5 deletions x/protorev/keeper/rebalance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/osmosis-labs/osmosis/v17/x/gamm/pool-models/stableswap"
poolmanagertypes "github.com/osmosis-labs/osmosis/v17/x/poolmanager/types"
"github.com/osmosis-labs/osmosis/v17/x/protorev/keeper"
protorevtypes "github.com/osmosis-labs/osmosis/v17/x/protorev/keeper"
"github.com/osmosis-labs/osmosis/v17/x/protorev/types"
)

Expand Down Expand Up @@ -365,7 +364,7 @@ func (s *KeeperTestSuite) TestFindMaxProfitRoute() {
// init the route
remainingPoolPoints := uint64(1000)
remainingBlockPoolPoints := uint64(1000)
route := protorevtypes.RouteMetaData{
route := keeper.RouteMetaData{
Route: test.param.route,
PoolPoints: test.param.routePoolPoints,
StepSize: sdk.NewInt(1_000_000),
Expand Down Expand Up @@ -467,7 +466,7 @@ func (s *KeeperTestSuite) TestExecuteTrade() {

for _, test := range tests {
// Empty SwapToBackrun var to pass in as param
pool := protorevtypes.SwapToBackrun{}
pool := keeper.SwapToBackrun{}
txPoolPointsRemaining := uint64(100)
blockPoolPointsRemaining := uint64(100)

Expand Down Expand Up @@ -594,9 +593,9 @@ func (s *KeeperTestSuite) TestIterateRoutes() {

for _, test := range tests {
s.Run(test.name, func() {
routes := make([]protorevtypes.RouteMetaData, len(test.params.routes))
routes := make([]keeper.RouteMetaData, len(test.params.routes))
for i, route := range test.params.routes {
routes[i] = protorevtypes.RouteMetaData{
routes[i] = keeper.RouteMetaData{
Route: route,
PoolPoints: 0,
StepSize: sdk.NewInt(1_000_000),
Expand Down

0 comments on commit 0b2c113

Please sign in to comment.