Open 4meta5 opened 4 years ago
pub trait DrainableCurrency<AccountId, Weight> { fn drain_to_accounts( from: &AccountId, to_accounts: OrderedSet<AccountId>, ) -> DispatchResult; fn drain_to_accounts_weighted( from: &AccountId, to_weighted_accounts: OrderedSet<(AccountId, Weight)>, ) -> DispatchResult; }
We use this logic in
donate
bank
kickback
bounty2
donate requires a remainder_recipient input for collecting the remainder. We could add
remainder_recipient
The remainder will exist in most cases so the question is what to do with it...
We use this logic in
donate
(which is used inbank
)kickback
and it is planned to be used inbounty2
donate
requires aremainder_recipient
input for collecting the remainder. We could addThe remainder will exist in most cases so the question is what to do with it...