Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't check base when launching bots #1038

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions lib/agent0/agent0/hyperdrive/exec/get_agent_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from agent0.base.config import AgentConfig
from agent0.hyperdrive.agents import HyperdriveAgent
from eth_account.account import Account
from ethpy.base import async_smart_contract_transact, get_account_balance, smart_contract_read
from ethpy.base import async_smart_contract_transact, get_account_balance
from fixedpointmath import FixedPoint
from numpy.random._generator import Generator as NumpyGenerator
from web3 import Web3
Expand Down Expand Up @@ -78,9 +78,6 @@ def get_agent_accounts(
f"Agent needs Ethereum to operate! The agent {eth_agent.checksum_address=} has a "
f"balance of 0.\nDid you fund their accounts?"
)
agent_base_funds = smart_contract_read(base_token_contract, "balanceOf", eth_agent.checksum_address)
if agent_base_funds["value"] == 0:
raise AssertionError("Agent needs Base tokens to operate! Did you fund their accounts?")
agents.append(eth_agent)
num_agents_so_far.append(agent_info.number_of_agents)
logging.info("Added %d agents", sum(num_agents_so_far))
Expand Down
Loading