GithubHelp home page GithubHelp logo

easyflashloan-arbitrage_v1's Introduction

Welcome to the official repository of the Flashloan Arbitrage Project.

This project has been used to teach over 300+ students in my first Udemy course.

As my inaugural course, I recognize there's a lot of room for improvement. By making this repository public, I aim to enhance accessibility and foster collaboration among learners.

This project is now open source, and I enthusiastically encourage contributions. Feel free to submit pull requests and improvements. For more information please contact me at [email protected]

Steps to initiate the project:

  1. run yarn install || npm install
  2. run npx hardhat typechain
  3. run "npx hardhat node --fork https://gateway.tenderly.co/public/polygon" (or choose your own Polygon rpc url to fork)
  4. set the env variable "PROVIDER_URL" to be "http://127.0.0.1:8545/" (your local hardhat fork)
  5. add your TEST private key (DO NOT USE A PRIVATE KEY THAT HOLDS REAL FUNDS) in the env file as "PRIVATE_KEY"
  6. run "npx hardhat run scripts/deployDodoFlashloan --network localhost"
  7. the address of your flashloan contract was printed in your terminal, copy and paste it as "FLASHLOAN_ADDRESS" env variable
  8. you can now run "npx hardhat run scripts/arbitrage --network localhost" or "npx hardhat test test/index.test.ts"

easyflashloan-arbitrage_v1's People

Contributors

gabidev45 avatar vgabriel45 avatar

Stargazers

Theo avatar Daniel Ortiz 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.