Add Uniswap V2 support to @0x/asset-swapper (#2599)

* add uniswapV2

* update changelogs

* remove unused import

* add tests for Uniswap V2 ETH

* rename UniswapV2 and UniswapV2Eth

* use correct token address path

* update contract addresses after deploy
This commit is contained in:
Xianny
2020-06-11 10:23:50 -07:00
committed by GitHub
parent b39189fde3
commit 0fbbabe208
15 changed files with 384 additions and 63 deletions

View File

@@ -649,7 +649,7 @@ contract ERC20BridgeSampler is
}
/// @dev Sample sell quotes from UniswapV2.
/// @param path Token route.
/// @param path Token route. Should be takerToken -> makerToken
/// @param takerTokenAmounts Taker token sell amount for each sample.
/// @return makerTokenAmounts Maker amounts bought at each taker token
/// amount.
@@ -683,7 +683,7 @@ contract ERC20BridgeSampler is
}
/// @dev Sample buy quotes from UniswapV2.
/// @param path Token route.
/// @param path Token route. Should be takerToken -> makerToken.
/// @param makerTokenAmounts Maker token buy amount for each sample.
/// @return takerTokenAmounts Taker amounts sold at each maker token
/// amount.