From 4eb90d8b0eec12251fc6f18e90a91c5ea38f51b2 Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Fri, 12 Nov 2021 13:08:45 +0000 Subject: [PATCH] Add todo comment to inflation --- --- a/pallets/inflation/src/lib.rs +++ b/pallets/inflation/src/lib.rs @@ -84,6 +84,9 @@ let block_interval: u32 = T::InflationBlockInterval::get().try_into().unwrap_or(0); + // TODO: Rewrite inflation to use block timestamp instead of block number + // let _now = >::get(); + // Recalculate inflation on the first block of the year (or if it is not initialized yet) if (now % T::BlockNumber::from(YEAR)).is_zero() || >::get().is_zero() { let current_year: u32 = (now / T::BlockNumber::from(YEAR)).try_into().unwrap_or(0); -- gitstuff