Skip to content

Commit 3fb9ab1

Browse files
Update VERBS (#22)
1 parent 35a70b8 commit 3fb9ab1

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

aave_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
post_processing.save(batch_results, path="results/sim_aave_uniswap")
8787
else:
8888
# run a single simulation
89-
env = verbs.envs.EmptyEnv(args.seed, cache=cache)
89+
env = verbs.envs.EmptyEnvRandom(args.seed, cache=cache)
9090

9191
results = sim.runner(
9292
env,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ classifiers = [
3232
"Programming Language :: Python :: Implementation :: PyPy",
3333
]
3434
dependencies = [
35-
"verbs == 0.2.2",
35+
"verbs == 0.4.1",
3636
"matplotlib",
3737
"scipy",
3838
"pandas",

uniswap_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
post_processing.save(batch_results, path="results/sim_uniswap_gbm")
7777
else:
7878
# single simulation
79-
env = verbs.envs.EmptyEnv(args.seed, cache=cache)
79+
env = verbs.envs.EmptyEnvRandom(args.seed, cache=cache)
8080

8181
results = sim.runner(
8282
env,

verbs_examples/aave/sim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def init_cache(
360360
Cache generated using :py:meth:`verbs.envs.ForkEnv.export_cache`.
361361
"""
362362
# Fork environment from mainnet
363-
env = verbs.envs.ForkEnv(
363+
env = verbs.envs.ForkEnvRandom(
364364
"https://eth-mainnet.g.alchemy.com/v2/{}".format(key),
365365
seed,
366366
block_number,

verbs_examples/uniswap/sim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def runner(
6969
GBM sigma parameter, default 0.3
7070
uniswap_agent_type: BaseUniswapAgent, optional
7171
Either UniswapAgent or DummyUniswapAgent, depending
72-
on wheter the simulation is initialising the Cache or not
72+
on whether the simulation is initialising the Cache or not
7373
show_progress: bool, optional
7474
If ``True`` simulation progress will be printed
7575
@@ -182,7 +182,7 @@ def init_cache(
182182
"""
183183

184184
# Fork environment from mainnet
185-
env = verbs.envs.ForkEnv(
185+
env = verbs.envs.ForkEnvRandom(
186186
"https://eth-mainnet.g.alchemy.com/v2/{}".format(key),
187187
seed,
188188
block_number,

0 commit comments

Comments
 (0)