fix: update token search to use trending endpoint (v2/tokens doesn't exist)

This commit is contained in:
shokollm
2026-04-10 12:37:27 +00:00
parent 6f23b322d3
commit e82b8b3549
2 changed files with 16 additions and 7 deletions

View File

@@ -194,7 +194,7 @@ class ConversationalAgent:
{
"symbol": t.get("symbol", ""),
"name": t.get("name", ""),
"address": t.get("id") or t.get("contract_address", ""),
"address": t.get("token", ""), # trending API uses "token" for contract address
"chain": t.get("chain", "bsc")
}
for t in tokens