/uniswap-v3-flashswap

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

Primary LanguageSolidity

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