Struct solana_sdk::inflation::Inflation [−][src]
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
[+]
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,