Picture a 0.5 BTC order into USDC on Ethereum, four active liquidity providers, none deep enough to take it alone. The routing layer has to split the order, hold atomicity across every partial fill, and hand the user one settlement outcome instead of four swaps with four confirmation windows. How that mechanism works, and the places it can come apart, is what routing efficiency means in a cross-chain HTLC network.
Routing Without a Pool
Single-chain AMM routing is easy to picture. The pool's invariant formula sets the price at any depth, so if liquidity falls short of your size, the swap still runs, just at a worse price.
A cross-chain HTLC network has no such formula, no continuous pool. Liquidity providers quote rates and commit to filling particular orders. When no single provider can cover the size, the routing layer splits the order across several, each of which locks and reveals inside its own HTLC.
That split creates a coordination problem AMM routing never meets. Each partial fill is a separate HTLC with its own lock, timelock, and reveal. One HTLC's atomicity guarantee does not spill over to a set of them running in parallel. Preserving the guarantee for the user becomes the routing layer's job.
How the Router Picks Providers
Before every swap, the Swap Router asks active liquidity providers for current quotes and available depth. Each reply carries a rate, the largest order the provider will commit at that rate, and a rough window before the quote may need repricing.
When a 0.5 BTC order tops any single provider's depth, the Router orders candidates by rate and assembles a sequence that covers the amount. Provider A might take 0.2 BTC at rate X, Provider B 0.3 BTC at a slightly worse rate Y. The Router blends them and quotes the user one effective rate.
Users do not see the multi-provider structure unless they ask for it. From their seat, the swap is one order at a quoted effective rate. The settlement window shown reflects the slowest provider in the sequence, never an average.
Historical reliability feeds provider selection too. A provider that habitually starts reveals and fails to finish loses routing weight, and enough slippage drops it under the circuit breaker threshold until its score recovers. This is not a punishment; it keeps multi-provider routing grounded instead of hopeful.
Atomicity Across Partial Fills
A multi-provider fill keeps its guarantee only if every provider completes or every provider refunds. Let Provider A finish while Provider B times out and the user is left partially filled: some USDC received, some BTC still locked until a timelock refund. No system claiming atomic swaps can call that an acceptable outcome.
A shared preimage carries atomicity across the HTLCs. Every HTLC in the fill locks against the same hash, so one reveal lets all providers claim their counterparty sides at once. The preimage stays hidden until every provider has confirmed its lock, which is what stops the user from ever being left half-filled.
Failure behaviour follows directly. Should one provider miss the coordination window, the whole fill aborts and every completed lock returns by refund. The user recovers their BTC rather than a partial USDC amount. An aborted multi-provider fill feels exactly like a single-provider abort: REFUND_COMPLETE, nothing in between.
The coordination window, the interval the Router gives providers to establish locks before aborting, is configurable. A tight window shortens exposure but raises the chance that a slightly slow provider kills the fill. The default is tuned to typical provider response times in normal conditions, with a buffer for variability.
Where Routing Breaks Down
Fragmentation is the failure mode that matters most. Providers adjust available depth as markets move. A quote that was live when routing began may be gone by the time the HTLC lock goes out.
We handle it by binding quotes at the initiation step. Once the Router presents a fill sequence and the user confirms, coordination starts immediately, and participating providers are held to their quoted rate for the coordination window. A provider that cannot deliver because of inventory shifts aborts the fill and takes a reliability penalty.
Source chain congestion is the second failure mode. When the initiator lock confirms much later than expected, the coordination window can lapse before all providers have locked. Abort logic then has to unwind a mixture of confirmed and unconfirmed locks, refunding the confirmed ones before the user is returned to a clean state. The state machine tracks every lock on its own, and the user sees one REFUND_COMPLETE after all refunds clear.
Price Against Speed
Multi-provider routing carries a genuine trade between speed and price. A single provider able to absorb the whole order will settle faster than a split fill, all else equal, because the coordination overhead disappears.
On larger orders, the Router puts that choice in front of the user. Where a single-provider fill pays slightly worse than a multi-provider fill, the user picks between faster settlement at a weaker rate and a better rate with a longer window. Small swaps that fit one provider never face the question.
Integration partners can set the preference at platform level. Settlement certainty first means configuring the Router to favour single-provider fills even when a split offers a better blended rate. Competitive pricing on large orders means pushing multi-provider fills up to a set provider count. The default keeps the provider count low while meeting depth and staying inside a rate tolerance band.
Measuring Routing Efficiency
Routing efficiency in an HTLC network never reduces to a single figure. It combines the execution rate achieved, fill completeness (did the whole order fill, or did it refund), and settlement time. All three trade off against one another as order size and market conditions shift.
Small orders within one provider's depth barely notice routing: a single provider, the quoted rate, the standard window. Large orders that need several providers turn routing efficiency into something worth watching closely.
As an integration partner you can watch several signals: the fill sequence behind each swap, the blended rate against the opening quote, the settlement window achieved against the estimate, and the abort rate for multi-provider fills. Settlement reporting endpoints expose all of them. Watching as volumes grow pays off, because provider depth distribution moves with the market, and your routing efficiency will track it over time.