[][src]Struct solana_sdk::inflation::Inflation

pub struct Inflation {
    pub initial: f64,
    pub terminal: f64,
    pub taper: f64,
    pub foundation: f64,
    pub foundation_term: f64,
    pub storage: f64,
}

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

storage: f64

Percentage of total inflation allocated to storage rewards

Methods

impl Inflation[src]

pub fn new_disabled() -> 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 storage(&self, year: f64) -> f64[src]

portion of total that goes to storage mining

pub fn foundation(&self, year: f64) -> f64[src]

portion of total that goes to foundation

Trait Implementations

impl Clone for Inflation[src]

impl Copy for Inflation[src]

impl Debug for Inflation[src]

impl Default for Inflation[src]

impl<'de> Deserialize<'de> for Inflation[src]

impl PartialEq<Inflation> for Inflation[src]

impl Serialize for Inflation[src]

impl StructuralPartialEq for Inflation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.