We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99758ca commit eaa8ab3Copy full SHA for eaa8ab3
1 file changed
server/fastapi_server.py
@@ -290,10 +290,9 @@ async def run_agent(
290
wallet_address=agent_request.context.address
291
)
292
293
- # New user
294
- if activity_tracker.get_activity_stats(agent_request.context.address).points == 0:
295
- if portfolio.total_value_usd <= 100:
296
- raise HTTPException(status_code=400, detail="Please use a funded wallet to start using the agent")
+ # Restrict agent usage to funded wallets
+ if portfolio.total_value_usd <= 100:
+ raise HTTPException(status_code=400, detail="Please use a funded wallet to start using the agent")
297
298
response = await handle_agent_chat_request(
299
token_metadata_repo=token_metadata_repo,
0 commit comments