InvestigationEthereumLiquidationsMEV

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.

At a glance
Crypto lenders need someone to close bad loans fast, and bots do it for a fee. Almost 1,900 addresses have done the job on Ethereum's main lenders since 2021, yet each year the ten busiest handled most of the debt. On the worst days a few dozen bots race and three of them take roughly half. Gas got so cheap that the median loan cleared shrank to $80, and Aave used a contract of its own to clear thousands of dollar-sized loans from its old market.
1,877
Addresses that cleared a bad loan on these lenders since 2021
70%
Share of 2026's cleared debt handled by the ten busiest
$80
The median loan cleared in 2026, down from $4,845 in 2021
$0.49
Median gas paid per job in 2026, down from $167
Key findingsEach line has its own share link
  1. 1,877

    Addresses have cleared bad loans on these lenders since 2021. Each year the ten busiest handled 57% to 75% of the debt.

  2. $579M

    Cleared by one bot since February 2025, almost 30% of all the debt cleared on these lenders.

  3. 43%

    The smallest share the top three bots took on any of the five busiest days since 2021. On May 19, 2021, they took 67%.

  4. $80

    The median loan cleared in 2026, down from $4,845 in 2021. Gas per job fell from $167 to $0.49.

  5. 5,371

    Dust loans cleared by Aave's own clean-up contract on its old v2 market in three weeks from September 23, 2025. The median was about $1.

  6. 22%

    Of the debt cleared a different way, by Maker's auctions, Compound v3 and Liquity, where the caller keeps little or none of the backing.

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

YearCountBotsTop 10Median
202115,01331162%$5K
202231,67033357%$1K
20233,31417974%$953
202413,36215573%$993
202542,38634967%$127
2026*26,90978870%$80
*2026 runs to September 22. Count: loans closed. Bots: addresses that closed at least one. Top 10: the ten busiest bots' share of the year's debt. Median: the middle-sized loan.

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

#BotActiveDebt
10xf057…00042025–26$579M
20xb799…74782021$206M
30xd911…6c6f2022$198M
40x9d6b…02d82024–25$173M
50x0000…0e492024–26$165M
60x3909…b39f2021–22$129M
70x3633…e95c2025–26$123M
80x681b…12fa2021$119M
The busiest liquidators since 2021 by debt liquidated on these lenders. Every one is an unnamed contract.

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

DayDebtBotsTop 3
Aug 5, 2024$341M4354%
May 19, 2021$308M3867%
Feb 3, 2025$246M4363%
Feb 5, 2026$170M7543%
Jan 31, 2026$168M5758%
The five busiest days for these lenders since 2021 (UTC). Top 3: share of the day's liquidated debt handled by the three busiest bots.

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

Smaller liquidations, cheaper gasMedian loan liquidated and median gas paid per liquidation, by year, in dollars. The scale grows tenfold at each line.Median loan liquidatedMedian gas per liquidation$0.1$1$10$100$1,000$10,000$4,845$1,477$953$993$127$80$167$48$34$20$1.77$0.49202120222023202420252026

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

Liquidations every month, by sizeLoans closed by bots each month, by loan size, January 2021 to Sep 22, 2026$100 or moreUnder $100, Aave v2Under $100, Compound v2Under $100, other lenders02,5005,0007,50010,000202120222023202420252026Aave's own clean-up

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

ContractAddress
Aave v2 LendingPool0x7d27…c7a9
Aave v3 Pool0x8787…a4e2
ClinicStewardV20x6a14…6b56
Aave Collector0x464c…e18c
Busiest bot since 20250xf057…0004
Run it yourself

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.

List today's liquidations on Aave, Morpho or SparkRank the busiest liquidation bots over any periodTrace where a bot sends what it seizedCheck the gas a bot paid per liquidation
Explore Bitquery MCP Figures measured September 24, 2026, against Bitquery's Ethereum data, January 2021 to September 22, 2026. Written by Bitquery Research; AI tools ran the queries and drafted the text, and every figure was worked out again from the data before publishing.
Scope, limits and attribution

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.