Giter VIP home page Giter VIP logo

flash_loans_v2's Introduction

Aave Flash Loan.

Dependencies

  • Node v14.17.5
  • npm 6.14.14
  • Ganache CLI v6.12.2
  • Truffle v5.1.55

Packages and their versions are in the "package.json" file

Resources

Testing

The testing is optimized for a successful arbitrage with a Flash Loan.

Before running the test you should run in a console:

ganache-cli --fork EthereumNode-URL@13009534 --unlock 0xE8E8f41Ed29E46f34E206D7D2a7D6f735A3FF2CB 

(The block number is important for the testing).

Then, to run the test:

truffle test 

Deployment in Polygon

To deploy the contract to the Polygon-Mainnet, run:

$ truffle migrate --network polygon_mainnet

Before deploy it you must change the Aave: Leending Pool Address Provider V2 for its address at Polygon, which is: 0xd05e3E715d945B59290df0ae8eF85c1BdB684744. Also, make sure you have enough MATIC for deployment.

flash_loans_v2's People

Contributors

kenatsf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flash_loans_v2's Issues

deployment failed on polygon mainnet

Error: *** Deployment Failed ***

"Migrations" -- transaction underpriced -- Reason given: Custom error (could not decode)..

at C:\Users\vkart\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\deployer\src\deployment.js:379:1
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Migration._deploy (C:\Users\vkart\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:68:1)
at Migration._load (C:\Users\vkart\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:54:1)
at Migration.run (C:\Users\vkart\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:202:1)
at Object.runMigrations (C:\Users\vkart\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:152:1)
at Object.runFrom (C:\Users\vkart\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:117:1)
at Object.run (C:\Users\vkart\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:94:1)
at module.exports (C:\Users\vkart\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate\runMigrations.js:10:1)
at Object.module.exports [as run] (C:\Users\vkart\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate\run.js:41:1)
at Command.run (C:\Users\vkart\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\command.js:189:1)

Truffle v5.5.12 (core: 5.5.12)
Node v16.15.1

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.