How do stablecoins work: fiat-backed, crypto-backed and algorithmic? · Jumpstart Blockchain
How do stablecoins work: fiat-backed, crypto-backed and algorithmic?
Fiat-backed coins like USDC hold cash and Treasuries and redeem 1:1, crypto-backed coins like DAI lock surplus collateral that is liquidated if prices fall, and algorithmic coins rely on supply rules, as Terra's collapse showed.
A stablecoin is a token designed to stay worth a fixed amount, usually one US dollar. What keeps it there is a promise of redemption plus arbitrage. Fiat-backed coins such as USDC and USDT are issued by a company that holds cash and short-term government debt and redeems tokens for dollars. Crypto-backed coins such as DAI are minted against more crypto collateral than they are worth, locked in smart contracts that liquidate it if prices fall. Algorithmic coins try to hold the peg with supply rules and a second token instead of full collateral, and the best-known example, TerraUSD, collapsed in 2022. Each design trades off a different risk: trusting an issuer, surviving a market crash, or relying on market confidence alone.
Why does a stablecoin stay at $1?
Every design relies on the same loop. If the token trades below $1, someone can buy it cheaply and redeem it (or use it to repay a debt) for a full dollar of value, which pushes the price back up. If it trades above $1, someone can create new tokens for a dollar of value and sell them for more, which pushes the price down. The peg holds as long as people believe that redemption or creation path works, at scale, during stress.
So the useful question about any stablecoin is: what exactly can I exchange one token for, who guarantees it, and what happens if everyone tries at once?
Fiat-backed stablecoins
This is the simplest model and by far the largest by supply.
An approved customer, usually a business that has passed identity checks, sends dollars to the issuer.
The issuer mints the same number of tokens to the customer's address.
To exit, the customer sends tokens back; the issuer burns them and wires dollars.
The issuer keeps the reserves in bank deposits, short-dated US Treasury bills and similar instruments, and earns the interest.
Ordinary users rarely redeem directly. They trade on exchanges, and the approved customers do the arbitrage that keeps the market price close to $1.
The token contract itself is an ordinary ERC-20 (or the equivalent on each chain), much like a standard OpenZeppelin token, with extra powers for the issuer: minting, burning, pausing, and individual addresses, typically at the request of law enforcement. On , USDC's contract exposes and Tether's exposes .
Attackers move a pool's spot price, often with a flash loan, so a protocol lends or liquidates at a false price. A TWAP averages price over many blocks, making that costly, but thin liquidity and multi-block MEV still weaken it.
Reserve quality and access. In March 2023 Circle disclosed that $3.3 billion of USDC's reserves sat at Silicon Valley Bank when it failed. USDC briefly traded around 88 cents until US authorities guaranteed the bank's deposits, then returned to $1.
Issuer and regulatory risk. A company, its banks and its regulators can pause or freeze tokens.
Transparency. Issuers publish attestations of their reserves, which are less thorough than a full audit.
Regulation now defines much of this model. The EU's MiCA rules for stablecoins have applied since June 2024. In the US, the GENIUS Act, signed in July 2025, requires payment stablecoin issuers to hold reserves 1:1 in cash and high-quality liquid assets such as short-term Treasuries and to publish monthly reserve reports. Its requirements take effect by January 2027 at the latest, and regulators were still finalising the detailed rules at the time of writing.
Crypto-backed stablecoins
Crypto-backed coins replace the company with smart contracts and replace dollars in a bank with on-chain collateral. Because that collateral is volatile, they are overcollateralised.
The model popularised by MakerDAO (rebranded as Sky in 2024, which issues USDS alongside the original DAI) works like a secured loan:
You lock collateral, say $15,000 of ETH, in a vault contract.
You mint stablecoins against it, up to a limit set by the collateralisation ratio. At 150%, that is at most $10,000 of DAI.
You pay a stability fee (interest) on the debt.
If ETH falls far enough that your collateral is worth less than 150% of the debt, anyone can trigger a liquidation: the protocol sells your collateral, repays the debt and charges a penalty.
To get your ETH back, you repay the DAI, which is burned.
Every DAI in circulation therefore corresponds to debt backed by more than a dollar of collateral. The peg is enforced by liquidations and by the incentive to repay cheap DAI when it trades below $1.
Other designs tighten the mechanism. Liquity lets anyone redeem its stablecoin for exactly $1 of the underlying ETH (minus a fee), creating a hard price floor without any governance. Many crypto-backed systems also hold other stablecoins: Maker's Peg Stability Module swaps DAI 1:1 for USDC, which keeps the peg tight but means a large share of DAI's backing has at times been a fiat-backed coin.
The risks are on-chain:
Risk
What it looks like
Crash speed
If prices fall faster than liquidations can run, the system takes bad debt.
Oracle failure
Liquidations depend on price feeds; a wrong price liquidates healthy vaults or protects unhealthy ones.
Smart contract bugs
A flaw in the vault or liquidation code can drain collateral.
Collateral concentration
Backing that is mostly another stablecoin inherits that coin's issuer risk.
Algorithmic designs try to hold the peg with supply rules instead of full collateral. The common version pairs the stablecoin with a volatile "share" token:
When the stablecoin is above $1, the protocol lets you burn $1 of the share token to mint one stablecoin, increasing supply.
When it is below $1, you can burn one stablecoin to mint $1 worth of the share token, reducing supply.
TerraUSD (UST) worked this way with LUNA. It held its peg while demand grew, helped by high yields paid on UST deposits. In May 2022 large withdrawals pushed UST below $1. Holders burned UST for LUNA and sold the LUNA, which crashed its price, which meant each redemption minted ever more LUNA. The loop ran in reverse: a death spiral. UST fell far below a dollar and tens of billions of dollars of value disappeared within days.
The lesson is structural. If the only thing backing a stablecoin is a token whose value depends on confidence in that same stablecoin, the backing evaporates exactly when it is needed. After Terra, most "algorithmic" projects added real collateral or shut down. Frax, for example, began as partly algorithmic and later moved to full collateralisation.
What about synthetic dollars?
A newer category, such as Ethena's USDe, holds crypto like staked ETH and opens an equal short position in perpetual futures, so the combined position is roughly dollar-neutral. Its yield comes from staking rewards and funding payments. It is not a promise of dollar redemption from a bank, and its risks are different: funding rates turning negative for long periods, the exchanges that hold the hedges, and custody of the collateral. Treat these as their own category, not as fiat-backed coins.
Comparing the designs
Fiat-backed
Crypto-backed
Algorithmic
Examples
USDC, USDT, PYUSD
DAI, USDS, LUSD
UST (failed), early Frax
Backing
Cash and Treasuries held by a company
On-chain crypto, overcollateralised
A second token and supply rules
Who you trust
Issuer, banks, regulators
Smart contracts, oracles, governance
Market confidence
Can be frozen
Yes, per address
Usually no (but collateral may include freezable coins)
Usually no
Main failure mode
Reserve loss, regulation, freezing
Crash outpacing liquidations, bugs
Death spiral
Capital efficiency
1:1
Below 1:1 for the borrower
Highest, until it fails
What developers need to know when integrating stablecoins
Decimals differ. On Ethereum, USDC and USDT use 6 decimals, while DAI uses 18. Hard-coding 18 turns $1 of USDC into a trillionth of a dollar in your maths. Always read decimals():
Not every token follows ERC-20 exactly. Tether's Ethereum contract doesn't return a bool from transfer, and its approve reverts if you change a non-zero allowance to another non-zero value. Use OpenZeppelin's SafeERC20 (safeTransfer, forceApprove) rather than calling the token directly. The risks of ERC-20 approvals apply to stablecoins as much as any token.
Freezes and pauses can block your contract. If an issuer freezes an address your protocol depends on, or pauses the token, transfers to or from it revert. Design withdrawals so one blocked recipient can't trap everyone else's funds.
Bridged is not native. "USDC" on a chain may be the issuer's native deployment or a wrapped copy held by a bridge, with different redemption rights and an extra layer of risk. Check the issuer's published contract addresses, and read how bridge hacks happen before treating a bridged copy as equivalent.
Don't assume $1. Pricing a stablecoin at a constant 1.00 in a lending protocol means a depeg lets borrowers repay with cheap tokens or borrow against overvalued ones. Use a price feed and set a sensible deviation threshold.
Summary
Stablecoins hold their peg through redemption or creation paths that arbitrageurs use when the price drifts.
Fiat-backed: an issuer holds dollars and Treasuries 1:1; simple and liquid, but centralised and freezable.
Crypto-backed: smart contracts hold more collateral than the debt and liquidate it when prices fall; transparent, but exposed to crashes, oracles and bugs.
Algorithmic: supply rules and a second token instead of full collateral; Terra's collapse showed how this fails under stress.
When integrating one, read decimals(), use SafeERC20, plan for freezes, verify native contract addresses and never hard-code the price.
Auditors review a frozen commit for days or weeks, combining manual review with tools, then report findings by severity and check your fixes. Prepare with a scope document, invariants, strong tests and a clean Slither run.
A subgraph maps contract events to GraphQL entities that The Graph indexes and serves. A custom indexer backfills logs over RPC into your own database, with idempotent writes and reorg handling. Pick by query and control needs.