aave-v2-liquidator
aave-v2-liquidator copied to clipboard
A Fast & Modern Liquidation Bot for Aave/Moola V2
Aave/Moola V2 Liquidation Bot
A Fast, Modern & Modular Liquidation Bot for Moola V2.
Features :-
- Extermely Lightweight
- Constant time oracle and loans filtering.
- No need of initial funds as it uses Flashloan to liqudate.
Design Architecture
There are 3 components for this bot :-
Oracle- A very fast constant time Oracle with lazy cached on-chain rates and refresh the cache in background.Loans- This fetch the active loans using subgraph and calculate their HF to filter bad loans. Also this cache the results so this is also constant time.LiquidationBot- Main bot which usesLoansto
Requirements:-
This bot does not require any specific external resource like db, etc. But it is recommended to use latest yarn with it for optimal experience.
Setup
- Clone the git repo and cd into it.
$ git clone https://github.com/ashutoshvarma/moola-liquidator-v2 $ cd moola-liquidator-v2 - Install the deps.
$ yarn - Configure the env files. For reference see the respective
.env.example - Deploy the Flash loan contracts [IMPORTANT: do not run the bot before this step]
$ yarn compile && yarn deploy - Run the bot
$ yarn start