Struct abstract_os::subscription::state::ContributionConfig
source · pub struct ContributionConfig {
pub protocol_income_share: Decimal,
pub emission_user_share: Decimal,
pub max_emissions_multiple: Decimal,
pub emissions_amp_factor: Uint128,
pub emissions_offset: Uint128,
pub token_info: AssetInfo,
}Fields§
Percentage of income that is redirected to the protocol
Percentage of emissions allocated to users
max_emissions_multiple: DecimalMax emissions (when income = 0) = max_emissions_multiple * floor_emissions
emissions_amp_factor: Uint128Emissions amplification factor in inverse emissions <-> target equation
emissions_offset: Uint128Emissions offset factor in inverse emissions <-> target equation
token_info: AssetInfotoken
Implementations§
Trait Implementations§
source§impl Clone for ContributionConfig
impl Clone for ContributionConfig
source§fn clone(&self) -> ContributionConfig
fn clone(&self) -> ContributionConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ContributionConfig
impl Debug for ContributionConfig
source§impl<'de> Deserialize<'de> for ContributionConfig
impl<'de> Deserialize<'de> for ContributionConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for ContributionConfig
impl JsonSchema for ContributionConfig
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl PartialEq<ContributionConfig> for ContributionConfig
impl PartialEq<ContributionConfig> for ContributionConfig
source§fn eq(&self, other: &ContributionConfig) -> bool
fn eq(&self, other: &ContributionConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.