git.delta.rocks / unique-network / refs/commits / f08f3dafb17d

difftreelog

fix weight in payout_stakers

Daniel Shiposha2022-12-16parent: #7f13ad9.patch.diff
in: master

1 file changed

modifiedpallets/app-promotion/src/lib.rsdiffbeforeafterboth
564 /// # Arguments564 /// # Arguments
565 ///565 ///
566 /// * `stakers_number`: the number of stakers for which recalculation will be performed566 /// * `stakers_number`: the number of stakers for which recalculation will be performed
567 #[pallet::weight(<T as Config>::WeightInfo::payout_stakers(stakers_number.unwrap_or(20) as u32))]567 #[pallet::weight(<T as Config>::WeightInfo::payout_stakers(stakers_number.unwrap_or(DEFAULT_NUMBER_PAYOUTS) as u32))]
568 pub fn payout_stakers(admin: OriginFor<T>, stakers_number: Option<u8>) -> DispatchResult {568 pub fn payout_stakers(admin: OriginFor<T>, stakers_number: Option<u8>) -> DispatchResult {
569 let admin_id = ensure_signed(admin)?;569 let admin_id = ensure_signed(admin)?;
570570