pub type EraRewards<T: Config> = StorageMap<_GeneratedPrefixForStorageEraRewards<T>, Twox64Concat, EraNumber, EraRewardSpan<T::EraRewardSpanLength>, OptionQuery>;
Expand description

Information about rewards for each era.

Since each entry is a ‘span’, covering up to T::EraRewardSpanLength entries, only certain era value keys can exist in storage. For the sake of simplicity, valid era keys are calculated as:

era_key = era - (era % T::EraRewardSpanLength)

This means that e.g. in case EraRewardSpanLength = 8, only era values 0, 8, 16, 24, etc. can exist in storage. Eras 1-7 will be stored in the same entry as era 0, eras 9-15 will be stored in the same entry as era 8, etc.

Storage type is [StorageMap] with key type EraNumber and value type EraRewardSpan < T :: EraRewardSpanLength >.

Aliased Type§

struct EraRewards<T: Config>(/* private fields */);