/flash-loan-uniswap

simple example for flash-loan for uniswap/sushiswap protocols

Primary LanguageSolidity

Flash-loan uniswap contract

Requirements

  • nodeJS v10.19.0 or later
  • npm 6.14.10 or later
  • Truffle v5.1.55 (core: 5.1.55) or later

Installation

  • npm i - install all dependencies

Build contracts

  • npm run build - build all contracts

Run tests

  • npm run test - start all tests
  • npm run test -- no-build - start tests without rebuild contracts
  • npm run test test/<filename>.js - run tests for only one file
  • npm run test -- no-build test/<filename>.js - run tests for only one file without rebuild contracts

Make Flattened contract file

  • npm run flatten