Correct. The liquidity pool is a smart contract that accepts collateral + trade and stores liquidation threshold. If collateral ratio falls, a bot can trigger liquidation by calling smart contract, smart contract verifies that threshold has been breached, and if so will liquidate collateral to buy back asset.