xcm-tools
xcm-tools copied to clipboard
Perform automatic swap when user doesn't have ED in DOT/KSM or USDT/USDC on AHP/K
Inspiration credit belongs to: https://hackmd.io/@n9QBuDYOQXG-nWCBrwx8YQ/SJ-rbyFkee
This should happen under the hood. Firstly, check whether the message works out by dry running, and if not, then try to dry run the exchange message. If it works, then send the exchange message.
The feature should be out in v1.5.1 runtime, so we can pre-prepare and enable it once released.
If it works, then send the exchange message.
Then do the cross-chain transfer with the exchange.