Skip to content

Commit

Permalink
feat: set bigger max supply limit for te2 network on coinomics state …
Browse files Browse the repository at this point in the history
…migration (#269)
  • Loading branch information
kioqq authored Dec 19, 2023
1 parent 329f00d commit 174a99b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/upgrades/v1.6.4/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/haqq-network/haqq/utils"

distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
Expand Down Expand Up @@ -57,7 +58,13 @@ func MigrateStore(ctx sdk.Context,

// reset coinomics params
defaultParams := coinomicstypes.DefaultParams()
maxSupply := sdk.Coin{Denom: "aISLM", Amount: math.NewIntWithDecimal(100_000_000_000, 18)} // 100bn ISLM

var maxSupply sdk.Coin
if utils.IsTestEdge2Network(ctx.ChainID()) {
maxSupply = sdk.Coin{Denom: "aISLM", Amount: math.NewIntWithDecimal(200_000_000_000, 18)} // 200bn ISLM
} else {
maxSupply = sdk.Coin{Denom: "aISLM", Amount: math.NewIntWithDecimal(100_000_000_000, 18)} // 100bn ISLM
}

ck.SetMaxSupply(ctx, maxSupply)
ck.SetParams(ctx, defaultParams)
Expand Down

0 comments on commit 174a99b

Please sign in to comment.