@@ -53,7 +53,11 @@ def anvil_polygon_chain_fork(request, large_usdc_holder) -> str:
53
53
:return: JSON-RPC URL for Web3
54
54
"""
55
55
mainnet_rpc = os .environ ["JSON_RPC_POLYGON" ]
56
- launch = fork_network_anvil (mainnet_rpc , unlocked_addresses = [large_usdc_holder ])
56
+ launch = fork_network_anvil (
57
+ mainnet_rpc ,
58
+ unlocked_addresses = [large_usdc_holder ],
59
+ fork_block_number = 49_000_000 ,
60
+ )
57
61
try :
58
62
yield launch .json_rpc_url
59
63
finally :
@@ -145,11 +149,9 @@ def aave_v3_deployment(web3):
145
149
146
150
147
151
@pytest .fixture
148
- def one_delta_deployment (web3 , aave_v3_deployment ) -> OneDeltaDeployment :
152
+ def one_delta_deployment (web3 ) -> OneDeltaDeployment :
149
153
return fetch_1delta_deployment (
150
154
web3 ,
151
- aave_v3_deployment ,
152
- # flash_aggregator_address="0x168B4C2Cc2df4635D521Aa1F8961DD7218f0f427",
153
155
flash_aggregator_address = "0x74E95F3Ec71372756a01eB9317864e3fdde1AC53" ,
154
156
broker_proxy_address = "0x74E95F3Ec71372756a01eB9317864e3fdde1AC53" ,
155
157
)
@@ -201,6 +203,7 @@ def test_1delta_only_open_short_position(
201
203
borrow_token = weth .contract ,
202
204
atoken = ausdc .contract ,
203
205
vtoken = vweth .contract ,
206
+ aave_v3_deployment = aave_v3_deployment ,
204
207
):
205
208
_execute_tx (web3 , hot_wallet , fn )
206
209
@@ -261,6 +264,7 @@ def test_1delta_open_short_position_supply_separately(
261
264
borrow_token = weth .contract ,
262
265
atoken = ausdc .contract ,
263
266
vtoken = vweth .contract ,
267
+ aave_v3_deployment = aave_v3_deployment ,
264
268
):
265
269
_execute_tx (web3 , hot_wallet , fn )
266
270
@@ -333,6 +337,7 @@ def test_1delta_open_and_close_short_position(
333
337
borrow_token = weth .contract ,
334
338
atoken = ausdc .contract ,
335
339
vtoken = vweth .contract ,
340
+ aave_v3_deployment = aave_v3_deployment ,
336
341
):
337
342
_execute_tx (web3 , hot_wallet , fn )
338
343
@@ -413,6 +418,7 @@ def test_1delta_open_and_close_short_position_separately(
413
418
borrow_token = weth .contract ,
414
419
atoken = ausdc .contract ,
415
420
vtoken = vweth .contract ,
421
+ aave_v3_deployment = aave_v3_deployment ,
416
422
):
417
423
_execute_tx (web3 , hot_wallet , fn )
418
424
@@ -530,6 +536,7 @@ def test_1delta_open_and_close_short_positions_of_2_assets(
530
536
borrow_token = weth .contract ,
531
537
atoken = ausdc .contract ,
532
538
vtoken = vweth .contract ,
539
+ aave_v3_deployment = aave_v3_deployment ,
533
540
):
534
541
_execute_tx (web3 , hot_wallet , fn )
535
542
@@ -539,6 +546,7 @@ def test_1delta_open_and_close_short_positions_of_2_assets(
539
546
borrow_token = wmatic .contract ,
540
547
atoken = ausdc .contract ,
541
548
vtoken = vwmatic .contract ,
549
+ aave_v3_deployment = aave_v3_deployment ,
542
550
):
543
551
_execute_tx (web3 , hot_wallet , fn )
544
552
0 commit comments