Sub topic 11
Stablecoins and How They Try to Hold a Peg
This chapter assumes you know what a token is (from the previous chapters on coins versus tokens and altcoin categories), that Ethereum smart contracts can hold and move assets, and that you can read short Python snippets. It is educational and gives no investment advice.
What a stablecoin is
A stablecoin is a token designed to keep a steady price against a reference asset, most often one US dollar. The reference price is called the peg. Bitcoin and ether move a lot in price. A stablecoin tries to remove that movement so people can use it as a unit of account, a payment medium, or a place to park value between trades.
A peg is a target, not a guarantee. The token trades on markets like any other asset, so its market price can drift above or below the target. Every stablecoin design is a different answer to one question: what makes people willing to buy the token at $1.01 and sell it at $0.99, so the price returns to $1.00?
The two forces that hold a peg
Most pegs depend on two mechanisms working together.
- Redemption. The issuer or a smart contract promises to swap one token for one dollar's worth of collateral. If the market price falls below $1, a trader can buy the token cheaply and redeem it at full value. This buying pushes the price back up.
- Minting. If the market price rises above $1, a trader can deposit a dollar's worth of collateral, create new tokens, and sell them at the higher price. This selling pushes the price back down.
The profit from these trades is called arbitrage. It only works if redemption and minting are open to the trader, cheap, and trusted. Many peg failures are failures of one of these conditions.
Four common designs
Fiat-backed
A company holds reserves in bank deposits, short-term government debt, and similar assets. It issues one token per dollar of reserves. Users redeem through the company, usually after identity checks and often only above a minimum size. Examples include USDT (Tether) and USDC (Circle).
Strengths are simplicity and, when reserves are sound, a tight peg. The costs are trust and centralization. You rely on the issuer to hold the reserves it claims, on the banks holding them, and on the issuer's willingness to redeem. Issuers can also freeze tokens at specific addresses. This is a design feature that complies with law enforcement, and it is also a censorship risk.
Crypto-collateralized
A smart contract accepts volatile crypto, such as ether, as collateral and lets users borrow stablecoins against it. DAI, issued by the Maker protocol (now branded Sky), is the best-known example. Because the collateral can fall in value, the system requires overcollateralization. A user might need to lock $150 of ether to borrow $100 of stablecoin.
If the collateral value falls toward the debt, the contract liquidates the position. It sells the collateral automatically to repay the debt. No company holds reserves, but the design depends on correct code, working price feeds (called oracles), and liquidations that run smoothly even when the network is congested and prices fall fast.
Commodity-backed
These tokens track an asset such as gold, with a custodian holding the physical metal. They work like fiat-backed tokens, with the same custody and audit questions. Their price follows the commodity, not a dollar, so they are not "stable" in dollar terms.
Algorithmic
Algorithmic designs try to hold the peg with rules and incentives and little or no hard collateral. A common pattern pairs the stablecoin with a second, volatile token. The protocol lets users swap one unit of stablecoin for one dollar's worth of the second token. Arbitrage then depends on confidence in the second token's price.
This creates a reflexive loop. If the stablecoin slips below $1, traders redeem it for the second token and sell that token. The second token's price falls, so each redemption is worth less, and confidence drops further. This is a death spiral. TerraUSD (UST) followed this path in May 2022 and lost its peg, and its sister token LUNA fell to almost nothing within days. Since then, "algorithmic" has been a warning label rather than a selling point. Some newer designs add real collateral or other backing, which moves them toward the categories above.
| Design | What backs it | Main trust assumption | Typical failure mode |
|---|---|---|---|
| Fiat-backed | Bank deposits and government debt | Issuer is honest and solvent, banks are safe | Reserve losses, bank failure, frozen redemptions |
| Crypto-collateralized | Overcollateralized crypto in contracts | Code, oracles, and liquidations work | Fast price crashes, oracle errors, bad debt |
| Commodity-backed | Physical goods held by a custodian | Custodian holds the goods | Missing or unaudited reserves |
| Algorithmic | Incentives and a companion token | Market confidence stays high | Death spiral and loss of peg |
Worked example: peg arbitrage
Suppose a fiat-backed stablecoin trades at $0.98 and you can redeem at $1.00 with a fee of $0.003 per token. Ignoring trading costs, the profit per token is about 1.00 − 0.98 − 0.003 = $0.017. That is roughly 1.7% on the amount spent.
Real traders face limits. Redemption may need a minimum size, bank hours, or approved accounts. Those frictions keep the discount open longer than the simple model predicts. A wider gap can signal that people doubt the redemption promise.
The following Python code models the collateral ratio of a crypto-collateralized loan and finds the price at which it becomes eligible for liquidation.
def collateral_ratio(collateral_amount, collateral_price, debt):
return collateral_amount * collateral_price / debt
def liquidation_price(collateral_amount, debt, min_ratio):
return debt * min_ratio / collateral_amount
collateral_amount = 10.0 # ETH locked
debt = 10_000.0 # stablecoin borrowed
min_ratio = 1.5 # required collateral ratio
start_price = 2_500.0 # USD per ETH
print(collateral_ratio(collateral_amount, start_price, debt))
print(liquidation_price(collateral_amount, debt, min_ratio))The first line prints 2.5, a ratio of 250%. The second prints 1500.0. If ether drops from $2,500 to $1,500, the position falls to the 150% minimum and can be liquidated. The example prices are illustrative, not market data.
What can go wrong
- Depegging. The price moves away from the target and stays there. A reserve scare or a loss of confidence can cause it. Even small gaps matter to holders who need to exit at a fixed value.
- Reserve quality. "Backed one-to-one" says nothing about what the reserves are. Cash, short-term government debt, loans to other firms, and other crypto carry very different risks. Look for regular attestations or audits and a breakdown of the assets.
- Bank and custody exposure. Reserves held at one bank are exposed if that bank fails. In March 2023, USDC briefly fell below $0.90 after its issuer disclosed that part of its cash sat at Silicon Valley Bank. It recovered once the exposure was resolved.
- Smart contract and oracle risk. For on-chain designs, a bug or a wrong price feed can mint bad debt or trigger unfair liquidations.
- Issuer control and regulation. Issuers can freeze addresses. Rules on reserves, licensing, and redemption rights differ by country and keep changing.
- Inflation. A stablecoin holds one number steady in dollars. Like the dollar, it loses purchasing power over time, and it pays no interest unless a platform adds that separately.
Why stablecoins matter in this tutorial
Stablecoins are tokens, not new base layers. Most run on existing networks such as Ethereum, which links them to the fee and security topics you have seen. They are also a large share of trading and transfer activity, because they give exchanges and apps a dollar-like unit without a bank account.
When you apply the comparison framework in the final chapter, treat a stablecoin differently from bitcoin or ether. Ask what backs it, who can redeem, how often reserves are checked, and who can freeze funds. Price history is a weak signal, since a stable price tells you nothing about the cause of the stability. Supply and monetary policy questions also change: a stablecoin supply expands and contracts with demand, not on a fixed schedule like Bitcoin's.
Summary
- A stablecoin targets a fixed price, and the peg is held by redemption and minting arbitrage.
- Fiat-backed coins trade decentralization for simplicity, crypto-collateralized coins trade capital efficiency for safety margins, and algorithmic coins rely on confidence that can vanish quickly.
- Evaluate reserves, redemption rights, issuer powers, and stress behavior, not just the recent price chart.
Exercise
A crypto-collateralized stablecoin requires a minimum collateral ratio of 150%. A user locks 20 ETH and borrows 15,000 stablecoin units. At what ETH price (in USD) does the position reach the liquidation threshold, and what is its ratio when ETH trades at $1,800?
Show answer
The liquidation price is debt × min_ratio / collateral = 15,000 × 1.5 / 20 = $1,125 per ETH. At $1,800 the ratio is 20 × 1,800 / 15,000 = 2.4, or 240%, which is safely above the 150% minimum.
Exercise
Explain why an algorithmic stablecoin paired with a volatile companion token is vulnerable to a death spiral, while a fully reserved fiat-backed stablecoin is not vulnerable in the same way.
Show answer
In the algorithmic design, redemption pays out the companion token. When the stablecoin falls below the peg, redemptions create more companion tokens, which holders sell. The companion token's price falls, so redemption is worth less, which weakens confidence in the peg and triggers more redemptions. In a fully reserved fiat-backed design, redemption pays out reserve assets that do not depend on the stablecoin's own demand, so selling pressure does not reduce the value of what redeemers receive. It can still fail if the reserves are missing, risky, or frozen.