pendulum-chain / pendulum-chain/pendulum
Define `MinXcmFee` to allow paying fee in non-reserve asset
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 45
- Forks
- 13
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
Context
It's currently not possible to transfer tokens with the xtokens pallet while paying the transfer fee with the non-reserve asset on Pendulum. For example, the xtokens::transferMultiCurrencies() call will fail with MinXcmFeeNotDefined when transferring an asset back to Moonbeam and choosing PEN as the fee asset, see this extrinsic.
TODO
Define this type on the xtokens config so that non-reserve assets can be used for paying the XCM fee.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in runtime/pendulum/src/xcm_config.rs at the referenced xtokens configuration and inspect how MinXcmFeeNotDefined is reached in xtokens/src/lib.rs. Define the missing MinXcmFee type so a non-reserve asset such as PEN can pay the XCM fee, then verify that the transferMultiCurrencies scenario no longer fails with MinXcmFeeNotDefined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100