Documentation ¶
Index ¶
- Variables
- func Adjustment(percentageStaked numeric.Dec) (numeric.Dec, numeric.Dec)
- func NewPreStakingEraRewarded(totalAmount *big.Int) reward.Reader
- func NewStakingEraRewardForRound(totalPayout *big.Int, payouts []reward.Payout) reward.Reader
- func WhatPercentStakedNow(beaconchain engine.ChainReader, timestamp int64) (*big.Int, *numeric.Dec, error)
- type UtilityMetric
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPayoutNotEqualBlockReward .. ErrPayoutNotEqualBlockReward = errors.New( "total payout not equal to blockreward", ) // EmptyPayout .. EmptyPayout = noReward{} )
Functions ¶
func Adjustment ¶
Adjustment ..
func NewPreStakingEraRewarded ¶
NewPreStakingEraRewarded ..
func NewStakingEraRewardForRound ¶
NewStakingEraRewardForRound ..
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.