Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-05-11 20:25:09 +02:00
parent b903073ce6
commit f1791be039
1 changed files with 1 additions and 0 deletions

View File

@ -210,6 +210,7 @@ impl Bank {
} }
} }
// TODO: daffy: use optimal interest from oracle
pub fn update_index(&mut self, now_ts: i64) -> Result<()> { pub fn update_index(&mut self, now_ts: i64) -> Result<()> {
let diff_ts = I80F48::from_num(now_ts - self.last_updated); let diff_ts = I80F48::from_num(now_ts - self.last_updated);
self.last_updated = now_ts; self.last_updated = now_ts;