Type Alias AuthorPenalties

Source
pub type AuthorPenalties<T: Config> = StorageNMap<_GeneratedPrefixForStorageAuthorPenalties<T>, (NMapKey<Blake2_128Concat, BlockNumberFor<T>>, NMapKey<Blake2_128Concat, Author<T>>), Ratio<T>, OptionQuery>;
Expand description

Stores pending penalties for authors by ([BlockNumberFor], Author) key.

  • Allows deferred penalty enforcement at the correct block.
  • Supports retrieval of total penalty-percentage applied on an author’s risk-profile for a specific timestamp.
  • Value type is Ratio, representing the penalty factor applied on the author’s total hold.

Storage type is [StorageNMap] with keys type (BlockNumberFor < T >, Author < T >) and value type Ratio < T >.

Aliased Type§

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