From dd16584c41710f338245a4cf483e3c85df2b43be Mon Sep 17 00:00:00 2001 From: TAMARA LIPOWSKI Date: Thu, 20 Aug 2026 10:52:12 -0400 Subject: [PATCH] feat: count exclusive candidates dropped for invalid route shape An exclusive leg that does not reach the route's output token makes the candidate unusable, so no commitment is made and the order falls back to public liquidity. That happened silently. `exclusive_route_invalid_shape_total` counts it, which sizes how much exclusive liquidity the shape rule turns away. Co-Authored-By: Claude Opus 5 (1M context) --- fynd-core/src/worker_pool_router/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/fynd-core/src/worker_pool_router/mod.rs b/fynd-core/src/worker_pool_router/mod.rs index 51f4cfd3..61aef2e5 100644 --- a/fynd-core/src/worker_pool_router/mod.rs +++ b/fynd-core/src/worker_pool_router/mod.rs @@ -1076,6 +1076,7 @@ fn has_valid_exclusive_route(quote: &OrderQuote, chain: Chain) -> bool { is_native_wrap(next, chain) }); if !reaches_output { + counter!("exclusive_route_invalid_shape_total").increment(1); return false; } exclusive_count += 1;