Skip to content

#xcm Trying to encode native token as Here fails with AssetHasNoReserve in XToken transfer #820

Answered by shaunxw
dzmitry-lahoda asked this question in Q&A
Discussion options

You must be logged in to vote

It looks to me that you misconfigured xtokens. It might be the SelfLocation and ReserveProvider in your config is not consistent. If either of them is configured with interpreting locations as relative view(with Here junction), the other one should be relative as well. You may refer to this config in unit tests mock as an example:

impl orml_xtokens::Config for Runtime {
type Event = Event;
type Balance = Balance;
type CurrencyId = CurrencyId;
type CurrencyIdConvert = RelativeCurrencyIdConvert;
type AccountIdToMultiLocation = AccountIdToMultiLocation;
type

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@dzmitry-lahoda
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by dzmitry-lahoda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants