Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data RewardProvenance c = RewardProvenance {
- spe ∷ !Word64
- blocks ∷ !(BlocksMade c)
- 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 c) (RewardProvenancePool c))
- desirabilities ∷ !(Map (KeyHash 'StakePool c) Desirability)
- data RewardProvenancePool c = RewardProvenancePool {
- poolBlocksP ∷ !Natural
- sigmaP ∷ !Rational
- sigmaAP ∷ !Rational
- ownerStakeP ∷ !Coin
- poolParamsP ∷ !(PoolParams c)
- pledgeRatioP ∷ !Rational
- maxPP ∷ !Coin
- appPerfP ∷ !Rational
- poolRP ∷ !Coin
- lRewardP ∷ !Coin
- data Desirability = Desirability {}
Documentation
data RewardProvenance c 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 https://github.com/intersectmbo/cardano-ledger/releases/latest/download/shelley-delegation.pdf
RewardProvenance | |
|
Instances
data RewardProvenancePool c Source #
Provenance for an individual stake pool's reward calculation.
RewardProvenancePool | |
|
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.