From bc3c02a6689a57bbba9d9dd28e639fc4f473ec9f Mon Sep 17 00:00:00 2001 From: aelmanaa Date: Tue, 17 Feb 2026 22:38:41 +0000 Subject: [PATCH] fix(ccip): tighten fuzzy search threshold from 0.4 to 0.3 Reduces false positive matches in chain search. For example, searching 'aptos' now returns only Aptos instead of also matching Fantom, Pharos, and Canton. --- src/lib/ccip/services/chain-search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ccip/services/chain-search.ts b/src/lib/ccip/services/chain-search.ts index f2e419d4521..b7019780768 100644 --- a/src/lib/ccip/services/chain-search.ts +++ b/src/lib/ccip/services/chain-search.ts @@ -13,7 +13,7 @@ const FUSE_OPTIONS: IFuseOptions = { { name: "chainFamily", weight: 0.2 }, { name: "chainId", weight: 0.15 }, ], - threshold: 0.4, + threshold: 0.3, // Stricter matching - 0.4 was too relaxed ignoreLocation: true, minMatchCharLength: 2, }