A Fast, Modern & Modular Liquidation Bot for Moola V2.
- Extermely Lightweight
- Constant time oracle and loans filtering.
- No need of initial funds as it uses Flashloan to liqudate.
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 usesLoans
to
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.
- 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