Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/multi-hop-routing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Multi-hop route discovery

StableRoute discovers indirect paths when no direct pair exists between
source and destination assets. The engine walks the registered pair graph
to find feasible hops while respecting per-pair fees and liquidity ceilings.

Operational notes:

1. Register intermediate pairs before expecting multi-hop quotes.
2. Each hop applies its own `feeBps` and amount bounds.
3. Failed discovery returns `404 not_found` rather than a partial quote.

Implementation lives in the quote handler within `src/index.ts`; extend
`docs/pricing.md` when changing hop selection heuristics.