-
Notifications
You must be signed in to change notification settings - Fork 465
Add Uniswap V2 support to @0x/asset-swapper #2599
Conversation
packages/asset-swapper/src/utils/market_operation_utils/orders.ts
Outdated
Show resolved
Hide resolved
packages/asset-swapper/src/utils/market_operation_utils/types.ts
Outdated
Show resolved
Hide resolved
961a336
to
68fd915
Compare
packages/asset-swapper/src/utils/market_operation_utils/sampler_operations.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I reckon we merge once the contracts (UniswapBridge and Sampler) are updated so the PR is tied up nicely.
Will get this moving
@@ -20,6 +20,7 @@ | |||
"devUtils": "0x74134cf88b21383713e096a5ecf59e297dc7f547", | |||
"erc20BridgeProxy": "0x8ed95d1746bf1e4dab58d8ed4724f1ef95b20db0", | |||
"uniswapBridge": "0x36691c4f426eb8f42f150ebde43069a31cb080ad", | |||
"uniswapV2Bridge": "0x0000000000000000000000000000000000000000", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"uniswapV2Bridge": "0x0000000000000000000000000000000000000000", | |
"uniswapV2Bridge": "0xdcd6011f4c6b80e470d9487f5871a0cba7c93f48", |
Deployed https://etherscan.io/address/0xdcd6011f4c6b80e470d9487f5871a0cba7c93f48#code
packages/migrations/CHANGELOG.json
Outdated
@@ -9,6 +9,10 @@ | |||
{ | |||
"note": "Add `ERC20BridgeSampler` deployment", | |||
"pr": 2541 | |||
}, | |||
{ | |||
"note": "Added `UniswapV2Bridge` address (null)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"note": "Added `UniswapV2Bridge` address (null)", | |
"note": "Added `UniswapV2Bridge` address on mainnet", |
@@ -20,6 +20,7 @@ | |||
"devUtils": "0x74134cf88b21383713e096a5ecf59e297dc7f547", | |||
"erc20BridgeProxy": "0x8ed95d1746bf1e4dab58d8ed4724f1ef95b20db0", | |||
"uniswapBridge": "0x36691c4f426eb8f42f150ebde43069a31cb080ad", | |||
"uniswapV2Bridge": "0x0000000000000000000000000000000000000000", | |||
"erc20BridgeSampler": "0xc0154b14cc60a6661171fdc817f759429a57e184", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"erc20BridgeSampler": "0xc0154b14cc60a6661171fdc817f759429a57e184", | |
"erc20BridgeSampler": "0xdfec429f7d87bd9911211bbb3b8b83df0f37ebc7", |
As at 1b5746b
Description
Add Uniswap V2 to asset-swapper.
Testing instructions
Instead of writing new tests, I replaced Uniswap (V1) with V2 in existing tests.
Types of changes
Checklist:
[WIP]
if necessary.