Skip to content

Commit eaa8ab3

Browse files
balogh.adam@icloud.combalogh.adam@icloud.com
authored andcommitted
all users
1 parent 99758ca commit eaa8ab3

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

server/fastapi_server.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,9 @@ async def run_agent(
290290
wallet_address=agent_request.context.address
291291
)
292292

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")
293+
# Restrict agent usage to funded wallets
294+
if portfolio.total_value_usd <= 100:
295+
raise HTTPException(status_code=400, detail="Please use a funded wallet to start using the agent")
297296

298297
response = await handle_agent_chat_request(
299298
token_metadata_repo=token_metadata_repo,

0 commit comments

Comments
 (0)