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]

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 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

impl RefUnwindSafe for Inflation

impl Send for Inflation

impl Sync for Inflation

impl Unpin for Inflation

impl UnwindSafe for Inflation

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> MaybeDebug for T where
    T: Debug
[src]

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

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.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]