Skip to content

Conversation

@dimxy
Copy link
Collaborator

@dimxy dimxy commented Jul 23, 2025

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:
#2545 (comment)

Some additional info for the execute_routed_trade RPC from the source code:

/// Run an aggregated swap with LR to fill a maker order.

TODO: add spec for execute_routed_trade RPC params and response

@dimxy dimxy added status: in progress priority: medium Moderately important tasks that should be completed but are not urgent. feature: swap labels Jul 23, 2025
shamardy and others added 9 commits August 2, 2025 00:43
* 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
* dev:
  fix(utxo): calculate min_trading_vol based on fixed tx fees (#2564)
  feat(protocol): [0] solana support (#2586)
  fix(utxo): fix header deserialization; guard AuxPoW (#2583)
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[] feature: swap priority: medium Moderately important tasks that should be completed but are not urgent. status: pending review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants