Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stackman27 committed Jul 31, 2023
1 parent ec34dab commit f10f334
Show file tree
Hide file tree
Showing 18 changed files with 1,032 additions and 466 deletions.
86 changes: 0 additions & 86 deletions app/upgrades/v16/concentrated_pool.go

This file was deleted.

261 changes: 0 additions & 261 deletions app/upgrades/v16/concentrated_pool_test.go

This file was deleted.

13 changes: 0 additions & 13 deletions app/upgrades/v16/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ package v16

import (
sdk "github.com/cosmos/cosmos-sdk/types"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"

"github.com/osmosis-labs/osmosis/v17/app/keepers"
gammkeeper "github.com/osmosis-labs/osmosis/v17/x/gamm/keeper"
"github.com/osmosis-labs/osmosis/v17/x/poolmanager"
poolmanagertypes "github.com/osmosis-labs/osmosis/v17/x/poolmanager/types"
tokenfactorykeeper "github.com/osmosis-labs/osmosis/v17/x/tokenfactory/keeper"
)

Expand All @@ -16,14 +11,6 @@ var (
AuthorizedUptimes = authorizedUptimes
)

func CreateConcentratedPoolFromCFMM(ctx sdk.Context, cfmmPoolIdToLinkWith uint64, desiredDenom0 string, accountKeeper authkeeper.AccountKeeper, gammKeeper gammkeeper.Keeper, poolmanagerKeeper poolmanager.Keeper) (poolmanagertypes.PoolI, error) {
return createConcentratedPoolFromCFMM(ctx, cfmmPoolIdToLinkWith, desiredDenom0, accountKeeper, gammKeeper, poolmanagerKeeper)
}

func CreateCanonicalConcentratedLiquidityPoolAndMigrationLink(ctx sdk.Context, cfmmPoolId uint64, desiredDenom0 string, keepers *keepers.AppKeepers) (poolmanagertypes.PoolI, error) {
return createCanonicalConcentratedLiquidityPoolAndMigrationLink(ctx, cfmmPoolId, desiredDenom0, keepers)
}

func UpdateTokenFactoryParams(ctx sdk.Context, tokenFactoryKeeper *tokenfactorykeeper.Keeper) {
updateTokenFactoryParams(ctx, tokenFactoryKeeper)
}
2 changes: 1 addition & 1 deletion app/upgrades/v16/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func CreateUpgradeHandler(

// Create a concentrated liquidity pool for DAI/OSMO.
// Link the DAI/OSMO balancer pool to the cl pool.
clPool, err := createCanonicalConcentratedLiquidityPoolAndMigrationLink(ctx, DaiOsmoPoolId, DesiredDenom0, keepers)
clPool, err := keepers.GAMMKeeper.CreateCanonicalConcentratedLiquidityPoolAndMigrationLink(ctx, DaiOsmoPoolId, DesiredDenom0, TickSpacing)
if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit f10f334

Please sign in to comment.