Revert "Add inflation to epoch phases (#6787)" (#6802)

automerge
This commit is contained in:
Sagar Dhawan
2019-11-07 16:43:09 -08:00
committed by Grimes
parent ccac35fc01
commit d89271528e
5 changed files with 25 additions and 127 deletions

View File

@ -42,16 +42,6 @@ impl Default for Inflation {
}
impl Inflation {
pub fn new_disabled() -> Self {
Self {
initial: 0.0,
terminal: 0.0,
taper: 0.0,
foundation: 0.0,
foundation_term: 0.0,
storage: 0.0,
}
}
/// inflation rate at year
pub fn total(&self, year: f64) -> f64 {
let tapered = self.initial * ((1.0 - self.taper).powf(year));