Expand description
Types for the Capacity Pallet
Structs§
- Capacity
Details - The type for storing Registered Provider Capacity balance:
- Epoch
Info - The type for storing details about an epoch. May evolve to store other needed data such as epoch_end.
- Provider
Boost History - A record of staked amounts for a complete RewardEra
- Retarget
Info - Struct with utilities for storing and updating unlock chunks
- Reward
EraInfo - The information needed to track a Reward Era
- Reward
Pool History Chunk - A chunk of Reward Pool history items consists of a BoundedBTreeMap, RewardEra is the key and the total stake for the RewardPool is the value. the map has up to T::RewardPoolChunkLength items, however, the chunk storing the current era has only that one.
- Staking
Details - The type used for storing information about staking details.
- Staking
Target Details - Details about the total token amount targeted to an MSA. The Capacity that the target will receive.
- Unlock
Chunk - The type that is used to record a single request for a number of tokens to be unlocked.
Enums§
- Staking
Type - The type of staking a given Staking Account is doing.
Constants§
- STAKED_
PERCENTAGE_ TO_ BOOST - How much, as a percentage of staked token, to boost a targeted Provider when staking. this value should be between 0 and 100
Traits§
- Provider
Boost Rewards Provider - A trait that provides the Economic Model for Provider Boosting.
Functions§
- unlock_
chunks_ reap_ thawed - Deletes thawed chunks
Caller is responsible for updating free/locked balance on the token account.
Returns: the total amount reaped from
unlocking
- unlock_
chunks_ total - Computes and returns the total token held in an UnlockChunkList.
Type Aliases§
- Unlock
Chunk List - A BoundedVec containing UnlockChunks