The liquidation engine: how bots race to your position
Every lending position that approaches its threshold enters a race: liquidation
bots monitor health factors continuously, and the first to act repays part of
the debt and seizes collateral plus a penalty. The race is the protocol's
enforcement mechanism - automated, permissionless, and indifferent to the
borrower's timing. Understanding the engine explains why positions die at
specific prices, why some liquidations look punitive, and why the bots always
seem faster than the humans.
The mechanics of the race
- Threshold crossing: a position's collateral value falls relative to its
debt past the liquidation threshold - the protocol marks it eligible
- Monitoring: liquidation bots watch eligible and near-eligible positions
continuously, across protocols, reacting to price feeds faster than any
human refreshes a dashboard
- The claim: the first bot to submit a liquidation transaction repays a
portion of the debt and seizes collateral - plus a penalty, the
liquidation bonus, usually 5 to 15 percent of the seized value
- The sale: the seized collateral is sold - often immediately into market
liquidity - realizing the debt repayment and the bonus
- The remainder: whatever survives the process returns to the borrower - if
anything does
Why bots win the race
- Speed: bots execute in the same blocks prices move; humans act minutes to
hours later, and the threshold crossing is already old news by then
- Coverage: professional liquidators watch hundreds of positions across dozens
of protocols; a borrower watching one position is one eye against a fleet
- Economics: the bonus pays for gas, infrastructure, and risk - the race is
professionally funded, and the competition for profitable liquidations is
fierce enough that any eligible position attracts immediate attention
- Information: bots read the same oracle prices the protocol uses; borrowers
often watch different venues and see the threshold later than the engine does
What the race costs the borrower
- The penalty: the liquidation bonus is value transferred from the borrower's
collateral to the liquidators - compensation for their speed and risk, paid
entirely by the position
- The timing: liquidation fires at the threshold price, not at a better
recovery price - the engine sells when eligible, not when optimal
- The cascade effect: in market-wide declines, thousands of positions become
eligible at once; bots prioritize the most profitable, and the least
liquidated positions - thin collateral, awkward sizes - suffer the worst
outcomes
What borrowers can do inside the race
- Monitor health against the protocol's own price source - the oracle, not
your trading screen - and alert well before the threshold
- Add collateral or repay early: de-risking before eligibility is the only
move that beats the bots on timing
- Self-liquidate: flash-loan repayment plus market sale captures the spread
the liquidation bonus would have taken - one transaction, atomic, before
any bot claims
- Choose collateral and thresholds with the race in mind: liquid collateral
and conservative ratios reduce both the probability and the cost of being
raced
The takeaway
The liquidation engine is a permissionless race: bots monitor thresholds,
claim eligible positions first, and collect penalties for their speed. Borrowers
lose the timing race by design - the counter-moves are monitoring the protocol's
own prices, de-risking before eligibility, or self-liquidating atomically. The
engine is not broken; it is working exactly as designed. The positions that
survive are the ones whose owners understood the race before crossing the line.