This PR attempts to add swap operations that do not require an origin or destination for the funds (and thus will not mutate global state), and only operates within Imbalances, proper for usage within XCM.
[ ] Proper imbalances types for swap_exact and swap_for_exact
[ ] Implement do_swap_credit and probably transfer_credit
[ ] Expand the tests to use the new swap*_credit functions
Part of the effort of Paying XCM Execution Fees with foreign assets
This PR attempts to add swap operations that do not require an origin or destination for the funds (and thus will not mutate global state), and only operates within Imbalances, proper for usage within XCM.
swap_exact
andswap_for_exact
do_swap_credit
and probablytransfer_credit