{"id":18686572,"url":"https://github.com/ashutoshvarma/aave-v2-liquidator","last_synced_at":"2025-07-06T16:06:14.307Z","repository":{"id":97949256,"uuid":"427894416","full_name":"ashutoshvarma/aave-v2-liquidator","owner":"ashutoshvarma","description":"A Fast \u0026 Modern Liquidation Bot for Aave/Moola V2  ","archived":false,"fork":false,"pushed_at":"2023-12-15T02:30:48.000Z","size":109667,"stargazers_count":15,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T12:13:45.836Z","etag":null,"topics":["aave-protocol","bot","liquidation","moola"],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashutoshvarma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-14T10:11:01.000Z","updated_at":"2025-04-13T21:22:25.000Z","dependencies_parsed_at":"2023-12-15T03:42:46.138Z","dependency_job_id":null,"html_url":"https://github.com/ashutoshvarma/aave-v2-liquidator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashutoshvarma/aave-v2-liquidator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshvarma%2Faave-v2-liquidator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshvarma%2Faave-v2-liquidator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshvarma%2Faave-v2-liquidator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshvarma%2Faave-v2-liquidator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashutoshvarma","download_url":"https://codeload.github.com/ashutoshvarma/aave-v2-liquidator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshvarma%2Faave-v2-liquidator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263932024,"owners_count":23531709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aave-protocol","bot","liquidation","moola"],"created_at":"2024-11-07T10:28:09.163Z","updated_at":"2025-07-06T16:06:09.298Z","avatar_url":"https://github.com/ashutoshvarma.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aave/Moola V2 Liquidation Bot\nA Fast, Modern \u0026 Modular Liquidation Bot for Moola V2.\n\n# Features :-\n- Extermely Lightweight\n- Constant time oracle and loans filtering.\n- No need of initial funds as it uses Flashloan to liqudate. \n\n## Design Architecture\n\nThere are 3 components for this bot :-\n\n1. [`Oracle`](./packages/bot/src/oracle.ts) - A very fast constant time Oracle with lazy cached on-chain rates and refresh the cache in background.\n2. [`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.\n3. [`LiquidationBot`](./packages/bot/src/bot.ts) - Main bot which uses `Loans` to\n\n## Requirements:-\n\nThis bot does not require any specific external resource like db, etc.\nBut it is recommended to use latest yarn with it for optimal experience.\n\n## Setup\n\n1. Clone the git repo and cd into it.\n   ```bash\n   $ git clone https://github.com/ashutoshvarma/moola-liquidator-v2\n   $ cd moola-liquidator-v2\n   ```\n2. Install the deps.\n   ```bash\n   $ yarn\n   ```\n3. Configure the env files. For reference see the respective `.env.example`\n4. Deploy the Flash loan contracts [**IMPORTANT**: do not run the bot before this step]\n   ```bash\n   $ yarn compile \u0026\u0026 yarn deploy\n   ```\n5. Run the bot\n   ```\n   $ yarn start\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashutoshvarma%2Faave-v2-liquidator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashutoshvarma%2Faave-v2-liquidator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashutoshvarma%2Faave-v2-liquidator/lists"}