pub struct IntervalRewardParams {
pub reward_pool: Decimal,
pub staking_supply: Decimal,
pub staking_supply_scale_factor: Percent,
pub epoch_reward_budget: Decimal,
pub stake_saturation_point: Decimal,
pub sybil_resistance: Percent,
pub active_set_work_factor: Decimal,
pub interval_pool_emission: Percent,
}
Expand description
Parameters required by the mix-mining reward distribution that do not change during an interval.
Fields§
§reward_pool: Decimal
Current value of the rewarding pool. It is expected to be constant throughout the interval.
staking_supply: Decimal
Current value of the staking supply. It is expected to be constant throughout the interval.
staking_supply_scale_factor: Percent
Defines the percentage of stake needed to reach saturation for all of the nodes in the rewarded set.
Also known as beta
.
epoch_reward_budget: Decimal
Current value of the computed reward budget per epoch, per node. It is expected to be constant throughout the interval.
stake_saturation_point: Decimal
Current value of the stake saturation point. It is expected to be constant throughout the interval.
sybil_resistance: Percent
Current value of the sybil resistance percent (alpha
).
It is not really expected to be changing very often.
As a matter of fact, unless there’s a very specific reason, it should remain constant.
active_set_work_factor: Decimal
Current active set work factor. It is not really expected to be changing very often. As a matter of fact, unless there’s a very specific reason, it should remain constant.
interval_pool_emission: Percent
Current maximum interval pool emission. Assuming all nodes in the rewarded set are fully saturated and have 100% performance, this % of the reward pool would get distributed in rewards to all operators and its delegators. It is not really expected to be changing very often. As a matter of fact, unless there’s a very specific reason, it should remain constant.
Implementations§
source§impl IntervalRewardParams
impl IntervalRewardParams
pub fn to_inline_json(&self) -> String
Trait Implementations§
source§impl Clone for IntervalRewardParams
impl Clone for IntervalRewardParams
source§fn clone(&self) -> IntervalRewardParams
fn clone(&self) -> IntervalRewardParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IntervalRewardParams
impl Debug for IntervalRewardParams
source§impl<'de> Deserialize<'de> for IntervalRewardParams
impl<'de> Deserialize<'de> for IntervalRewardParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl JsonSchema for IntervalRewardParams
impl JsonSchema for IntervalRewardParams
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq<IntervalRewardParams> for IntervalRewardParams
impl PartialEq<IntervalRewardParams> for IntervalRewardParams
source§fn eq(&self, other: &IntervalRewardParams) -> bool
fn eq(&self, other: &IntervalRewardParams) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<IntervalRewardParams> for IntervalRewardParams
impl PartialOrd<IntervalRewardParams> for IntervalRewardParams
source§fn partial_cmp(&self, other: &IntervalRewardParams) -> Option<Ordering>
fn partial_cmp(&self, other: &IntervalRewardParams) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more