This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Implement default types for Balanced trait #14506
Labels
J0-enhancement
An additional feature request.
J2-unconfirmed
Issue might be valid, but it’s not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
In polkadot-v0.9.36 you find a full default implementation (with types) for Balanced.
substrate/frame/support/src/traits/tokens/fungible/balanced.rs
Lines 313 to 354 in cb4f249
For polkadot-v0.9.42 there are default trait implementations for the methods, but not for the two types "OnDropDebt" and "OnDropCredit".
substrate/frame/support/src/traits/tokens/fungible/regular.rs
Lines 366 to 506 in ff24c60
This means that if I put in
orml_tokens
into Fungibles of "pallet-asset-tx-payment", it throws me a compiler error, because Balanced is not fully implemented fororml_tokens
(the default implementation is not present for the mentioned types).substrate/frame/transaction-payment/asset-tx-payment/src/lib.rs
Line 118 in 5ea6d95
Request
Can you provide a full default implementation, so that orml_tokens, which just implements "fungibles::Inspect", can work as "Balanced"?
Solution
Are you willing to help with this request?
Maybe (please elaborate above)
The text was updated successfully, but these errors were encountered: