1

On release 1.3.0 the type AssetKind and Paymaster where added to the treasury pallet which I guess provides the ability to pay treasury proposals in different kinds of assets through the assets pallet. My question is what if I also want to enable the native asset as one of the assets to be used to pay proposals, in addition to other assets? The native asset is not part of the assets pallet, so what would be the best way to go about doing this? Are there any examples I could look at?

Thanks

1 Answer 1

1

If your native currency is comming from pallet-balances and other assets from pallet-assets you could create two instances of pallet-treasury, where:

impl pallet-treasury::Config<Instance1> {
...
AssetKind: Balances (pallet-balances),
}

and

impl pallet-treasury::Config<Instance2> {
...
AssetKind: Assets (pallet-assets),
}

EDIT: To prevent two separate instances you could also use (PR not merged yet) NativeOrWithId that wraps around the two.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.