Photon and Atoms inflation distribution to Validators
How will the inflationary tokens (Photons and Atoms to start) be distributed to Validators?
Round number Assumptions:
100 Validators
500 new Photons minted per hour
12% annual Atom inflation (1% per month)
If 100 Validators, does each Validator get 1/100 (1%) of the new Photons created per hour? So each Validator get 5 Photons per hour, in addition to whatever fee tokens they collect?
Or is the Photon inflation received based on amount staked?
Same question for Atoms.
I read the latest blog, and it seems Photon may not be available until we pass a governance proposal to activate it.
about the inflation of ATOM, in the code, the provision is calculated every hour and then added to the staking pool, as:
provision = total supply * 12% / (hours in a year)
Link to code @suyu ?
preliminary mechanism here:
cosmos/cosmos-sdk/blob/develop/x/stake/keeper/inflation.go
package keeper
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/stake/types"
)
const (
hrsPerYr = 8766 // as defined by a julian year of 365.25 days
precision = 100000000000 // increased to this precision for accuracy
)
var hrsPerYrRat = sdk.NewRat(hrsPerYr)
// process provisions for an hour period
func (k Keeper) ProcessProvisions(ctx sdk.Context) types.Pool {
pool := k.GetPool(ctx)
pool.Inflation = k.NextInflation(ctx)
This file has been truncated. show original