feat(LR): execute_routed_trade RPC implementation#2546
Open
Conversation
added 8 commits
July 22, 2025 09:40
* dev: chore(rust 1.89): make CI clippy/fmt pass (wasm32, all-targets) (#2581) fix(utxo): deserialize sapling root for PIVX block headers (#2572) improvement(dep-stack): security bumps (#2562) fix(utxo): correct block header deserialization for AuxPow and KAWPOW coins (#2563) # Conflicts: # mm2src/mm2_main/tests/docker_tests/eth_docker_tests.rs
…p and do it only in the test itself
* dev: fix build script failing to find .git/HEAD (#2601) refactor(EVM): rename fn, fix timeouts, add activation req validation (#2543) improvement(`static mut`s): `static mut` removal (#2590) fix(orders): set subscription on kickstart and skip GC of own pubkeys (#2597) fix(ordermatch): ignore loop-back; clear on null root; reject stale keep-alives (#2580) fix(clippy): fix clippy warnings for #2565 (#2589) fix(Trezor): fix utxo and eth calls due to firmware changes (#2565) # Conflicts: # mm2src/mm2_main/src/lp_swap/taker_swap.rs
27 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Next development step for liquidity routing (LR) feature (WIP).
Adds
execute_routed_tradeRPC and state machine implementation to execute taker swaps with LR-steps before and after the atomic swap.As input params,
execute_routed_tradeRPC accepts results of thefind_best_quoteRPC.Here is a description of
find_best_quoteinput params, response and usage:#2545 (comment)
Some additional info for
the execute_routed_tradeRPC from the source code:https://github.com/KomodoPlatform/komodo-defi-framework/blob/4abee64c320e4680b7b56310a384a01a0c47392a/mm2src/mm2_main/src/rpc/lp_commands/lr_swap_api.rs#L138
TODO: add spec for
execute_routed_tradeRPC params and response