Skip to content

Commit

Permalink
Update pallets/parachain-staking/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Éloïs <c@elo.tf>
  • Loading branch information
grw-ms and librelois committed Aug 29, 2023
1 parent 05226ff commit b3133b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/parachain-staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2052,7 +2052,7 @@ pub mod pallet {
);

let mut actual_weight = T::WeightInfo::delegator_bond_more(
<DelegationScheduledRequests<T>>::get(&candidate).len() as u32,
if already_called_for_delegator { 0 } else { <DelegationScheduledRequests<T>>::get(&candidate).len() as u32 }
);

// If we have called delegator_bond_more for this candidate before, the weight
Expand Down

0 comments on commit b3133b5

Please sign in to comment.