Giter Site home page Giter Site logo

flashloan_dydx's Introduction

Flashloan with DyDx

In this repo, you can interact with the DyDx to perform a flashloan in mainnet or kovan testnet.

Will you work with Hardhat like development enviroment and the library Ethers.js that allow you to interact with remote ethereum node in this case the Mainnet/Kovan test network.

The contract is do for mainnet ,but if you want prove in the Kovan tesnet, just change this address in the actual contract.

    DyDxPool pool = DyDxPool(0x4EC3570cADaAEE08Ae384779B0f3A45EF85289DE);

    address public WETH = 0xd0A1E359811322d97991E03f863a0C30C2cF029C;
    address public SAI = 0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359;
    address public USDC = 0xb7a4F3E9097C08dA09517b5aB877F7a917224ede;
    address public DAI = 0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa;

Get Faucet Ether for Kovan Testnet

How I do use it?

Well, you have different ways, I propose the easiest:

  • First opcion is copy and paste the contract on remix.org, you can interact with the contract easily and quickly.
  • The second is to clone this repository and install all dependencies and run script/run-flashloan.js.

Deployment contract in kovan

You can see the implementation contract on the kovan network 0x64E37bc1417c844fBD9913cfe5B3534DBb4498dE and you can see the successful flashloan with WETH.

Help

You can contact to me in discord like pinajmr#4347 glad to help you.

Remember: Only your work on Mainnet .If you want to change netowork just change address of contract in the flashloan contract.

flashloan_dydx's People

Contributors

pinalikefruit 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.