-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
341 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import pytest | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def finalizer(accounts): | ||
yield accounts[4] | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def treasury(accounts): | ||
yield accounts[5] | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def margv1_liquidity_receiver_deployer( | ||
assert_mainnet_fork, | ||
project, | ||
accounts, | ||
univ3_manager, | ||
margv1_factory, | ||
margv1_initializer, | ||
margv1_router, | ||
margv1_supplier, | ||
WETH9, | ||
): | ||
return project.MarginalV1LBLiquidityReceiverDeployer.deploy( | ||
margv1_supplier.address, | ||
univ3_manager.address, | ||
margv1_factory.address, | ||
margv1_initializer.address, | ||
margv1_router.address, | ||
WETH9.address, | ||
sender=accounts[0], | ||
) | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def margv1_receiver_params(finalizer, treasury, sender): | ||
return ( | ||
treasury.address, # treasuryAddress | ||
int(0.1e6), # treasuryRatio: 10% to treasury | ||
int( | ||
0.5e6 | ||
), # uniswapV3Ratio: 50% to univ3 pool and 50% to margv1 pool less treasury | ||
3000, # uniswapV3Fee | ||
250000, # marginalV1Maintenance | ||
finalizer.address, # lockOwner | ||
int(86400 * 30), # lockDuration: 30 days | ||
sender.address, # refundAddress | ||
) | ||
|
||
|
||
# TODO: receiver quoter |
1 change: 1 addition & 0 deletions
1
tests/integration/quoter/test_integration_quoter_quote_create_and_initialize_pool.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|