Contents
State
Params
- Params:
mint/params -> legacy_amino(params)
protobuf
Begin Block
Minting parameters are calculated and inflation paid at the beginning of each block.Inflation amount calculation
Inflation amount is calculated using an โinflation calculation functionโ thatโspassed to the
NewAppModule
function. If no function is passed, then the SDKโs
default inflation function will be used (DefaultInflationCalculationFn
). In case a custom
inflation calculation logic is needed, this can be achieved by defining and
passing a function that matches InflationCalculationFn
โs signature.
Parameters
The minting module contains the following parameters:Key | Type | Example |
---|---|---|
MintDenom | string | โstakeโ |
InflationsPerYear | string (dec) | โ20000000000000000โ |
BlocksPerYear | string (uint64) | โ10368000โ |
MintDenom
is the coin denominator used.InflationsPerYear
is the target inflation per year, in 1e18 decimals.BlocksPerYear
is the target number of blocks per year.
Events
The minting module emits the following events:BeginBlocker
Type | Attribute Key | Attribute Value |
---|---|---|
mint | amount | โ1000โ |