Skip to content

Commit 99758ca

Browse files
balogh.adam@icloud.combalogh.adam@icloud.com
authored andcommitted
limit
1 parent ddf1941 commit 99758ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/fastapi_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ async def run_agent(
292292

293293
# New user
294294
if activity_tracker.get_activity_stats(agent_request.context.address).points == 0:
295-
if not portfolio.holdings:
296-
raise HTTPException(status_code=400, detail="Please use an existing wallet to start using the agent")
295+
if portfolio.total_value_usd <= 100:
296+
raise HTTPException(status_code=400, detail="Please use a funded wallet to start using the agent")
297297

298298
response = await handle_agent_chat_request(
299299
token_metadata_repo=token_metadata_repo,

0 commit comments

Comments
 (0)