{"id":8499,"date":"2020-03-24T00:17:20","date_gmt":"2020-03-23T22:17:20","guid":{"rendered":"https:\/\/forklog.media\/?p=8499"},"modified":"2020-03-24T04:15:04","modified_gmt":"2020-03-24T02:15:04","slug":"makerdaos-recent-trouble-may-highlight-flaws-in-the-ecosystem","status":"publish","type":"post","link":"https:\/\/forklog.com\/en\/makerdaos-recent-trouble-may-highlight-flaws-in-the-ecosystem\/","title":{"rendered":"MakerDAO\u2019s Recent Trouble May Highlight Flaws In the Ecosystem"},"content":{"rendered":"<p>The recent market crash caused a lot of trouble for <a href=\"https:\/\/makerdao.com\/en\/\">MakerDAO<\/a>, the platform behind the Dai stablecoin and the <a href=\"https:\/\/defipulse.com\/\">largest<\/a> DeFi project by value locked. Being largely collateralized by Ether, the stablecoin was impacted heavily by the decline in ETH price and the resulting gap in collateralization.<\/p>\n<p><!--more--><\/p>\n<p>In this piece, we sum up the MakerDAO\u2019s ordeal, look at the problems emerging from it, and the solutions applied.<\/p>\n<h2>Ether Crash Triggered MakerDAO\u2019s Black Thursday<\/h2>\n<p>MakerDAO is a decentralized protocol that services the Dai stablecoin. It is an automated system responsible for creating and destroying Dai according to the rules and the deviation from the target price of $1.<\/p>\n<p>In simple terms, Dai tokens are issued when a proportional amount of collateral, such as Ether, USDC, or BAT, is locked in a smart contract. Similarly, a user can redeem Dai for whatever collateral has been used. In this case, Dai tokens are destroyed and the collateral is returned. To keep the price of the stablecoin at $1, the protocol incentivizes users to destroy or generate Dai.<\/p>\n<p>Importantly, the value of the collateral behind Dai fluctuates depending on the market price of the tokens deposited. For Ether collaterals, the system requires the deposit to be worth at least 150% of the generated Dai value. If the deposit drops below this level, the collateral is automatically liquidated, meaning that it is auctioned off for Dai. The MakerDAO network participants called Keepers can then place bids to buy Ether from the liquidated collateral deposits. Ideally, when multiple Keepers take part in the auction, the exchange rate between DAI and Ether tends to remain fiar. Unfortunately, this was not the case.<\/p>\n<p>Between March 11th and 12th, the price of Ether took a dive from around $200 to $100.<\/p>\n<p><a href=\"https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_price_March.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8500 size-full\" src=\"https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_price_March.png\" alt=\"Ether price chart\" width=\"1006\" height=\"554\" srcset=\"https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_price_March.png 1006w, https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_price_March-300x165.png 300w, https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_price_March-768x423.png 768w, https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_price_March-470x259.png 470w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><\/p>\n<p><i>Ether price chart. Source: <\/i><a href=\"https:\/\/www.tradingview.com\/chart\/?symbol=GEMINI%3AETHUSD\"><i>TradingView<\/i><\/a><\/p>\n<p>The sudden decrease in the value of the collateral behind Dai <a href=\"https:\/\/forum.makerdao.com\/t\/black-thursday-response-thread\/1433\">triggered<\/a> numerous instances of automatic liquidation. However, there was an extra complication arising from the congestion of the Ethereum network and unusually high gas prices. March 12th was dubbed as Black Thursday.<\/p>\n<p><a href=\"https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_gas_chart.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8501 size-large\" src=\"https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_gas_chart-1024x939.png\" alt=\"Average gas price in the Ethereum network\" width=\"1024\" height=\"939\" srcset=\"https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_gas_chart-1024x939.png 1024w, https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_gas_chart-300x275.png 300w, https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_gas_chart-768x704.png 768w, https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_gas_chart-470x431.png 470w, https:\/\/forklog.com\/en\/wp-content\/uploads\/2020\/03\/ETH_gas_chart.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p><i>Average gas price in the Ethereum network. Source: <\/i><a href=\"https:\/\/etherscan.io\/chart\/gasprice\"><i>Etherscan<\/i><\/a><\/p>\n<p>Because of the network issues, MakerDAO oracles couldn\u2019t properly update the Ether price the system was using for its calculations. In addition to that, some of the Keepers who were meant to participate in the liquidation auctions were unable to do so because of the high gas prices.<\/p>\n<p>There were a lot of liquidations and very few Keepers to compete for Ether in the auctions. As a result, some Keepers were able to bid fractions of a DAI and get up to 50 ETH at once nearly free of charge. According to a detailed <a href=\"https:\/\/medium.com\/@whiterabbit_hq\/black-thursday-for-makerdao-8-32-million-was-liquidated-for-0-dai-36b83cac56b6\">report<\/a> by the Whiterabbit research company, losses from all 1462 of such zero-bid auctions amounted to $8.325 million. After the Ether market and the situation in MakerDAO normalized, the system was $4 million short on collateral.<\/p>\n<blockquote><p><b><i>\u201cThe MakerDAO had a +500k$ surplus before the price drop, and now has a -4M$ surplus that needs to be filled. The protocol covers this issue, the solution being to trigger an MKR mint and auction, the DAI raised being used to fill the surplus debt. During normal operation, MKR is burned when debt from vaults is reimbursed, this would be the opposite mechanism,\u201d<\/i><\/b><i> reads the dedicated <\/i><a href=\"https:\/\/forum.makerdao.com\/t\/black-thursday-response-thread\/1433\"><i>thread<\/i><\/a><i> on the MakerDAO community forum.<\/i><\/p><\/blockquote>\n<h2>Debt Auction Chosen As the Solution<\/h2>\n<p>To resolve the $4 million of negative surplus, MakerDAO launched a series of <a href=\"https:\/\/auctions.makerdao.com\/flop\">debt auctions<\/a>, allowing users to purchase new MKR tokens for DAI. MKR tokens grant their holders the right to participate in MakerDAO governance and are used to pay transaction fees within the ecosystem.<\/p>\n<p>During the auction, the Maker Protocol mints new MKR tokens in exchange for Dai, which are then destroyed to cut the total supply of Dai and the negative surplus. In other words, as there are too many Dai for the amount of collateral currently deposited, so the protocol buys out the \u201cunbacked\u201d Dai and burns them, solving the debt problem. Since the auctions involve mining new MKR, the token share of the current holders will be diluted, which is part of the compromise.<\/p>\n<p>The solution seems to be working, as $3 million of the negative surplus <a href=\"https:\/\/daistats.com\/\">are covered<\/a> as of March 23rd.<\/p>\n<p>Still, there are <a href=\"https:\/\/www.coindesk.com\/makerdaos-problems-are-a-textbook-case-of-governance-failure\">arguments<\/a> that Maker developers should have done a better job at foreseeing things like 0 bids in liquidation auctions and be clearer about the contingency procedures in place.<\/p>\n<p>Notably, as part of the debt auctions concluded, the Block researchers <a href=\"https:\/\/www.theblockcrypto.com\/post\/59421\/maker-foundation-mkr-debt-auctions-winning-bidding\">found<\/a> evidence that shows that the Maker Foundation, the non-profit organization supporting the protocol development, was winning all of the lots. The Foundation <a href=\"https:\/\/cointelegraph.com\/news\/maker-foundation-rejects-accusations-of-participation-in-its-debt-auctions\">rejected<\/a> all accusations and stated that it was merely offering \u201climited technical assistance to some bidders on a first-come, first-serve basis to facilitate their timely and effective participation in the auctions.\u201d<\/p>\n<p>The Block researcher Matteo Leibowitz also noted that while the Foundation appears to be the winner of 33 out of 33 auctions at that time, they were not manipulating the auction price by continuously submitting higher bids.<\/p>\n<h2>Lessons Learned?<\/h2>\n<p>To prevent similar scenarios in the future, MakerDAO selected and implemented <a href=\"https:\/\/forum.makerdao.com\/t\/black-thursday-response-thread\/1433\">new system parameters<\/a>. Among other things, liquidation auction rounds were prolonged and the lot size was increased from 50 to 500 ETH.<\/p>\n<p>Notably, MakerDAO had already made a move to increase resistance to Ether price fluctuations. Back in 2019, the ecosystem switched from Single-Collateral Dai (SAI) to Multi-Collateral Dai (MCD or DAI). Although, as mentioned in our <a href=\"https:\/\/forklog.com\/en\/multi-collateral-dai-collateral-priority-race-begins\/\">earlier article<\/a>, the shift to a mode diverse collateral doesn\u2019t necessarily make the stablecoin much more resistant to en masse Ether liquidation.<\/p>\n<p>On the bright side, it seems that the community, aside from the opportunistic people behind zero bids, did withstand the blow and was willing to share the losses. Crypto-companies <a href=\"https:\/\/twitter.com\/paradigm\/status\/1238329819382681602\">Pantera<\/a> and <a href=\"https:\/\/twitter.com\/Dharma_HQ\/status\/1238334502427975680\">Dharma<\/a> each stated their willingness to support the debt auction.<\/p>\n<blockquote><p><b><i>\u201cWe believe MakerDAO and Dai are extremely important to the DeFi ecosystem. Thus, ensuring that the MKR auction succeeds is critical. Given the short timeline, we had to prioritize our efforts, and we decided this was the top priority,\u201d <\/i><\/b><i>Dharma COO Brendan Forster told Cointelegraph.<\/i><\/p><\/blockquote>\n<p>The solution is likely to have worked this time, but the fact that the failure did occur highlights the importance of being prepared for the worst, especially in decentralized systems where the time required to patch vulnerabilities and roll out critical upgrades is much greater than in their centralized counterparts.<\/p>\n<p><b>Follow us on\u00a0<\/b><a href=\"https:\/\/twitter.com\/forklogmedia\"><b>Twitter<\/b><\/a><b>\u00a0and\u00a0<\/b><a href=\"https:\/\/www.facebook.com\/forklogmedia\"><b>Facebook<\/b><\/a><b>\u00a0and join our\u00a0<\/b><a href=\"https:\/\/t.me\/forklogmedia\"><b>Telegram channel<\/b><\/a><b>\u00a0to know what\u2019s up with crypto and why it\u2019s important.<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The recent market crash caused a lot of trouble for MakerDAO, the platform behind the Dai stablecoin and the largest DeFi project by value locked. Being largely collateralized by Ether, the stablecoin was impacted heavily by the decline in ETH price and the resulting gap in collateralization.<\/p>\n","protected":false},"author":6,"featured_media":8504,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"select":"1","news_style_id":"","cryptorium_level":"","_short_excerpt_text":"","creation_source":"human_written","_metatest_mainpost_news_update":false,"footnotes":""},"categories":[3],"tags":[1099,1100,807],"class_list":["post-8499","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news-and-analysis","tag-dai","tag-makerdao","tag-stablecoins"],"aioseo_notices":[],"amp_enabled":true,"views":"512","promo_type":"1","layout_type":"","short_excerpt":"","is_update":"","_links":{"self":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/8499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/comments?post=8499"}],"version-history":[{"count":2,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/8499\/revisions"}],"predecessor-version":[{"id":8505,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/8499\/revisions\/8505"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/media\/8504"}],"wp:attachment":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/media?parent=8499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/categories?post=8499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/tags?post=8499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}