Crate pallet_block_rewards
source ·Expand description
§BlockRewards Pallet
The BlockRewards pallet provides means of configuring and distributing block rewards to collators as well as the annual treasury inflation. The distribution happens when a session (a constant time interval) finalizes. Users cannot stake manually as their collator membership is synchronized via a provider. Thus, when new collators join, they will automatically be staked and vice-versa when collators leave, they are unstaked.
The BlockRewards pallet provides functions for:
- Claiming the reward given for a staked currency. The reward will be the native network’s token.
- Admin methods to configure the reward amount for collators and the annual treasury inflation.
Re-exports§
pub use weights::WeightInfo;
pub use pallet::*;
Modules§
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet. - Autogenerated weights for pallet_block_rewards
Structs§
- Type that contains the pending update.
- Type that contains the associated data of an session