[][src]Trait pallet_plasm_rewards::traits::ComputeTotalPayout

pub trait ComputeTotalPayout<ValidatorParam, DappsParam> {
    fn compute<N, M>(
        total_tokens: N,
        era_duration: M,
        for_security_parm: ValidatorParam,
        for_dapps_param: DappsParam
    ) -> (N, N)
    where
        N: BaseArithmetic + Unsigned + Clone + From<u32>,
        M: BaseArithmetic + Clone + From<u32>
; }

The reward is allocated from the total supply of tokens, the time for Era, the amount of staking for Security, and the amount of staking for Dapps.

Required methods

fn compute<N, M>(
    total_tokens: N,
    era_duration: M,
    for_security_parm: ValidatorParam,
    for_dapps_param: DappsParam
) -> (N, N) where
    N: BaseArithmetic + Unsigned + Clone + From<u32>,
    M: BaseArithmetic + Clone + From<u32>, 

Loading content...

Implementors

impl<Balance> ComputeTotalPayout<Balance, Balance> for MaintainRatioComputeTotalPayout<Balance> where
    Balance: BaseArithmetic + Unsigned + Clone + From<u32>, 
[src]

The total payout to all operators and validators and their nominators per era.

Testnet(Until migrate NPoS) defined as such: 20% of total issue tokens per a year. Maintainn is Distribute rewards while maintaining a ratio of validator and dapps-compatible staking amounts.

era_duration is expressed in millisecond.

impl<L, D> ComputeTotalPayout<L, D> for CommunityRewards<L> where
    L: BaseArithmetic + Clone + From<u32>, 
[src]

fn compute<N, M>(
    total_tokens: N,
    era_duration: M,
    number_of_validator: L,
    _dapps_staking: D
) -> (N, N) where
    N: BaseArithmetic + Unsigned + Clone + From<u32>,
    M: BaseArithmetic + Clone + From<u32>, 
[src]

budget 2.5% of total tokens to validator staking and also 2.5% of total tokens to dapps staking

impl<L, D> ComputeTotalPayout<L, D> for FirstPlasmIncentive<L> where
    L: BaseArithmetic + Clone + From<u32>, 
[src]

impl<V, D> ComputeTotalPayout<V, D> for SimpleComputeTotalPayout[src]

The total payout to all operators and validators and their nominators per era.

Testnet(Until migrate NPoS) defined as such: 20% of total issue tokens per a year.

era_duration is expressed in millisecond.

Loading content...