Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

karura native asset test #1768

Closed
zqhxuyuan opened this issue Jan 11, 2022 · 0 comments
Closed

karura native asset test #1768

zqhxuyuan opened this issue Jan 11, 2022 · 0 comments

Comments

@zqhxuyuan
Copy link
Contributor

zqhxuyuan commented Jan 11, 2022

current we have karura transfer BNC to bifrost test and vice versa, but missing karura transfer KAR to bifrost test and vice versa. we need this test because in new reanchor, if bifrost transfer KAR to karura, the reanchored location will be (0, GeneralIndex(KAR)).

Karura::execute_with(|| {
assert_ok!(XTokens::transfer(
Origin::signed(ALICE.into()),
BNC,

if just change token and network, there'll be TooExpensive because in the Bifrost, the KAR is setting to (1, X2(2001, KAR)) however the asset of KarPerSecond is (1, X2(2000, KAR)). the reason is we're using same Runtime for Karura and Sibling network but also with same CurrencyIdConvert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants