defi

What Is MakerDAO and How DAI Is Created

Learn what MakerDAO is and how DAI stablecoin is created using over-collateralized vaults on Ethereum. A beginner-friendly guide with practical examples.

What Is MakerDAO and How DAI Is Created

MakerDAO is a decentralized protocol on Ethereum that allows users to create the stablecoin DAI by locking up collateral in smart contracts called Vaults. DAI is designed to maintain a soft peg to the US dollar, making it a reliable medium of exchange in decentralized finance (DeFi). This article explains how MakerDAO works, the step-by-step process of creating DAI, and the mechanisms that keep it stable.

The Role of MakerDAO in Decentralized Finance

MakerDAO is one of the oldest and most influential protocols in DeFi. It functions as a decentralized autonomous organization (DAO) — a community-governed system where decisions are made by holders of the MKR token. The protocol consists of three main components:

  • The Maker Protocol: a set of smart contracts that manage collateral, issue DAI, and handle liquidations.
  • The DAI stablecoin: a soft-pegged stablecoin that aims to trade near $1.
  • The MKR governance token: used by holders to vote on risk parameters, collateral types, and protocol upgrades.

By eliminating central intermediaries, MakerDAO allows anyone with an internet connection and eligible collateral to generate DAI without needing a bank account or credit check. This permissionless access is a core principle of DeFi.

For a deeper look at the protocol’s architecture, refer to the official MakerDAO documentation.

How DAI Is Created Through Collateralized Debt Positions

DAI is not mined or printed — it is created by users who lock up collateral in a Maker Vault (formerly known as a Collateralized Debt Position, or CDP). The process is straightforward:

  1. Choose a collateral type – Currently supported assets include Ether (ETH), Wrapped Bitcoin (WBTC), and several other ERC-20 tokens.
  2. Deposit collateral – You send the chosen asset into a Vault smart contract.
  3. Generate DAI – The contract mints DAI proportional to the value of your collateral, subject to a minimum collateralization ratio (e.g., 150% for ETH).
  4. Use the DAI – You can now transfer, trade, or lend the DAI anywhere in the crypto ecosystem.
  5. Repay to unlock – When you want your collateral back, you must return the borrowed DAI plus a stability fee (a variable rate set by governance). The Vault then burns the DAI and releases your collateral.

💡 Pro Tip: Before opening a Vault, check the current stability fee and liquidation ratio on the MakerDAO Risk Dashboard. A sudden drop in collateral value can trigger liquidation if your ratio falls below the threshold.

Practical Example: Creating DAI with ETH

Imagine you own ETH and want to borrow DAI to participate in a yield farming opportunity. You deposit ETH worth, say, 1.5 times the amount of DAI you wish to generate. The Vault locks your ETH, and the protocol mints the requested DAI. As long as your collateral value stays above the liquidation threshold (usually 145–150% depending on the asset), you can keep the DAI. If ETH’s price drops significantly, you would need to add more ETH or repay some DAI to avoid automated liquidation, which incurs a liquidation penalty.

The table below summarizes common collateral types and their typical characteristics:

Collateral TypeTypical CollateralizationNotes
ETH150%Most liquid, widely accepted
WBTC150%Brings Bitcoin value into DeFi
USDC101% (via PSM)Almost no price risk, but centralization concerns

The Stability Mechanism: How DAI Maintains Its Peg

Keeping DAI at a stable value near $1 is no small feat. MakerDAO uses several tools to manage supply and demand:

  • Stability Fees – Users pay a variable fee when they close a Vault. By increasing the fee, governance makes borrowing DAI more expensive, reducing supply. Lowering the fee encourages borrowing, increasing supply.
  • The Peg Stability Module (PSM) – This smart contract allows users to swap USDC, USDP, or GUSD directly for DAI at a 1:1 rate (with a small fee). If DAI trades above $1, arbitrageurs buy it on exchanges and use the PSM to convert it to USDC at a profit, pushing DAI down. If DAI trades below $1, they buy cheap DAI on exchanges and sell it to the PSM for stablecoins, pushing DAI up.
  • Global Settlement – As a last resort, the protocol can halt all operations and force all Vaults to settle at current prices, effectively unwinding the system in an orderly way.

These mechanisms work together to keep DAI within a narrow range around $1, even during market volatility. For example, during a market crash, the protocol raises stability fees to discourage new DAI creation while liquidations reduce the circulating supply — a self-correcting feedback loop.

Governance and Risks of Using MakerDAO

MakerDAO is governed by MKR token holders who propose and vote on changes to risk parameters. Key governance decisions include:

  • Adding new collateral types (e.g., real-world assets or tokenized stocks)
  • Adjusting stability fees and debt ceilings
  • Upgrading the protocol’s smart contracts

While this decentralized governance makes the system resilient to censorship, it also introduces several risks:

  1. Liquidation risk – If your Vault’s collateral value drops too fast, it may be liquidated before you can react. To avoid this:
    • Maintain a comfortable buffer above the minimum ratio.
    • Set up price alerts for your collateral asset.
    • Consider using a refinancing service like Oasis.app to monitor your position.
  2. Smart contract risk – Bugs or exploits in the Maker Protocol code could lead to loss of funds. The protocol has been audited repeatedly, but no software is immune to vulnerabilities.
  3. Governance attacks – If a malicious actor accumulates enough MKR, they could manipulate risk parameters to their advantage. The protocol’s security relies on a widely distributed voter base.

Despite these risks, MakerDAO has operated since 2017 with no major breaches, and its open-source code has been battle-tested through multiple market cycles.

Conclusion

MakerDAO is a foundational piece of decentralized finance that enables the creation of the DAI stablecoin through over-collateralized Vaults. By locking up assets like ETH, users can generate DAI for lending, trading, or everyday use, all without needing a bank. The protocol’s stability mechanisms — including stability fees, the Peg Stability Module, and governance — have kept DAI reliably pegged to the dollar even during extreme market events. Whether you are a beginner exploring DeFi or an experienced user looking for a stable on-chain currency, understanding how MakerDAO and DAI work is essential for navigating the crypto ecosystem.