Skip to content

Commit

Permalink
remove unused extrinsic (#2348)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec authored Jun 14, 2023
1 parent d8bb06c commit 670eddf
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions pallets/parachain-staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1161,33 +1161,6 @@ pub mod pallet {
amount: BalanceOf<T>,
candidate_delegation_count: u32,
delegation_count: u32,
) -> DispatchResultWithPostInfo {
<Pallet<T>>::delegate2(
origin,
candidate,
amount,
candidate_delegation_count,
delegation_count,
0,
)
}

/// If caller is not a delegator and not a collator, then join the set of delegators
/// If caller is a delegator, then makes delegation to change their delegation state
#[pallet::call_index(117)]
#[pallet::weight(
<T as Config>::WeightInfo::delegate(
*candidate_delegation_count,
*delegation_count
)
)]
pub fn delegate2(
origin: OriginFor<T>,
candidate: T::AccountId,
amount: BalanceOf<T>,
candidate_delegation_count: u32,
delegation_count: u32,
_delegator_scheduled_requests_count: u32,
) -> DispatchResultWithPostInfo {
let delegator = ensure_signed(origin)?;
<AutoCompoundDelegations<T>>::delegate_with_auto_compound(
Expand Down

0 comments on commit 670eddf

Please sign in to comment.