How to Build a Liquidation Bot for Aave and Compound

Liquidation bots monitor undercollateralized loans on Aave, Compound, and other DeFi lending protocols. When a position drops below the liquidation threshold, your bot earns a 5-10% bonus. Step-by-step guide with Solidity and Python.