From 115ecc4e2768840a36bec6ac155a6f8c97276a01 Mon Sep 17 00:00:00 2001 From: samricotta Date: Mon, 22 Apr 2024 10:12:25 +0200 Subject: [PATCH] Update to docs --- docs/architecture/adr-069-gov-improvements.md | 2 +- x/distribution/README.md | 2 +- x/mint/README.md | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/architecture/adr-069-gov-improvements.md b/docs/architecture/adr-069-gov-improvements.md index af5b12645205..7b156f21c36c 100644 --- a/docs/architecture/adr-069-gov-improvements.md +++ b/docs/architecture/adr-069-gov-improvements.md @@ -172,7 +172,7 @@ type CalculateVoteResultsAndVotingPowerFn func( keeper Keeper, proposalID uint64, validators map[string]v1.ValidatorGovInfo, -) (totalVoterPower math.LegacyDec, results map[v1.VoteOption]math.LegacyDec, err error) +) (totalVoterPower math.Dec, results map[v1.VoteOption]math.Dec, err error) ``` ## Consequences diff --git a/x/distribution/README.md b/x/distribution/README.md index 03e1e5baff21..002e15ed3c78 100644 --- a/x/distribution/README.md +++ b/x/distribution/README.md @@ -139,7 +139,7 @@ Once those rewards are big enough, they are sent as `sdk.Coins` to the community type DecCoins []DecCoin type DecCoin struct { - Amount math.LegacyDec + Amount math.Dec Denom string } ``` diff --git a/x/mint/README.md b/x/mint/README.md index 80198010dcb0..7b524c14089d 100644 --- a/x/mint/README.md +++ b/x/mint/README.md @@ -83,7 +83,7 @@ inflation calculation logic is needed, this can be achieved by defining and passing a function that matches `InflationCalculationFn`'s signature. ```go -type InflationCalculationFn func(ctx sdk.Context, minter Minter, params Params, bondedRatio math.LegacyDec) math.LegacyDec +type InflationCalculationFn func(ctx sdk.Context, minter Minter, params Params, bondedRatio math.Dec) math.Dec ``` #### NextInflationRate @@ -95,7 +95,7 @@ possible is defined to be 13% per year, however, the annual inflation is capped as between 7% and 20%. ```go -NextInflationRate(params Params, bondedRatio math.LegacyDec) (inflation math.LegacyDec) { +NextInflationRate(params Params, bondedRatio math.Dec) (inflation math.Dec) { inflationRateChangePerYear = (1 - bondedRatio/params.GoalBonded) * params.InflationRateChange inflationRateChange = inflationRateChangePerYear/blocksPerYr @@ -118,7 +118,7 @@ Calculate the annual provisions based on current total supply and inflation rate. This parameter is calculated once per block. ```go -NextAnnualProvisions(params Params, totalSupply math.LegacyDec) (provisions math.LegacyDec) { +NextAnnualProvisions(params Params, totalSupply math.Dec) (provisions math.Dec) { return Inflation * totalSupply ```