Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BlockReward is the block reward, to be split evenly among block signers. BlockReward = new(big.Int).Mul(big.NewInt(24), big.NewInt(denominations.One)) // BaseStakedReward is the base block reward for epos. BaseStakedReward = numeric.NewDecFromBigInt(new(big.Int).Mul( big.NewInt(18), big.NewInt(denominations.One), )) // ErrPayoutNotEqualBlockReward .. ErrPayoutNotEqualBlockReward = errors.New("total payout not equal to blockreward") // NoReward .. NoReward = common.Big0 )
Functions ¶
func Adjustment ¶
Adjustment ..
func WhatPercentStakedNow ¶
func WhatPercentStakedNow( beaconchain engine.ChainReader, timestamp int64, ) (*big.Int, *numeric.Dec, error)
WhatPercentStakedNow ..
Types ¶
type UtilityMetric ¶
type UtilityMetric struct { AccumulatorSnapshot *big.Int CurrentStakedPercentage numeric.Dec Deviation numeric.Dec Adjustment numeric.Dec }
UtilityMetric ..
func NewUtilityMetricSnapshot ¶
func NewUtilityMetricSnapshot(beaconchain engine.ChainReader) (*UtilityMetric, error)
NewUtilityMetricSnapshot ..
Click to show internal directories.
Click to hide internal directories.