项目作者: damarnez

项目描述 :
Testing the smartcontracts of aave in mainnet.
高级语言: TypeScript
项目地址: git://github.com/damarnez/aave_simulator.git
创建时间: 2020-10-20T16:17:42Z
项目社区:https://github.com/damarnez/aave_simulator

开源协议:

下载


Aave Simulator

JOB01

  • Select an active borrower on the protocol at the selected block height (with some collateral and borrowings).
  • Borrow another currency apart from the ones he is borrowing at the moment, moving his HF to exactly 1.1.
  • “Force” the price oracle of AAVE to set a price that puts the previous borrower under liquidation.
  • With a different account, liquidate the user.
  • There is freedom to select the new borrowed currency.

JOB02

  • Select an active depositor on the protocol at the selected block height (with deposits, can be used as collateral or not).
  • Transfer all of his available aTokens to transfer to another user account.
  • With that user, redeem the aTokens, deposit again, and borrow another currency at stable rate.

Pre requirements

GANACHE

  1. npm install -g ganache

Environment file

.env

  1. ALCHEMY_NODE=https://eth-mainnet.alchemyapi.io/v2/ YOUR KEY
  2. DEBUG=false

Start JOBS

  1. npm start

Exclude Jobs

Update the file simulations.json and set to true the value disabled.

System’s architecture

architecture