Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions intentkit/skills/cdp/swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,12 @@ async def _arun(

# Map network_id to the format expected by the swap API
network_mapping = {
"base": "base",
"base-mainnet": "base",
"base-sepolia": "base-sepolia",
"ethereum": "ethereum",
"ethereum-mainnet": "ethereum",
"ethereum-sepolia": "ethereum-sepolia"
}
api_network = network_mapping.get(network_id, network_id)

Expand Down