Deploying Uniswap V2 contracts on Specular. deploy
contains all necessary scripts for deploying UniswapV2 contracts, all imported directly from @uniswap/v2-core
or @uniswap/v2-periphery
.
You can obtain WETH
using the mintWETH
hardhat task. Ensure you have some ETH first. You can get some from specular's faucet.
- Populate a
.env
file following.env-example
- Run
yarn hardhat deploy --network specular
swap
hardhat task is available for swappingWETH
,ERCA
orERCB
tokens.