git.delta.rocks / unique-network / refs/commits / 1f943aea2676

difftreelog

fix deprecation warning for from_rational

Yaroslav Bolyukin2021-05-04parent: #41df741.patch.diff
in: master

1 file changed

modifiedruntime/src/lib.rsdiffbeforeafterboth
450 pub const DepositPerContract: Balance = TombstoneDeposit::get();450 pub const DepositPerContract: Balance = TombstoneDeposit::get();
451 pub const DepositPerStorageByte: Balance = deposit(0, 1);451 pub const DepositPerStorageByte: Balance = deposit(0, 1);
452 pub const DepositPerStorageItem: Balance = deposit(1, 0);452 pub const DepositPerStorageItem: Balance = deposit(1, 0);
453 pub RentFraction: Perbill = Perbill::from_rational_approximation(1u32, 30 * DAYS);453 pub RentFraction: Perbill = Perbill::from_rational(1u32, 30 * DAYS);
454 pub const SurchargeReward: Balance = 150 * MILLIUNIQUE;454 pub const SurchargeReward: Balance = 150 * MILLIUNIQUE;
455 pub const SignedClaimHandicap: u32 = 2;455 pub const SignedClaimHandicap: u32 = 2;
456 pub const MaxDepth: u32 = 32;456 pub const MaxDepth: u32 = 32;