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

difftreelog

chore(app-promo) added comment to `payout_stakers`

PraetorP2023-06-05parent: #5626c4e.patch.diff
in: master

1 file changed

modifiedpallets/app-promotion/src/lib.rsdiffbeforeafterboth
623 let flush_stake = || -> DispatchResult {623 let flush_stake = || -> DispatchResult {
624 if let Some(last_id) = &*last_id.borrow() {624 if let Some(last_id) = &*last_id.borrow() {
625 if !income_acc.borrow().is_zero() {625 if !income_acc.borrow().is_zero() {
626 // TO-DO: When moving to ED>0, reconsider the value of preservation
626 <<T as Config>::Currency as Mutate<T::AccountId>>::transfer(627 <<T as Config>::Currency as Mutate<T::AccountId>>::transfer(
627 &T::TreasuryAccountId::get(),628 &T::TreasuryAccountId::get(),
628 last_id,629 last_id,