Sub topic 3
Liquidations: protecting the system when collateral falls
This chapter assumes you know what a stablecoin peg is, how a loan can be overcollateralized, and how supply and demand set prices.
Liquidations: protecting the system when collateral falls
In a crypto-backed stablecoin, a user locks collateral, such as ETH, and mints tokens against it. If the collateral's value drops too far, the debt is no longer safe. A liquidation sells or transfers that collateral to repay the debt, which keeps the system solvent. The liquidator usually receives a bonus for doing this.
The code below computes the collateral ratio and the liquidation price for 10 ETH backing 10,000 minted tokens, with a 150% minimum ratio.
def collateral_ratio(collateral_amount, collateral_price, debt_usd):
return collateral_amount * collateral_price / debt_usd
def liquidation_price(collateral_amount, debt_usd, min_ratio):
return debt_usd * min_ratio / collateral_amount
print(collateral_ratio(10, 3000, 10_000)) # 3.0
print(liquidation_price(10, 10_000, 1.5)) # 1500.0Commodity-backed stablecoins
A commodity-backed stablecoin is tied to a physical asset, usually gold, held in a vault. Each token represents a claim on a set amount of that commodity. Its risks resemble those of fiat-backed designs, plus storage and custody risk and the price swings of the commodity itself.
Algorithmic stablecoins and why they are fragile
An algorithmic stablecoin has no reserve of outside assets. It tries to hold the peg by expanding or shrinking supply, often with a second token that absorbs value. When demand falls, the design can enter a death spiral: holders sell, the price drops, and the system issues more of the second token, which also loses value. Without outside collateral, nothing stops the loop.
When the peg breaks: causes and past examples
Depegs usually come from a few causes: doubts about reserves, a fall in collateral value, a failed redemption mechanism, or a large, sudden sell-off. TerraUSD (UST) lost its peg in May 2022 after its algorithmic design failed under heavy redemptions and fell far below $1. USDC dropped to about $0.88 in March 2023 after its issuer disclosed that some reserves sat at a failed bank.
Regulation and what it targets
Regulators focus on reserves and redemption rights. They ask whether each token is backed by enough liquid assets, whether holders can redeem at par, and whether reserve reports come from independent checks. Rules differ by country, so confirm the requirements where you live.
Exercise
A position holds 5 ETH and has minted 6,000 tokens against it. The minimum ratio is 150%. At what ETH price does the position become liquidatable?
Show answer
liquidation_price = 6000 * 1.5 / 5 = 1800. The position becomes liquidatable when ETH falls to $1,800.