rustfmt ghost networks pallet
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
parent
e3c8e51749
commit
ad3de30be3
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ghost-networks"
|
name = "ghost-networks"
|
||||||
version = "0.1.18"
|
version = "0.1.19"
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
|
|||||||
@ -715,7 +715,6 @@ impl<T: Config> Pallet<T> {
|
|||||||
});
|
});
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Config> NetworkDataBasicHandler for Pallet<T> {
|
impl<T: Config> NetworkDataBasicHandler for Pallet<T> {
|
||||||
|
|||||||
@ -13,7 +13,6 @@ where
|
|||||||
+ sp_std::ops::Shr<Output = Balance>
|
+ sp_std::ops::Shr<Output = Balance>
|
||||||
+ sp_std::ops::BitAnd<Balance, Output = Balance>,
|
+ sp_std::ops::BitAnd<Balance, Output = Balance>,
|
||||||
{
|
{
|
||||||
|
|
||||||
fn zero(&self) -> Balance {
|
fn zero(&self) -> Balance {
|
||||||
0u32.into()
|
0u32.into()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1883,7 +1883,7 @@ fn check_bridged_inflation_curve_for_big_commissions() {
|
|||||||
let (payout, rest) = BridgedInflationCurve::<RewardCurve, Test>::era_payout(
|
let (payout, rest) = BridgedInflationCurve::<RewardCurve, Test>::era_payout(
|
||||||
total_staked_gt_ideal,
|
total_staked_gt_ideal,
|
||||||
total_issuance + amount,
|
total_issuance + amount,
|
||||||
0
|
0,
|
||||||
);
|
);
|
||||||
assert!(payout < commission);
|
assert!(payout < commission);
|
||||||
assert!(rest < commission);
|
assert!(rest < commission);
|
||||||
@ -1891,7 +1891,7 @@ fn check_bridged_inflation_curve_for_big_commissions() {
|
|||||||
let (payout, rest) = BridgedInflationCurve::<RewardCurve, Test>::era_payout(
|
let (payout, rest) = BridgedInflationCurve::<RewardCurve, Test>::era_payout(
|
||||||
total_staked_lt_ideal,
|
total_staked_lt_ideal,
|
||||||
total_issuance + amount,
|
total_issuance + amount,
|
||||||
0
|
0,
|
||||||
);
|
);
|
||||||
assert!(payout < commission);
|
assert!(payout < commission);
|
||||||
assert!(rest < commission);
|
assert!(rest < commission);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user