Skip to content

Unique Design of Dai Stablecoin

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

Intro

Limitation of traditional cryptocurrencies as a medium of exchange due to its high volatility resulted in introduction of new class of crypto called stablecoin. Stablecoins aim to achieve both the characteristics of existing cryptocurrencies (e.g. Bitcoin) and traditional financial assets such as USD and gold. Stablecoins are known for its price stability by *collateralizing* various assets. There are four major types of stablecoins, classified by its collateralized asset:

  • Fiat-backed stablecoin
  • Commodity-backed stablecoin
  • Cryptocurrency-backed stablecoin
  • Algorithmic stablecoin (Seigniorage stablecoin)

While most stablecoins maintain price stability via collateralizing “safe assets”, it is not quite clear how crypto-backed tokens operate.

If the underlying asset is volatile, shouldn’t the stablecoin itself be volatile as well?

In this article, we will take a look at how DAI token, a crypto-backed stablecoin developed by MakerDAO, maintains price stability through its own unique design.

MakerDAO

The MakerDAO is a decentralized platform for lending DAI token by accepting crypto collateral with a fixed amount of fee.

Crypto-backed tokens distinguish from other stablecoins such as Tether USDT. Majority of asset-backed stablecoins are designed so that a single entity takes control of the collateral, requiring trust of the centralized authority. Acknowledging this issue, the MakerDAO organization developed a fully decentralized stablecoin called DAI. DAI token is collateralized by Ethereum (but now accepts multiple types of crypto as collateral) but its price is soft-pegged to $1 USD. Figure 1 shows the price history of DAI and Ethereum over the period of one year. While the price of Ethereum shows extreme volatility over the period, price of DAI is quite close to a dollar with small variance.

Figure 1. Price of DAI vs Price of Ethereum

Maker is a smart contract platform on Ethereum that backs and stabilizes the value of DAI through a dynamic system of Collateralized Debt Positions (CDPs), autonomous feedback mechanisms, and appropriately incentivized external actors.

In order to understand how DAI tokens maintain stability despite of extreme volatility of ETH, we must understand how the token is generated. MakerDAO now accepts multiple types of crypto as collateral, but here we will assume that ETH is the only available collateral.

1. Creating CDP vault and depositing collateral

First, the user creates a “vault” that locks the collateral in a smart contract called Collateralized Debt Position (CDP). Here, the minimum collateral ratio (aka “liquidation ratio”) is 150%. This means that the value of collateral must be at least 1.5x of the value of borrowed DAI.
For example, let’s say the Alice wants to borrow 1,000 DAI ($1,000) and the current market price of Ethereum is $100. Then, the minimum amount of Ethereum that Alice must collateralize is $1,500 worth of Ethereum, which is equivalent to 15 ETH.
If the market price of ETH decrease so that the collateral-to-debt ratio falls under 150% (i.e., falls below the liquidation ratio), the vault automatically goes into clearing stage where the collateralized ETH is liquidated to cover all or part of the debt; it is the borrower’s responsibility to keep the collateral rate above 150% in order to avoid any loss and penalty fee.

2. Generate DAI from CDP
The CDP user then sends a transaction to retrieve the amount of DAI they want from the CDP, and in return the CDP accrues an equivalent amount of debt, locking them out of access to the collateral until the outstanding debt is paid.
3. Paying down the debt and Stability Fee
When the user wants to retrieve their collateral, hey have to pay down the debt in the CDP, plus the Stability fee that continuously accrue on the debt over time. The Stability Fee can only be paid in MKR. Once the user sends the requisite DAI and MKR to the CDP, paying down the debt and Stability Fee, the CDP becomes debt free.
4. Withdrawing collateral and closing the CDP
With the debt and stability fee paid down, the CDP user can freely retrieve all or some of their collateral back to their wallet by sending a transaction to Maker.

Luniverse 'Trace' Service Launching Event!

Provide free 100 days to use Luniverse 'Trace', Blockchain based event tracking service

Stability Mechanism of DAI

We will now look at how MakerDAO operates when the price of DAI deviates from the peg. Here, the “price” refers to the market price of DAI traded in the secondary market. In the Maker Protocol, there are “Keepers”, who are market participants that help maintain DAI in its Target Price ($1). The general idea is that keepers are be incentivized to take advantage of the arbitrage opportunity by buying/selling DAI tokens in the market, constantly adjusting the supply and demand curve. Here, we assume that the market is rational, and it is the price of DAI that only changes during the time period.

Case 1 : price of DAI falls under $1
Let’s say Alice borrowed 100 DAI ($100) from the vault. Few days passed by, the market price (price in the secondary market) of 1 DAI falls to $0.9. Although the market price deviated from the peg, the value of DAI is still $1 in the protocol since it is not yet reflected by Oracle system. This will incentivize Alice to buy DAI from the secondary market for a lower price and pay back the debt. Although Alice borrowed 100 DAI which worth $100, she can now pay off borrowed for only $90 by purchasing DAI from the market. As a result, Alice will get an arbitrage profit of $10. All the returned DAI is burned, decreasing the supply of DAI. This will ultimately lead to increase of market price of DAI.
Case 2 : price of DAI goes above $1
Let’s now assume that the price of DAI increased to $1.1. Since the price of DAI is still $1 in the system, Alice will then be incentivized to borrow DAI from the vault and sell it it the secondary market for $1.1. This brings arbitrage profit of $(1.1 – 1.0) x (borrowed DAI).

Conclusion

The stability of DAI is market-based; DAI maintains price stability by modifying the incentives for borrowing and holding DAI. The cost of borrowing DAI becomes more expensive when the price is below its target, whereas if the price rises above the target, then the cost of creating DAI reduces accordingly. These forces either increase or decrease of total supply of DAI, focusing towards its target price and ensuring that it has low volatility.

Share your blockchain-related digital insights with your friends

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

Get more insights

The first NFT marketplace on Luniverse blockchain “Cyphrly” to launch in Q2 2022

Dear Luniverse Comuunity, We are excited to announce the first global NFT marketplace based on our Luniverse blockchain: “Cyphrly.” In 2021, Lambda256 unveiled ‘Luniverse NFT’ — a fully-integrated NFT service

Blockchain 2022: This Is What CEO of Lambda256 Foresees

With the beginning of 2022, the CEO of Lambda256 talks about his insights to Blockchain and the role of Luniverse. Jay Park, CEO of Lambda256 Back in 2007, people talked

Dunamu and Lambda256 Partner to Launch Upbit NFT platform

Dunamu, the operator of Upbit, has launched “Upbit NFT” beta service. As a result, Dunamu owns the largest cryptocurrency and NFT exchange in Korea at this moment. It is significant

K-pop Fans Have a New Nemesis