chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -198,10 +198,11 @@ impl<T: Config> ListScenario<T> {
|
||||
)?;
|
||||
|
||||
// Find a destination weight that will trigger the worst case scenario
|
||||
let dest_weight_as_vote = <T as pezpallet_staking::Config>::VoterList::score_update_worst_case(
|
||||
&pool_origin1,
|
||||
is_increase,
|
||||
);
|
||||
let dest_weight_as_vote =
|
||||
<T as pezpallet_staking::Config>::VoterList::score_update_worst_case(
|
||||
&pool_origin1,
|
||||
is_increase,
|
||||
);
|
||||
|
||||
let dest_weight: BalanceOf<T> =
|
||||
dest_weight_as_vote.try_into().map_err(|_| "could not convert u64 to Balance")?;
|
||||
@@ -992,8 +993,8 @@ mod benchmarks {
|
||||
Some(deposit_amount),
|
||||
);
|
||||
|
||||
// ugly type conversion between balances of pezpallet staking and pools (which really are same
|
||||
// type). Maybe there is a better way?
|
||||
// ugly type conversion between balances of pezpallet staking and pools (which really are
|
||||
// same type). Maybe there is a better way?
|
||||
let slash_amount: u128 = deposit_amount.into() / 2;
|
||||
|
||||
// slash pool by half
|
||||
|
||||
@@ -18,9 +18,8 @@
|
||||
use crate::VoterBagsListInstance;
|
||||
use pezframe_election_provider_support::VoteWeight;
|
||||
use pezframe_support::{
|
||||
derive_impl,
|
||||
derive_impl, parameter_types,
|
||||
pezpallet_prelude::*,
|
||||
parameter_types,
|
||||
traits::{ConstU64, Nothing, VariantCountOf},
|
||||
PalletId,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user