Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
  • Loading branch information
ggwpez committed Oct 8, 2024
1 parent 364030d commit a010bdc
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions relay/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3432,8 +3432,16 @@ mod multiplier_tests {
2 * MILLISECONDS_PER_DAY,
);

assert_relative_eq!(to_stakers as f64, (279_477 * UNITS) as f64 * 2.0, max_relative = 0.001);
assert_relative_eq!(to_treasury as f64, (49_320 * UNITS) as f64 * 2.0, max_relative = 0.001);
assert_relative_eq!(
to_stakers as f64,
(279_477 * UNITS) as f64 * 2.0,
max_relative = 0.001
);
assert_relative_eq!(
to_treasury as f64,
(49_320 * UNITS) as f64 * 2.0,
max_relative = 0.001
);
}

#[test]
Expand All @@ -3453,7 +3461,11 @@ mod multiplier_tests {
);

assert_relative_eq!(to_stakers as f64, yearly_emission as f64 * 0.85, max_relative = 0.001);
assert_relative_eq!(to_treasury as f64, yearly_emission as f64 * 0.15, max_relative = 0.001);
assert_relative_eq!(
to_treasury as f64,
yearly_emission as f64 * 0.15,
max_relative = 0.001
);
}

// 10 years into the future, our values do not overflow.
Expand Down

0 comments on commit a010bdc

Please sign in to comment.