Struct solana_sdk::inflation::Inflation [−][src]
pub struct Inflation { pub initial: f64, pub terminal: f64, pub taper: f64, pub foundation: f64, pub foundation_term: f64, // some fields omitted }
Fields
initial: f64
Initial inflation percentage, from time=0
terminal: f64
Terminal inflation percentage, to time=INF
taper: f64
Rate per year, at which inflation is lowered until reaching terminal i.e. inflation(year) == MAX(terminal, initial*((1-taper)^year))
foundation: f64
Percentage of total inflation allocated to the foundation
foundation_term: f64
Duration of foundation pool inflation, in years
Implementations
impl Inflation
[src]
impl Inflation
[src]pub fn new_disabled() -> Self
[src]
pub fn new_fixed(validator: f64) -> Self
[src]
pub fn pico() -> Self
[src]
pub fn full() -> Self
[src]
pub fn total(&self, year: f64) -> f64
[src]
inflation rate at year
pub fn validator(&self, year: f64) -> f64
[src]
portion of total that goes to validators
pub fn foundation(&self, year: f64) -> f64
[src]
portion of total that goes to foundation
Trait Implementations
impl AbiExample for Inflation
[src]
impl AbiExample for Inflation
[src]impl<'de> Deserialize<'de> for Inflation
[src]
impl<'de> Deserialize<'de> for Inflation
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl StructuralPartialEq for Inflation
[src]
impl StructuralPartialEq for Inflation
[src]Auto Trait Implementations
impl RefUnwindSafe for Inflation
impl RefUnwindSafe for Inflation
impl UnwindSafe for Inflation
impl UnwindSafe for Inflation
Blanket Implementations
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
[src]
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
[src]pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
[src]
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
[src]
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
[src]pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
[src]
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
[src]
impl<T> AbiExample for T
[src]impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,