Expand description
Era reward management.
Manages the lifecycle of era reward pot accounts: creation, funding via snapshot from the general DAP pot, and draining of expired eras.
Era pots are backed by a rotating pool of POT_POOL_SIZE accounts
addressed by era % POT_POOL_SIZE. Once created, a slot’s account is kept
alive forever — at the end of each era’s history window, its remaining
balance is drained to crate::Config::UnclaimedRewardHandler but the
provider reference is retained. A future era that reuses the same slot
finds an existing zero-balance account and snapshots into it. This bounds
the storage footprint contributed by era pots to a constant.
Structs§
- Default
Staker Reward Calculator - Default implementation of the staker reward calculator.
- EraReward
Allocation - Allocation breakdown of era-end rewards.
- EraReward
Manager - Manager for era reward pot lifecycle.