From 1f943aea2676a0708152e4ab16724fc6300c5805 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Tue, 04 May 2021 09:29:51 +0000 Subject: [PATCH] fix: deprecation warning for from_rational --- --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -450,7 +450,7 @@ pub const DepositPerContract: Balance = TombstoneDeposit::get(); pub const DepositPerStorageByte: Balance = deposit(0, 1); pub const DepositPerStorageItem: Balance = deposit(1, 0); - pub RentFraction: Perbill = Perbill::from_rational_approximation(1u32, 30 * DAYS); + pub RentFraction: Perbill = Perbill::from_rational(1u32, 30 * DAYS); pub const SurchargeReward: Balance = 150 * MILLIUNIQUE; pub const SignedClaimHandicap: u32 = 2; pub const MaxDepth: u32 = 32; -- gitstuff