Skip to content

Commit

Permalink
Merge pull request #153 from toints/Magnet-Stack
Browse files Browse the repository at this point in the history
style: format code with rustc-1.81.0
  • Loading branch information
toints authored Sep 10, 2024
2 parents e99734b + ba0f70c commit 62cc00b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
13 changes: 7 additions & 6 deletions client/coretime/bulk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,13 @@ where
let constant_query =
subxt::dynamic::constant("Broker", "TimeslicePeriod");

let time_slice =
api.constants()
.at(&constant_query)?
.to_value()?
.as_u128()
.expect("coretime parachain time slice none") as u32;
let time_slice = api
.constants()
.at(&constant_query)?
.to_value()?
.as_u128()
.expect("coretime parachain time slice none")
as u32;

item.end_relaychain_height =
ev.when + item.duration * time_slice;
Expand Down
3 changes: 2 additions & 1 deletion pallets/liquidation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,8 @@ pub mod pallet {
let total_existing_operation_ratio: u32 =
OperationRatios::<T>::iter().map(|(_, r)| r).sum();
let total_ratio = system_ratio
+ treasury_ratio + collator_ratio
+ treasury_ratio
+ collator_ratio
+ total_existing_operation_ratio
+ ratio;
log::info!("3 -+-+-+-+-+ set operation ratio, total ratio:{:?}, system_ratio:{:?}, treasury_ratio:{:?}, collator_ratio:{:?}, operation account:{:?}, op_ratio:{:?}",
Expand Down
3 changes: 2 additions & 1 deletion runtime/src/xcms/xcm_weight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ impl<
AccountId,
Currency: CurrencyT<AccountId>,
OnUnbalanced: OnUnbalancedT<Currency::NegativeImbalance>,
> WeightTrader for UsingComponentsEx<WeightToFee, AssetIdValue, AccountId, Currency, OnUnbalanced>
> WeightTrader
for UsingComponentsEx<WeightToFee, AssetIdValue, AccountId, Currency, OnUnbalanced>
{
fn new() -> Self {
Self(Weight::zero(), Zero::zero(), PhantomData)
Expand Down

0 comments on commit 62cc00b

Please sign in to comment.