The bots that clear DeFi's bad loans
When a crypto loan goes bad, a bot pays it off and takes the collateral at a discount. We traced every liquidation on Ethereum's main lenders since 2021 to see who does the job, and how cheap gas changed it.
- 1,877
- $579M
- 43%
- $80
- 5,371
- 22%
01 · The jobHow a liquidation works
On August 5, 2024, crypto prices fell hard, and bots cleared $341 million of bad loans on Ethereum's lenders in a single day. Forty-three of them joined in. Three took more than half the work.
Lenders like Aave let you borrow against crypto you post as collateral. If the collateral loses too much value, the loan can be closed by force. A liquidator repays part of it and takes some of the collateral at a discount the lender sets, called the liquidation bonus. That bonus is the pay for the job, and anyone can claim it.
In practice the liquidator is a bot. Bots watch every loan, every price and the mempool, and fire the moment a loan crosses the line. The first to land gets the bonus. Our look at Ethereum lending since 2021 counts how much debt went this way. The question here is who does the work.
We count the lenders that pay a bot to do it: Aave in all its versions, Spark, Compound v2, Morpho, Euler, Fluid, Abracadabra and Kashi. Between them they saw about four fifths of all the debt liquidated.
02 · The fieldMany bots, a few winners
| Year | Count | Bots | Top 10 | Median |
|---|---|---|---|---|
| 2021 | 15,013 | 311 | 62% | $5K |
| 2022 | 31,670 | 333 | 57% | $1K |
| 2023 | 3,314 | 179 | 74% | $953 |
| 2024 | 13,362 | 155 | 73% | $993 |
| 2025 | 42,386 | 349 | 67% | $127 |
| 2026* | 26,909 | 788 | 70% | $80 |
Almost 1,900 addresses have done this job at least once on these lenders. Most did it rarely. In every year, the ten busiest handled more than half of the debt, and in three of the six years close to three quarters.
One bot now stands out. Since February 2025, a single contract has cleared $579 million of loans on Aave, Morpho and Spark. That is almost 30% of all the debt paid off on these lenders in that time.
03 · Who they areUnnamed contracts
| # | Bot | Active | Debt |
|---|---|---|---|
| 1 | 0xf057…0004 | 2025–26 | $579M |
| 2 | 0xb799…7478 | 2021 | $206M |
| 3 | 0xd911…6c6f | 2022 | $198M |
| 4 | 0x9d6b…02d8 | 2024–25 | $173M |
| 5 | 0x0000…0e49 | 2024–26 | $165M |
| 6 | 0x3909…b39f | 2021–22 | $129M |
| 7 | 0x3633…e95c | 2025–26 | $123M |
| 8 | 0x681b…12fa | 2021 | $119M |
Every one of the busiest bots is a contract with no public name. Our labels name almost none of them. Most were busy for a year or less before newer bots took over, which says something about the game. Speed wins, and the fastest bots do not stay fastest for long.
04 · Crash daysWhen prices fall at once
| Day | Debt | Bots | Top 3 |
|---|---|---|---|
| Aug 5, 2024 | $341M | 43 | 54% |
| May 19, 2021 | $308M | 38 | 67% |
| Feb 3, 2025 | $246M | 43 | 63% |
| Feb 5, 2026 | $170M | 75 | 43% |
| Jan 31, 2026 | $168M | 57 | 58% |
Crashes are when the race matters most. On the five busiest days in our data, a few dozen bots took part each time, yet the top three still took roughly half the debt or more. On the worst day of the first boom, in May 2021, one bot handled more than a third of it alone.
05 · Cheaper gasSmaller and smaller loans
A bot only makes money if the bonus is worth more than the gas it pays. In the first boom, gas for one of these jobs usually cost more than $100, and the median loan paid off was worth almost $5,000.
Then gas on Ethereum got much cheaper. By this year the median job cost less than 50 cents, and bots began closing loans worth a few dollars. Over the last two years about half of all these jobs were loans under $100.
Two thirds of those small ones sat on old markets: Aave v1 and v2, and Compound v2. On Aave's current market the median loan paid off was still above $2,000.
06 · The sweepCleaning out the old markets
The biggest sweep came from Aave itself. In late September 2025 a contract called ClinicStewardV2 started working through dust loans left on Aave v2. Its verified code points at the old pool and at Aave's treasury, and gives it a budget for clean-up. In three weeks it closed more than five thousand loans, at times dozens in one go. The median loan was about a dollar, and the whole sweep came to about $20,000.
Bots do the same when it pays. In June 2026 one bot closed most of that month's small loans on Aave's old market. Our labels tag it as an MEV bot, one built to profit from the order of trades, much like the ones in our study of crypto arbitrage.
07 · The answerA few bots, working for pennies
So who clears DeFi's bad loans? On Ethereum, mostly a handful of unnamed contracts. They race each other on every crash and win on speed, and few stay on top for long. As gas got cheap, they went down to loans worth a few dollars, and Aave paid for its own sweep of the smallest ones.
That race keeps lenders safe. When no liquidator steps in, bad debt piles up instead, as it did in Morpho's zombie markets.
08 · How we measuredWhat we counted, and what we left out
We rebuilt each liquidation on these lenders from their own on-chain events, from the start of 2021 to late September 2026, and valued each loan at that day's price. The bot is the address the lender records, usually a contract rather than its owner. We did not estimate what bots earned. Daily prices miss the discount on a day when prices swing, and bots also pay for swaps and for getting in first.
Three lenders work another way. On Maker, the collateral goes to an auction and what is left goes back to the borrower. On Compound v3, the protocol takes the collateral itself. On Liquity, a shared pool of depositors takes it. Whoever starts these clean-ups keeps little or none of the collateral. Together they saw about a fifth of the debt since 2021, and they are left out of the counts above.
09 · The recordThe contracts behind the numbers
| Contract | Address |
|---|---|
| Aave v2 LendingPool | 0x7d27…c7a9 |
| Aave v3 Pool | 0x8787…a4e2 |
| ClinicStewardV2 | 0x6a14…6b56 |
| Aave Collector | 0x464c…e18c |
| Busiest bot since 2025 | 0xf057…0004 |
Watch the liquidators in plain English
Every figure above came from data anyone can query. The Bitquery MCP server puts it behind an AI assistant, so you can ask which bots liquidated loans on Aave today, how much a bot has cleared this year, or which loans are close to the line, without writing the query yourself.
This article is provided for informational and educational purposes only and reflects analysis of publicly available on-chain data as of the dates indicated. It does not constitute legal, financial, compliance, or investment advice.
The findings describe liquidations on Ethereum lenders rebuilt from on-chain events. Loans are valued at daily prices; liquidator earnings are not estimated. Maker, Compound v3 and Liquity liquidations are counted only as a share.
References to Aave, Spark, Compound, Morpho, Euler, Fluid, Abracadabra, Kashi, Maker, Liquity and any other party describe contract state and on-chain activity. Liquidators are identified by address and contract type only; nothing here states who controls them or suggests wrongdoing.
Nothing herein should be relied upon as a definitive determination of fact. Readers should conduct their own independent verification before taking any action. The authors and publisher accept no liability for any loss or damage arising from the use of this article.