Giter VIP home page Giter VIP logo

ethereum-arbitrage-contract's Introduction

Flashloan Trading Smart Contract

Usage

  1. Rename .env.example file to .env inside the contracts directory

  2. Config .env file.

    Here, you need three things.

    • set netwok
    • Insert your INFURA Project ID. You can create a infura Project ID here.
    • Insert your MetaMask (Kovan Testnet) 32byte wallet private key.
    • Insert your etherscan account's API KEY.
  3. Install yarn modules. Open terminal window and run:

npm install
npm i @truffle/hdwallet-provider@next
yarn install
  1. Deploy Smart Contract on Kovan Testnet
yarn build-deploy-kovan
yarn verify UniswapFlash1Inch --network  kovan
  1. Deploy Smart Contract on Mainnet Fork

Note: Can use Ganache CLI or GUI. here describe how to use Ganache CLI.

yarn add global ganache-cli
yarn mainnet-fork https://mainnet.infura.io/v3/<YOUR_INFURA_API_KEY>

Note: Don't close current terminal window and start with new terminal window.

yarn build-deploy

Modifying UniswapFlash1Inch.sol

Integrating 1Inch V4 Router

Kovan Testnet Past Examples

Developer Instruction Manual (ETH MAINNET):

COMING SOON (THINGS REQUIRED)

  • AAVE, EQUALIZER, DODO Flashloan contracts activated for Mainnet
  • bot.js needs to be modified to lookup mainnet opportunities

Adding a new DEX

  1. Don't need add the new DEX's into the /config/dex.json file anymore. Just need UniswapV3 and WETH token.

ethereum-arbitrage-contract's People

Contributors

supercoolx avatar hungrymaven avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.