How Does Liquidation Occur in a CDP and What Is Its Purpose?
Liquidation occurs when the collateralization ratio of a CDP falls below the minimum threshold set by the smart contract, typically due to a drop in the collateral's market price. The smart contract automatically allows liquidators to buy the under-collateralized collateral at a discount to repay the outstanding debt.
The purpose is to maintain the solvency of the system and protect the peg of the synthetic asset. By forcing the repayment of debt, the system ensures that the total value of collateral always exceeds the total debt.