Open
Description
Idea from @bkchr paritytech/substrate#8860 (comment)
Allow Unbalance to give a concrete type holding the unbalanced amounts:
Something like:
trait OnUnbalanced<V, R> where R: IntoIterator<Item=V> {
fn on_unbalanceds<B>(whatever: R) {}
}
For example in transaction-payment we could introduce the struct:
struct TransactionPayment {
pub fees,
pub tips,
}
and require an implementation of OnUnbalanced<V, TransactionPayment>
Metadata
Metadata
Assignees
Type
Projects
Status
Backlog