pendulum-chain / pendulum-chain/pendulum

Define `MinXcmFee` to allow paying fee in non-reserve asset

Open
#520 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.