This is a simple swap application on ETH-TEST_TOKEN liquidity pool on Uniswap V3.
This is created by using React.js, Next.js, TypeScript, TailwindCSS, and Ethers.js.
Deployed here.
https://ethers-uniswap-v3-pool.vercel.app/
yarn
oryarn install
yarn dev
.env
file NEXT_PUBLIC_RPC_URL_1=https://mainnet.infura.io/v3/{INFURA_API_KEY} NEXT_PUBLIC_RPC_URL_5=https://goerli.infura.io/v3/{INFURA_API_KEY}
- TEST_TOKEN Address: 0xb14f00ccac24c571fbd846a30c5e8fc28316f996
-
ETH-TEST_TOKEN Flow
- Connect wallet.
- Input ETH Amount.
- Click swap.
- Wrap ETH to WETH.
- Send transaction to Uniswap Router
- See a toast if success.
-
TEST_TOKEN-ETH Flow
- Connect wallet.
- Input TEST_TOKEN Amount.
- Click swap.
- Send transaction to Uniswap Router
- Unwrap WETH to ETH.
- See a toast if success.