Use pico inflation for ledger-tool capitalization --enable-inflation (#13215)
* Use pico inflation for ledger-tool capitalization --enable-inflation * rust fmt
This commit is contained in:
@ -65,6 +65,10 @@ impl Inflation {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn pico() -> Self {
|
||||
Self::new_fixed(0.0001) // 0.01% inflation
|
||||
}
|
||||
|
||||
/// inflation rate at year
|
||||
pub fn total(&self, year: f64) -> f64 {
|
||||
assert!(year >= 0.0);
|
||||
|
Reference in New Issue
Block a user