Giter Site home page Giter Site logo

aave_simutation's Introduction

AAVE Price Change Simulation

Goal - How are the users affected if the price of WBTC is halved in the protocol

Simulation Info

  • Protocol - AAVEv3 (https://docs.aave.com/hub/)
  • Asset - WBTC
  • Price Change - 50% drop
  • Fork at Blocknumber - 18589542
  • Forked network chainId - 1

After the simulation the result data is stored in MongoDB.

Steps to Simulate

First clone the repository. Navigate to the root directory and then run

npm install

Before you start the simulation, you have to set 2 environment variables.

  • ALCHEMY_RPC_MAINNET - Mandatory
  • MONGODB_URI - Optional

Set your ALCHEMY_RPC_MAINNET env variable by executing this in your terminal npx hardhat vars set ALCHEMY_RPC_MAINNET enter its value in the next prompt.

If you want to store the simulation data in your own mongoDB collection, set a MONGODB_URI environment variable like above using npx hardhat vars set MONGODB_URI.

The simulation data will be stored in a aave_simulation database in simulation_data collection.

After this you can Run the Simulation using this command

npm run simulate

aave_simutation's People

Contributors

aditya172926 avatar

Watchers

 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.