When asked: How can on-chain lending get liquidated?
I usually answer like this: If the price of the collateral falls too quickly and liquidation can't be completed in time, the remaining collateral may not be enough to repay the debt, leaving the protocol with bad debt. Liquidations are generally carried out by off-chain programs: they continuously monitor on-chain positions and immediately submit a liquidation transaction as soon as the health factor drops below 1.
$COMP 17.26 (+1.53%)
If anything is unclear, leave a comment and ask.