Skip to content

Commit

Permalink
remove obsolete method; payout_cdn_owners can be called directly from…
Browse files Browse the repository at this point in the history
… ddc-staking
  • Loading branch information
Raid5594 committed Aug 23, 2023
1 parent af8508f commit 7c4f5bd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pallets/ddc-validator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,14 +511,7 @@ pub mod pallet {
<ddc_staking::pallet::Pallet<T>>::pricing().ok_or(Error::<T>::PricingNotSet)?;
EraContentOwnersCharged::<T>::insert(current_era, controller, true);

<ddc_accounts::pallet::Pallet<T>>::charge_content_owners(paying_accounts, pricing)
}

#[pallet::weight(100_000)]
pub fn payout_cdn_owners(origin: OriginFor<T>, era: EraIndex) -> DispatchResult {
ensure_signed(origin)?;

<ddc_staking::pallet::Pallet<T>>::do_payout_stakers(era)
<ddc_accounts::pallet::Pallet<T>>::charge_content_owners(paying_accounts, pricing)
}

#[pallet::weight(100_000)]
Expand Down

0 comments on commit 7c4f5bd

Please sign in to comment.