Skip to content

Commit

Permalink
Update to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
samricotta committed Apr 22, 2024
1 parent e29f917 commit 115ecc4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/architecture/adr-069-gov-improvements.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion x/distribution/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
Expand Down
6 changes: 3 additions & 3 deletions x/mint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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
```
Expand Down

0 comments on commit 115ecc4

Please sign in to comment.