MENU

Fun & Interesting

Uniswap V3 Tutorial | Uniswap Smart Contract (Single Swap) | DeFi Tutorial

Block Explorer 53,459 3 years ago
Video Not Working? Fix It Now

In this Uniswap tutorial create a smart contract that implements a simple ERC20 token swap (Uniswap single 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. GitHub repo for this tutorial: https://github.com/jspruance/uniswap-tutorials LINK: 0x326C977E6efc84E512bB9C30f76E30c160eD06FB WETH: 0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6 USDC: 0x07865c6E87B9F70255377e024ace6630C1Eaa37F Uniswap Swap Router address: 0xE592427A0AEce92De3Edee1F18E0157C05861564 SingleSwap.sol deployed: 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";

Comment