From e05b739f580d4077b868ede5ac5cc09fda5d7e56 Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Mon, 2 May 2022 00:23:46 +0200 Subject: [PATCH] gdev: use real money growth rate --- runtime/gdev/src/parameters.rs | 3 ++- runtime/gtest/src/parameters.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/gdev/src/parameters.rs b/runtime/gdev/src/parameters.rs index 332acc64f..df48d06d0 100644 --- a/runtime/gdev/src/parameters.rs +++ b/runtime/gdev/src/parameters.rs @@ -81,7 +81,8 @@ frame_support::parameter_types! { // Universal dividend parameter_types! { - pub const SquareMoneyGrowthRate: Permill = Permill::one(); + // 0.002_381_440 = 0.0488^2 + pub const SquareMoneyGrowthRate: Permill = Permill::from_parts(2_381_440); } // Multisig diff --git a/runtime/gtest/src/parameters.rs b/runtime/gtest/src/parameters.rs index 4f75ac1ff..86442e54f 100644 --- a/runtime/gtest/src/parameters.rs +++ b/runtime/gtest/src/parameters.rs @@ -88,7 +88,7 @@ parameter_types! { pub const UdCreationPeriod: BlockNumber = DAYS; pub const UdFirstReeval: BlockNumber = 2 * DAYS; pub const UdReevalPeriod: Balance = 7; - pub const UdReevalPeriodInBlocks: BlockNumber = 100800; // 86400 *7 / 6 + pub const UdReevalPeriodInBlocks: BlockNumber = 100800; // 86400 * 7 / 6 } /*******/ -- GitLab