Skip to content

Commit

Permalink
chore: enable amm fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
cdummett committed Aug 13, 2024
1 parent b077e4c commit 6fbdb11
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions vega_sim/scenario/fuzzing/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,27 +140,27 @@ def configure_agents(
for i_referrer, i_agent in itertools.product(range(2), range(2))
]
)
# extra_agents.extend(
# [
# ReferralAgentWrapper(
# agent=FuzzedAutomatedMarketMaker(
# wallet_name="FuzzedAutomatedMarketMaker",
# key_name=(
# f"FuzzedAutomatedMarketMaker{str(i_referrer).zfill(3)}_{str(i_agent).zfill(3)}"
# ),
# market_name=market_name,
# submit_probability=0.5,
# amend_probability=0.5,
# cancel_probability=0.1,
# initial_asset_mint=1e6,
# tag=f"{market_code}_{str(i_referrer).zfill(3)}_{str(i_agent).zfill(3)}",
# ),
# referrer_wallet_name="ReferralAgentWrapper",
# referrer_key_name=f"ReferralAgentWrapper_{str(i_referrer).zfill(3)}",
# )
# for i_referrer, i_agent in itertools.product(range(2), range(2))
# ]
# )
extra_agents.extend(
[
ReferralAgentWrapper(
agent=FuzzedAutomatedMarketMaker(
wallet_name="FuzzedAutomatedMarketMaker",
key_name=(
f"FuzzedAutomatedMarketMaker{str(i_referrer).zfill(3)}_{str(i_agent).zfill(3)}"
),
market_name=market_name,
submit_probability=0.5,
amend_probability=0.5,
cancel_probability=0.1,
initial_asset_mint=1e6,
tag=f"{market_code}_{str(i_referrer).zfill(3)}_{str(i_agent).zfill(3)}",
),
referrer_wallet_name="ReferralAgentWrapper",
referrer_key_name=f"ReferralAgentWrapper_{str(i_referrer).zfill(3)}",
)
for i_referrer, i_agent in itertools.product(range(2), range(2))
]
)
extra_agents.append(
TransactionDelayChecker(
wallet_name="TransactionDelayChecker",
Expand Down

0 comments on commit 6fbdb11

Please sign in to comment.