RewardUpdate

scalus.cardano.ledger.epoch.RewardUpdate
case class RewardUpdate(deltaT: Coin, deltaR: Coin, rewards: Map[Credential, Coin], deltaF: Coin)

The reward update one epoch boundary computes and the next applies, the ledger's RewardUpdate without nonMyopic (shelley RewardUpdate.hs:111-131), ledger-rules spec [DM-11a].

The four parts sum to 0, spec [RW-9]: deltaT + deltaR + Σ rewards + deltaF = 0.

Value parameters

deltaF

the change to the fees, minus the fee snapshot

deltaR

the change to the reserves, with its sign: what was not paid out minus what was taken

deltaT

the change to the treasury, floor(tau · rPot)

rewards

the reward of each credential, the leader and member rewards of one credential summed, spec [RW-7]. A member reward of 0 is not an entry; the leader reward of every pool that earns is, also when it is 0, spec [RW-8a]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product