RewardsCalculation
Rewards calculation for an epoch
Implements rewards computation according to the Cardano ledger specification. Based on the POOLREAP and REWARD rules.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RewardsCalculation.type
Members list
Type members
Classlikes
Complete rewards summary for an epoch
Complete rewards summary for an epoch
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Pool parameters needed for rewards calculation
Pool parameters needed for rewards calculation
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Per-pool rewards breakdown
Per-pool rewards breakdown
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Configuration parameters for rewards calculation
Configuration parameters for rewards calculation
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Aggregate all member rewards into account rewards
Aggregate all member rewards into account rewards
Attributes
Compute total rewards for an epoch
Compute total rewards for an epoch
Value parameters
- config
-
Rewards configuration parameters
- fees
-
Transaction fees collected
- reserves
-
Current reserve pot
Attributes
- Returns
-
(total rewards, treasury portion)
Compute rewards distribution among pools
Compute rewards distribution among pools
Simplified rewards calculation that distributes available rewards proportionally to pool stakes.
Value parameters
- availableRewards
-
Rewards available after treasury tax
- config
-
Rewards configuration
- poolParams
-
Pool parameters (cost, margin, pledge, etc.)
- poolStakes
-
Stake delegated to each pool
- totalActiveStake
-
Total active stake in the system
Attributes
- Returns
-
Rewards for each pool
Split pool rewards between leader and members
Split pool rewards between leader and members
Value parameters
- memberStakes
-
Individual delegator stakes
- poolParams
-
Pool parameters (margin, cost)
- poolReward
-
Total reward for the pool
- poolStake
-
Total stake delegated to pool
Attributes
- Returns
-
Breakdown of rewards