🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Stablecoins

DeFi AdvancedđŸŸĸ Free Lesson

Stablecoins

Fiat-backed (USDT, USDC), crypto-backed (DAI), algorithmic stablecoins, seigniorage, stability mechanisms, and regulatory concerns.

Overview

Stablecoins are cryptocurrencies designed to maintain a stable value relative to a reference asset, typically the US dollar.

Stablecoin Categories

Stablecoin TypesFiat-BackedUSDT, USDC, BUSD1:1 USD reservesCentralized issuerAudited reserves$150B+ market capCrypto-BackedDAI, LUSD, MIMOver-collateralizedSmart contractsDecentralized$5B+ market capAlgorithmicUST, USDN, USDDSupply expansionSeigniorageFragile mechanisms$1B+ (volatile)Commodity-BackedPAXG, XAUT, XAUtGold-backedPhysical reservesRedeemable$500M+ market capStablecoin Market Overview (2024)Total Market Cap: 80B+ | Dominance: USDT (70%), USDC (20%)Top Use Cases: Trading pairs, remittances, DeFi collateral, paymentsKey Chains: Ethereum, Tron, BSC, Solana, Arbitrum, Polygon⚠ Regulatory Risk: SEC scrutiny, MiCA regulations, banking licenses

Fiat-Backed Stablecoins

USDT (Tether)

// Simplified USDT contract
contract TetherUSD is ERC20 {
    address public owner;
    mapping(address => bool) public blacklisted;
    mapping(address => bool) public roles;  // 0=owner, 1=pauser, 2=blacklister
    
    constructor() ERC20("Tether USD", "USDT") {
        owner = msg.sender;
    }
    
    function mint(address to, uint256 amount) external {
        require(roles[msg.sender], "Not authorized");
        _mint(to, amount);
    }
    
    function burn(uint256 amount) external {
        require(roles[msg.sender], "Not authorized");
        _burn(msg.sender, amount);
    }
    
    function blacklist(address account) external {
        require(roles[msg.sender] && roles[msg.sender] == 2, "Not blacklister");
        blacklisted[account] = true;
    }
    
    // Freeze, unfreeze, pause capabilities
}

USDC (Circle)

FeatureUSDTUSDC
IssuerTether LimitedCircle
ReservesMixed (bills, bonds, crypto)Cash + US Treasuries
TransparencyQuarterly reportsMonthly attestation
Chains15+15+
RegulationMinimalStrong compliance
Depeg RiskHigherLower

Reserve Composition

USDC Reserves (2024):

  • 80% US Treasury Bills
  • 20% Cash at banks
  • Monthly attestation by Deloitte

USDT Reserves (2024):

  • 65% US Treasury Bills
  • 15% Commercial Paper
  • 10% Money Market Funds
  • 10% Other (crypto, secured loans)

Crypto-Backed Stablecoins

DAI (MakerDAO)

DAI Stability MechanismUser DepositsETH/WBTC/etc.150% collateralVault (CDP)Collateral lockedDebt positionDAI Minted1 DAI = $1Stable valueStability Mechanismsâ€ĸ Target Price: $1.00 via Target Rate Feedback Module (TRFM)â€ĸ Liquidation: Vaults below 150% ratio are liquidated (13% penalty)â€ĸ Stability Fee: Interest rate on debt (variable, ~8% APY)â€ĸ Emergency Shutdown: Governance can freeze system if compromised

MakerDAO Vault System

// Simplified Vault logic
contract Vault {
    address public owner;
    uint256 public collateralDeposited;
    uint256 public daiDebt;
    uint256 public liquidationRatio = 150;  // 150%
    
    function openVault(uint256 collateralAmount, uint256 daiAmount) external {
        require(
            (collateralAmount * 1e18 * 100) / daiAmount >= liquidationRatio,
            "Insufficient collateral"
        );
        collateralDeposited = collateralAmount;
        daiDebt = daiAmount;
    }
    
    function isLiquidatable() public view returns (bool) {
        uint256 collateralValue = collateralDeposited * getCollateralPrice();
        return (collateralValue * 100) / daiDebt < liquidationRatio;
    }
    
    function liquidate() external {
        require(isLiquidatable(), "Not liquidatable");
        // Transfer collateral to liquidator minus 13% penalty
        // Burn DAI debt
    }
}

DAI vs USDC

AspectDAIUSDC
CollateralCrypto (volatile)Fiat (stable)
DecentralizationHighLow
Censorship ResistantYesNo
Capital Efficiency150%+100%
YieldStability feeNone
RiskLiquidation riskCounterparty risk

Algorithmic Stablecoins

Seigniorage Model

Algorithmic Stablecoin MechanismPrice > $1.00Mint stablecoinSell for profitSupply increasesPrice = $1.00Target reachedEquilibriumPrice < $1.00Burn stablecoinBuy bond/sharesSupply decreases⚠ Death Spiral: Price drops → More selling → More minting → Further price dropsUST/LUNA Collapse (May 2022): $40B+ destroyed in days

UST Death Spiral Analysis

When UST depegged:

  1. Users burned UTV for LUNA → LUNA supply inflated
  2. LUNA price dropped → More LUNA needed per UST
  3. More selling pressure → More depegging
  4. Death spiral completed in 3 days

Algorithmic Stablecoin Comparison

ProjectMechanismStatusFailure Mode
USTseigniorage + LUNAFailedDeath spiral
USDNWaves collateralStrugglingDepeg risk
USDDOver-collateralizedActiveBetter collateral
FRAXPartial collateralActiveHybrid model
MIMCrypto-backedActiveMakerDAO-like

Stability Mechanisms

Peg Stability Module (PSM)

// PSM: Swap between stablecoins at $1
contract PSM {
    IERC20 public usdc;
    IERC20 public dai;
    
    function swapUSDCForDAI(uint256 amount) external {
        usdc.transferFrom(msg.sender, address(this), amount);
        dai.transfer(msg.sender, amount);
        // 1:1 swap, no slippage
    }
    
    function swapDAIForUSDC(uint256 amount) external {
        dai.transferFrom(msg.sender, address(this), amount);
        usdc.transfer(msg.sender, amount);
    }
}

Stability Comparison

MechanismHow It WorksRisk
Reserve Backing1:1 asset backingCounterparty risk
Collateralized DebtOver-collateralized loansLiquidation risk
SeigniorageSupply expansion/contractionDeath spiral
AlgorithmicSmart contract rebasingDepeg risk
HybridMultiple mechanismsComplexity

Real-World Examples

Stablecoin Market Share (2024)

StablecoinMarket CapChainCollateral
USDT$120BTron, ETHFiat
USDC$32BETH, SolanaFiat
DAI$5BETHCrypto
FDUSD$4BETH, BSCFiat
FRAX$1BETH, ArbHybrid
TUSD$2BETH, BSCFiat

Stablecoin Use Cases

Use CaseVolumeDominant Coin
Trading Pairs$50B/dayUSDT
Remittances$10B/dayUSDT, USDC
DeFi Collateral$20B TVLDAI, USDC
Payments$5B/dayUSDC, BUSD
Savings Yield$5B TVLDAI, FRAX

Trade-offs

Centralization vs Decentralization

AspectCentralized (USDC)Decentralized (DAI)
Regulatory ComplianceHighLow
Censorship RiskHighLow
Capital Efficiency100%150%+
TransparencyAuditsOn-chain
Counterparty RiskYesNo
ComplexityLowHigh

Collateral Efficiency

ProtocolRatioCapital Efficiency
USDC100%Highest
DAI150%Medium
Liquity110%High (crypto)
RAI150%Medium

Interview Questions

  1. How does DAI maintain its peg without fiat reserves?

    • Answer: Through over-collateralized vaults, liquidation mechanisms, stability fees, and the Peg Stability Module (PSM) that allows 1:1 swaps with USDC.
  2. What caused the UST/LUNA collapse and how could it have been prevented?

    • Answer: Insufficient collateral, reflexive minting mechanism, and lack of circuit breakers. Better collateralization and pause mechanisms could have limited damage.
  3. Why do regulators prefer fiat-backed stablecoins over algorithmic ones?

    • Answer: Clear reserve requirements, identifiable issuers, audit trails, and lower risk of catastrophic failure that could destabilize markets.

Quiz Questions

  1. What is the minimum collateralization ratio for a DAI vault?

    • A) 100%
    • B) 130%
    • C) 150% ✓
    • D) 200%
  2. Which stablecoin uses a dual-token (seigniorage) model?

    • A) USDT
    • B) USDC
    • C) UST ✓
    • D) DAI
  3. What is the Peg Stability Module (PSM)?

    • A) A liquidation engine
    • B) A 1:1 swap mechanism ✓
    • C) A collateral vault
    • D) A governance system

Practice

  1. Build a simple collateralized stablecoin with liquidation
  2. Implement a PSM that swaps between two stablecoins
  3. Create an algorithmic rebasing token
  4. Analyze historical depeg events and their causes
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-09-22

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Related Tutorials

Content with similar topics across other courses

Need Expert Blockchain Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement