Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 970 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 970 Bytes

Uniswap Tutorials

Create a smart contract that implements a simple token swap using the Uniswap V3 protocol. This DeFi tutorial explores the Uniswap V3 ISwapRouter interface for executing token swaps from Uinswap liquidity pools. Follow along and learn about this important DeFi primitive.

YouTube tutorial video for Uniswap Token Swap tutorial:

https://www.youtube.com/watch?v=GwMyv7CmoRs

LINK (Goerli):

0x326C977E6efc84E512bB9C30f76E30c160eD06FB

WETH (Goerli):

0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6

USDC (Goerli):

0x07865c6E87B9F70255377e024ace6630C1Eaa37F

Uniswap SwapRouter address (Goerli):

0xE592427A0AEce92De3Edee1F18E0157C05861564

SingleSwap.sol deployed (Goerli):

0xBdfCf1e48Fb8E7C66Fd7E0541BF9b1cf67558c49

Deploy contract:

npx hardhat run --network goerli scripts/deploySingleSwap.js

GitHub direct link for Remix:

import "https://github.com/Uniswap/v3-periphery/blob/main/contracts/interfaces/ISwapRouter.sol";