File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 86
86
post_processing .save (batch_results , path = "results/sim_aave_uniswap" )
87
87
else :
88
88
# run a single simulation
89
- env = verbs .envs .EmptyEnv (args .seed , cache = cache )
89
+ env = verbs .envs .EmptyEnvRandom (args .seed , cache = cache )
90
90
91
91
results = sim .runner (
92
92
env ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ classifiers = [
32
32
" Programming Language :: Python :: Implementation :: PyPy" ,
33
33
]
34
34
dependencies = [
35
- " verbs == 0.2.2 " ,
35
+ " verbs == 0.4.1 " ,
36
36
" matplotlib" ,
37
37
" scipy" ,
38
38
" pandas" ,
Original file line number Diff line number Diff line change 76
76
post_processing .save (batch_results , path = "results/sim_uniswap_gbm" )
77
77
else :
78
78
# single simulation
79
- env = verbs .envs .EmptyEnv (args .seed , cache = cache )
79
+ env = verbs .envs .EmptyEnvRandom (args .seed , cache = cache )
80
80
81
81
results = sim .runner (
82
82
env ,
Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ def init_cache(
360
360
Cache generated using :py:meth:`verbs.envs.ForkEnv.export_cache`.
361
361
"""
362
362
# Fork environment from mainnet
363
- env = verbs .envs .ForkEnv (
363
+ env = verbs .envs .ForkEnvRandom (
364
364
"https://eth-mainnet.g.alchemy.com/v2/{}" .format (key ),
365
365
seed ,
366
366
block_number ,
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def runner(
69
69
GBM sigma parameter, default 0.3
70
70
uniswap_agent_type: BaseUniswapAgent, optional
71
71
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
73
73
show_progress: bool, optional
74
74
If ``True`` simulation progress will be printed
75
75
@@ -182,7 +182,7 @@ def init_cache(
182
182
"""
183
183
184
184
# Fork environment from mainnet
185
- env = verbs .envs .ForkEnv (
185
+ env = verbs .envs .ForkEnvRandom (
186
186
"https://eth-mainnet.g.alchemy.com/v2/{}" .format (key ),
187
187
seed ,
188
188
block_number ,
You can’t perform that action at this time.
0 commit comments