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

UI to transfer KSM to parachain #5737

Open
xlc opened this issue Jul 1, 2021 · 2 comments
Open

UI to transfer KSM to parachain #5737

xlc opened this issue Jul 1, 2021 · 2 comments

Comments

@xlc
Copy link
Contributor

xlc commented Jul 1, 2021

Not every parachain supports receive KSM via XCM but for parachain that supports it (i.e. Karura), it will be useful to have a dialog somewhere to allow people to send their KSM to the parachain.

This is an example of a successful transfer

https://kusama.subscan.io/extrinsic/0x49fef96552d462baf5fee3b89d47d1bf516d9bfe1348f09f87b7d055f4b87fd0
https://karura.subscan.io/block/55562?tab=event

@jacogr
Copy link
Member

jacogr commented Jul 1, 2021

See https://github.com/polkadot-js/apps/blob/master/packages/apps-config/src/endpoints/productionRelayKusama.ts#L28

(The reverse to -1, indicating the relay, can be specified on the para)

This is all assuming it uses the same teleport as eg. Statemint.

For other non-teleport, it is one of those things where testing effort (dev mode) is significantly higher and live chains means access to tokens (and burning quite a bit based on history of doing this stuff), so it will have to wait for a bit.

EDIT: This is also "quite" useful for anything xcm-related - paritytech/polkadot-sdk#969

@xlc
Copy link
Contributor Author

xlc commented Jul 2, 2021

KSM cannot be teleported to community chains. Teleport is only supported between trusted chain only (i.e. parachains that fully controlled by relaychain governance).

So we need something different. I've already tested xcmPallet.reserveTransferAssets and it works well as long as the dest weight is high enough.

For the reverse side (Karura to Kusama), people will need to use xtokens pallet to transfer which is not enabled on Karura yet so I think it is fine to not support it. We will have it enabled in our own dApp when the runtime opens it.

Also it is possible to mint lost KSM in Karura back via governance. So let me know if you need help to get your KSM back during testing while I still have the power.

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

No branches or pull requests

2 participants