diff --git a/connect/src/routes/resolver.ts b/connect/src/routes/resolver.ts index a128ed3da..21765da6e 100644 --- a/connect/src/routes/resolver.ts +++ b/connect/src/routes/resolver.ts @@ -44,6 +44,16 @@ export class RouteResolver { const [, inputTokenId] = resolveWrappedToken(fromChain.network, fromChain.chain, inputToken); const tokens = await Promise.all( this.routeConstructors.map(async (rc) => { + const supportedNetworks = rc.supportedNetworks(); + if (!supportedNetworks.includes(fromChain.network)) { + return []; + } + + const supportedChains = rc.supportedChains(fromChain.network); + if (!supportedChains.includes(fromChain.chain) || !supportedChains.includes(toChain.chain)) { + return []; + } + try { return await rc.supportedDestinationTokens(inputTokenId, fromChain, toChain); } catch (e) {