[−][src]Trait pallet_plasm_rewards::traits::ComputeTotalPayout
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>,
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>,
Implementors
impl<Balance> ComputeTotalPayout<Balance, Balance> for MaintainRatioComputeTotalPayout<Balance> where
Balance: BaseArithmetic + Unsigned + Clone + From<u32>,
[src]
Balance: BaseArithmetic + Unsigned + Clone + From<u32>,
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.
fn compute<N, M>(
total_tokens: N,
era_duration: M,
validator_staking: Balance,
dapps_staking: Balance
) -> (N, N) where
N: BaseArithmetic + Unsigned + Clone + From<u32>,
M: BaseArithmetic + Clone + From<u32>,
[src]
total_tokens: N,
era_duration: M,
validator_staking: Balance,
dapps_staking: Balance
) -> (N, N) where
N: BaseArithmetic + Unsigned + Clone + From<u32>,
M: BaseArithmetic + Clone + From<u32>,
impl<L, D> ComputeTotalPayout<L, D> for CommunityRewards<L> where
L: BaseArithmetic + Clone + From<u32>,
[src]
L: BaseArithmetic + Clone + From<u32>,
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]
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>,
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]
L: BaseArithmetic + Clone + From<u32>,
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]
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>,
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.