From f810e058bdd25d682088df5f590edfabc4beeb7d Mon Sep 17 00:00:00 2001 From: Sai Kumar Date: Tue, 18 Jul 2023 19:01:17 +0530 Subject: [PATCH] update the MaxSupply --- x/ugov/{liquidation_params.go => inflation_params.go} | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename x/ugov/{liquidation_params.go => inflation_params.go} (82%) diff --git a/x/ugov/liquidation_params.go b/x/ugov/inflation_params.go similarity index 82% rename from x/ugov/liquidation_params.go rename to x/ugov/inflation_params.go index 8ec54d0758..4136e349d5 100644 --- a/x/ugov/liquidation_params.go +++ b/x/ugov/inflation_params.go @@ -11,7 +11,8 @@ import ( ) var ( - DefaultMaxSupply = sdk.NewCoin(appparams.BondDenom, sdk.NewInt(12_000000000_0000000)) + // 21 Billition Maximum for Staking Bonding Denom + DefaultMaxSupply = sdk.NewCoin(appparams.BondDenom, sdk.NewInt(21_000000000)) // One year for default inflation cycle DefaultInflationCycleDuration = time.Second * time.Duration(60*60*24*365) // 25% reduction rate for every inflation cyle @@ -35,5 +36,9 @@ func (lp InflationParams) Validate() error { return fmt.Errorf("%s must be not negative: %s", "inflation reduction rate ", lp.InflationReductionRate.String()) } + if lp.InflationCycleDuration.Seconds() < 0 { + return fmt.Errorf("%s must be not negative: %s", "inflation cycle duration", lp.InflationCycleDuration.String()) + } + return nil }