Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashutoshvarma/aave-v2-liquidator
A Fast & Modern Liquidation Bot for Aave/Moola V2
https://github.com/ashutoshvarma/aave-v2-liquidator
aave-protocol bot liquidation moola
Last synced: 9 days ago
JSON representation
A Fast & Modern Liquidation Bot for Aave/Moola V2
- Host: GitHub
- URL: https://github.com/ashutoshvarma/aave-v2-liquidator
- Owner: ashutoshvarma
- License: gpl-3.0
- Created: 2021-11-14T10:11:01.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:30:48.000Z (11 months ago)
- Last Synced: 2023-12-15T03:52:22.719Z (11 months ago)
- Topics: aave-protocol, bot, liquidation, moola
- Language: Solidity
- Homepage:
- Size: 105 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 :-
1. [`Oracle`](./packages/bot/src/oracle.ts) - A very fast constant time Oracle with lazy cached on-chain rates and refresh the cache in background.
2. [`Loans`](./packages/bot/src/loans.ts) - 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.
3. [`LiquidationBot`](./packages/bot/src/bot.ts) - Main bot which uses `Loans` to## 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
1. Clone the git repo and cd into it.
```bash
$ git clone https://github.com/ashutoshvarma/moola-liquidator-v2
$ cd moola-liquidator-v2
```
2. Install the deps.
```bash
$ yarn
```
3. Configure the env files. For reference see the respective `.env.example`
4. Deploy the Flash loan contracts [**IMPORTANT**: do not run the bot before this step]
```bash
$ yarn compile && yarn deploy
```
5. Run the bot
```
$ yarn start
```