Skip to content

Commit

Permalink
Merge pull request #189 from crescent-network/fix/upgrade-params
Browse files Browse the repository at this point in the history
fix: update default params for mainnet upgrade
  • Loading branch information
crypin authored Aug 29, 2023
2 parents be663b4 + 6f10254 commit 3c45650
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/upgrades/mainnet/v5/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,15 @@ func UpgradeHandler(
// Set new module parameters.
markerKeeper.SetParams(ctx, markertypes.DefaultParams())
exchangeParams := exchangetypes.DefaultParams()
exchangeParams.MarketCreationFee = sdk.NewCoins(sdk.NewInt64Coin("ucre", 2000_000000))
exchangeParams.Fees = exchangetypes.NewFees(
sdk.NewDecWithPrec(1, 3), // Maker: 0.1%
sdk.NewDecWithPrec(2, 3), // Taker: 0.2%
sdk.NewDecWithPrec(8, 1)) // Order source: Taker * 80%
exchangeKeeper.SetParams(ctx, exchangeParams)
ammParams := ammtypes.DefaultParams()
ammParams.PoolCreationFee = sdk.NewCoins(sdk.NewInt64Coin("ucre", 1000_000000))
ammParams.PrivateFarmingPlanCreationFee = sdk.NewCoins(sdk.NewInt64Coin("ucre", 1000_000000))
ammKeeper.SetParams(ctx, ammParams)

// Migrate farming plans and staked coins to the new amm module.
Expand Down

0 comments on commit 3c45650

Please sign in to comment.