Skip to content

Commit

Permalink
Merge branch 'sai/token_emission' into sai/tests_token_emission
Browse files Browse the repository at this point in the history
  • Loading branch information
gsk967 committed Jul 18, 2023
2 parents c3e0d75 + f810e05 commit 6868db3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion x/ugov/liquidation_params.go → x/ugov/inflation_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

0 comments on commit 6868db3

Please sign in to comment.