atomicDEX-API icon indicating copy to clipboard operation
atomicDEX-API copied to clipboard

feat(LR): execute_routed_trade RPC implementation

Open dimxy opened this issue 5 months ago • 0 comments

Next development step for liquidity routing (LR) feature (WIP). Adds execute_routed_trade RPC and state machine implementation to execute taker swaps with LR-steps before and after the atomic swap.

As input params, execute_routed_trade RPC accepts results of the find_best_quote RPC. Here is a description of find_best_quote input params, response and usage: https://github.com/KomodoPlatform/komodo-defi-framework/pull/2545#issuecomment-3144098934

Some additional info for the execute_routed_trade RPC 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_trade RPC params and response

dimxy avatar Jul 23 '25 15:07 dimxy