uniswap-v3-token-swap
uniswap-v3-token-swap copied to clipboard
example code of uniswapV3 token swaps with hardhat and ethersjs
Uniswap V3 Token Swap Example
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
Info
- run code with :
npx hardhat test
- code file:
test/index.ts
- contract from UniswapV3 examples:
contracts/Swap.sol