Skip to content

Commit 87ab393

Browse files
fengtalityclaude
andcommitted
Filter out DEX providers from connectors list
DEX providers (jupiter/router, uniswap/amm, etc.) are accessed via Gateway networks, not as direct connectors. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 65e8c21 commit 87ab393

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

routers/connectors.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ async def available_connectors():
1616
Get a list of all available connectors.
1717
1818
Returns:
19-
List of connector names supported by the system
19+
List of connector names supported by the system (excludes DEX providers which use Gateway networks)
2020
"""
21-
return list(AllConnectorSettings.get_connector_settings().keys())
21+
all_connectors = AllConnectorSettings.get_connector_settings().keys()
22+
# Filter out DEX providers (contain '/') - these are accessed via Gateway networks
23+
return [c for c in all_connectors if '/' not in c]
2224

2325

2426
@router.get("/{connector_name}/config-map", response_model=Dict[str, dict])

0 commit comments

Comments
 (0)