This repo does the following with hardhat's mainnet-forking:
- ETH -> WETH
- WETH -> DAI (using Uniswap)
Note: Setup .env
file with ALCHEMY_API
variable set
- run code with :
npx hardhat test
- code file:
test/index.ts
- contract from UniswapV3 examples:
contracts/Swap.sol