Skip to content

Commit 3d26690

Browse files
committed
style(mint): little coup de polish
1 parent 5655ea8 commit 3d26690

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

x/mint/abci.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ func BeginBlocker(ctx context.Context, k keeper.Keeper) error {
2828
return err
2929
}
3030

31-
minter, err := types.NewMinterWithInflationCoef(params.InflationCoef, bondedRatio, params.InflationMin, params.InflationMax, totalSupply)
31+
minter, err := types.NewMinterWithInflationCoef(
32+
params.InflationCoef,
33+
bondedRatio,
34+
params.InflationMin,
35+
params.InflationMax,
36+
totalSupply,
37+
)
3238
if err != nil {
3339
panic(err)
3440
}
@@ -66,6 +72,5 @@ func BeginBlocker(ctx context.Context, k keeper.Keeper) error {
6672
sdk.NewAttribute(sdk.AttributeKeyAmount, mintedCoin.Amount.String()),
6773
),
6874
)
69-
7075
return nil
7176
}

x/mint/types/minter.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ func NewMinterWithInitialInflation(inflation math.LegacyDec) Minter {
2626
}
2727

2828
// NewMinterWithInflationCoef returns a new Minter with updated inflation and annual provisions values.
29-
func NewMinterWithInflationCoef(inflationCoef, bondedRatio math.LegacyDec, minBound, maxBound *math.LegacyDec, totalSupply math.Int) (Minter, error) {
29+
func NewMinterWithInflationCoef(
30+
inflationCoef, bondedRatio math.LegacyDec,
31+
minBound, maxBound *math.LegacyDec,
32+
totalSupply math.Int,
33+
) (Minter, error) {
3034
inflationRate, err := inflationRate(inflationCoef, bondedRatio, minBound, maxBound)
3135
if err != nil {
3236
return Minter{}, err

0 commit comments

Comments
 (0)