zhiwei-w-luo / uniswap-v3-flashswap

example code of uniswapV3 flash swap/loan with hardhat and ethersjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uniswap V3 Flash Swap Example

Builds upon the token swap example: https://github.com/gebob19/uniswap-v3-token-swap

Note: Setup .env file with ALCHEMY_API variable set

Info

  • run code with : npx hardhat test
  • code file: test/index.ts
  • UniswapV3 contract to swap tokens: contracts/swap.sol
  • flashswap contract: contracts/flash.sol

About

example code of uniswapV3 flash swap/loan with hardhat and ethersjs


Languages

Language:Solidity 52.7%Language:TypeScript 43.1%Language:JavaScript 2.9%Language:Shell 1.3%