difftreelog
Add todo comment to inflation
in: master
1 file changed
pallets/inflation/src/lib.rsdiffbeforeafterboth848485 let block_interval: u32 = T::InflationBlockInterval::get().try_into().unwrap_or(0);85 let block_interval: u32 = T::InflationBlockInterval::get().try_into().unwrap_or(0);8687 // TODO: Rewrite inflation to use block timestamp instead of block number88 // let _now = <timestamp::Module<T>>::get();868987 // Recalculate inflation on the first block of the year (or if it is not initialized yet)90 // Recalculate inflation on the first block of the year (or if it is not initialized yet)88 if (now % T::BlockNumber::from(YEAR)).is_zero() || <BlockInflation<T>>::get().is_zero() {91 if (now % T::BlockNumber::from(YEAR)).is_zero() || <BlockInflation<T>>::get().is_zero() {