Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 9223d71

Browse files
author
Andronik
committed
use from_perthousand
1 parent 0d99787 commit 9223d71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/parachains/src/disputes/slashing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const LOG_TARGET: &str = "runtime::parachains::slashing";
7171
// These are constants, but we want to make them configurable
7272
// via `HostConfiguration` in the future.
7373
const SLASH_FOR_INVALID: Perbill = Perbill::from_percent(100);
74-
const SLASH_AGAINST_VALID: Perbill = Perbill::from_rational(1, 1_000);
74+
const SLASH_AGAINST_VALID: Perbill = Perbill::from_perthousand(1);
7575
const DEFENSIVE_PROOF: &'static str = "disputes module should bail on old session";
7676

7777
#[cfg(feature = "runtime-benchmarks")]

0 commit comments

Comments
 (0)