fix: populate config endpoints with chain and token data #33
@@ -15,5 +15,5 @@ def get_chains():
|
|||||||
async def get_tokens():
|
async def get_tokens():
|
||||||
settings = get_settings()
|
settings = get_settings()
|
||||||
client = AveCloudClient(api_key=settings.AVE_API_KEY, plan=settings.AVE_API_PLAN)
|
client = AveCloudClient(api_key=settings.AVE_API_KEY, plan=settings.AVE_API_PLAN)
|
||||||
tokens = await client.get_tokens(chain="bsc", limit=100)
|
tokens = await client.get_tokens(chain="bsc", limit=20)
|
||||||
|
|
|||||||
return {"tokens": tokens}
|
return {"tokens": tokens}
|
||||||
|
|||||||
Reference in New Issue
Block a user
actually I'd like to limit the tokens to 20 for now. its okay to hardcode for now, we will adjust later if needed