Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Ledger.Shelley.RewardProvenance
Contents
Synopsis
-
data
RewardProvenance
crypto =
RewardProvenance
{
- spe :: ! Word64
- blocks :: !( BlocksMade crypto)
- maxLL :: ! Coin
- deltaR1 :: ! Coin
- deltaR2 :: ! Coin
- r :: ! Coin
- totalStake :: ! Coin
- blocksCount :: ! Integer
- d :: ! Rational
- expBlocks :: ! Integer
- eta :: ! Rational
- rPot :: ! Coin
- deltaT1 :: ! Coin
- activeStake :: ! Coin
- pools :: !( Map ( KeyHash ' StakePool crypto) ( RewardProvenancePool crypto))
- desirabilities :: !( Map ( KeyHash ' StakePool crypto) Desirability )
-
data
RewardProvenancePool
crypto =
RewardProvenancePool
{
- poolBlocksP :: ! Natural
- sigmaP :: ! Rational
- sigmaAP :: ! Rational
- ownerStakeP :: ! Coin
- poolParamsP :: !( PoolParams crypto)
- pledgeRatioP :: ! Rational
- maxPP :: ! Coin
- appPerfP :: ! Rational
- poolRP :: ! Coin
- lRewardP :: ! Coin
-
data
Desirability
=
Desirability
{
- desirabilityScore :: ! Double
- hitRateEstimate :: ! Double
Documentation
data RewardProvenance crypto Source #
RewardProvenenace
captures some of the intermediate calculations when computing
the staking reward distribution. Most of these fields are simple scalar
values, computed from the current State, and are fixed before we start to compute
the distribution. Two of them are aggregates computed when we compute the distribution
(
pools
and
desirabilities
).
For more background, see "Figure 48: The Reward Calculation" and "Figure 51: Reward Update Creation" of the the formal specification . The variable names here align with those in the specification. See also Section 5 of the Design Specification .
Constructors
RewardProvenance | |
Fields
|
Instances
data RewardProvenancePool crypto Source #
Provenance for an individual stake pool's reward calculation.
Constructors
RewardProvenancePool | |
Fields
|
Instances
data Desirability Source #
The desirability score of a stake pool, as described in "Reward Sharing Schemes for Stake Pools" . Additionally, the hit rate estimation described in the stake pool ranking document is included.
Constructors
Desirability | |
Fields
|
Instances
Orphan instances
Crypto crypto => Default ( RewardAcnt crypto) Source # | |
Methods def :: RewardAcnt crypto Source # |
|
Crypto crypto => Default ( PoolParams crypto) Source # | |
Methods def :: PoolParams crypto Source # |
|
Crypto e => Default ( Credential r e) Source # | |
Methods def :: Credential r e Source # |
|
Crypto c => Default ( SafeHash c i) Source # | |