Skip to content

Commit

Permalink
Fix benchmark delegate_with_auto_compound weights
Browse files Browse the repository at this point in the history
Fix benchmark delegate_with_auto_compound weights
  • Loading branch information
sea212 authored Sep 19, 2023
2 parents 286d439 + aa1bb5e commit 095ddae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pallets/parachain-staking/src/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1171,8 +1171,8 @@ benchmarks! {
let x in 0..(<<T as Config>::MaxTopDelegationsPerCandidate as Get<u32>>::get()
+ <<T as Config>::MaxBottomDelegationsPerCandidate as Get<u32>>::get());
let y in 0..<<T as Config>::MaxTopDelegationsPerCandidate as Get<u32>>::get()
+ <<T as Config>::MaxBottomDelegationsPerCandidate as Get<u32>>::get();
let z in 0..<<T as Config>::MaxDelegationsPerDelegator as Get<u32>>::get();
+ <<T as Config>::MaxBottomDelegationsPerCandidate as Get<u32>>::get() - 1;
let z in 0..<<T as Config>::MaxDelegationsPerDelegator as Get<u32>>::get() - 1;

use crate::auto_compound::AutoCompoundDelegations;

Expand Down Expand Up @@ -1240,7 +1240,7 @@ benchmarks! {
Pallet::<T>::delegate_with_auto_compound(
RawOrigin::Signed(prime_delegator.clone()).into(),
prime_candidate.clone(),
min_delegator_stake,
min_delegator_stake * 2u32.into(),
Percent::from_percent(50),
x,
y,
Expand Down

0 comments on commit 095ddae

Please sign in to comment.