git.delta.rocks / unique-network / refs/commits / 4eb90d8b0eec

difftreelog

Add todo comment to inflation

Greg Zaitsev2021-11-12parent: #acc78b7.patch.diff
in: master

1 file changed

modifiedpallets/inflation/src/lib.rsdiffbeforeafterboth
8484
85 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);
86
87 // TODO: Rewrite inflation to use block timestamp instead of block number
88 // let _now = <timestamp::Module<T>>::get();
8689
87 // 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() {