Maker DAO Transactions Illustrated

Maker DAO is the protocol for supporting the stable token, DAI. This article is the description of the protocol based on the real examples of transactions, illustrated by graphs from web site.

Aleksey Studnev
May 8, 2019 · 6 min read


The protocol is implemented as smart contracts:

Sai Tub:

which accepts wrapped Ether ( WETH ) as the collateral for DAI debt, and

Sai Tap:

for DAI debt liquidation clearance ( DAI <-> PETH exchange of bad debts )

The protocol is described in We took the text description from this source, but illustrated it by real example of transactions, using the graphical presentation from web site. Every illustration is accompanied with the link to the transaction it shows. You can investigate this particular transaction by clicking the link, or investigate even further, by finding similar transactions on the contract.

We believe this material will help to better understand Maker DAO protocol and use it in all possible variety of ways.

Methods Overview

All protocol methods can be categorized in categories, working with different entities:

MakerDAO Smart Contract methods

They describes what in general you can do with Maker DAO system:

  1. Deposit / withdraw your Ether ( PETH Pool )
  2. Control your CDP’s ( Collateral positions ) and get a loan (in DAI) from them. This effectively controls the total supply of DAI.
  3. Liquidate debts in DAI/PETH

Join Collateral Pool

Join the collateral pool by depositing ETH in exchange for PETH (pooled ether).

  • The amount should be specified in units of PETH.
  • ETH will be debited from the caller at the join price (ask)

Exit Collateral Pool

Withdraw collateral by returning PETH to the vault in exchange for the proportional amount of ETH.

  • The amount should be specified in units of ETH.
  • PETH will be debited from the caller at the exit price (bid)

Will return more or less ETH tokens for each PETH than at join depending whether the system made a profit or loss over the lifetime of the collateral deposited to the pool.

Open CDP

Create an empty CDP and set the caller to be the owner.

Image for post
Image for post

Give CDP

Transfer a CDP to a different owner. (changes lad)

Image for post
Image for post

Lock CDP

Add PETH collateral (increases ink).

Image for post
Image for post

More complicated case, with ETH initially converted:

Free CDP

Remove PETH collateral (decreases ink).

More complicated case, with the conversion back to ETH

Draw DAI

Issue a specified amount of Dai (increases art, rum)

More complicated, with intermediary smart contract sending DAI to the guy

Wipe DAI

Repay some portion of outstanding Dai debt (decreases art, rum).

More complicated case, where DAI exchanged to pay MKR fee. DEX exchange Oasis used for this:

Shut CDP

Close a CDP. Clear all debt, unlock all collateral and delete the record.

Collateral will be used to pay any outstanding debt at market rate. Remaining collateral will be returned to the pool.

Image for post
Image for post

More complicated case, using Oasis to exchange DAI to MKR:

Even more complicated, with Uniswap involved:

Bite CDP

Liquidate a vunerable CDP (zeros art, decreases ink).

Unsafe CDPs need to be liquidated. When a cup is not safe, anyone can perform bite(cup), which takes on all CDP debt and confiscates sufficient collateral to cover this, plus a buffer.

This returns the CDP to a safe state (possibly with zero collateral).

There are other possible implementations of bite, e.g. only taking sufficient collateral to just transition the CDP to safe, but the described implementation is chosen for simplicity.

More complicated case

Boom Debt

Buy dai when the system is in surplus.

Can be thought of as buy and burn. Given a net Dai balance, sell the Dai in return for PETH, which is burned.


Sell dai when the system is in deficit.

bust is really two functions in one: collateral sell off (aka flip), and inflate and sell (aka flop). When fog is non zero it is sold in return for Dai, which is used to cancel out the bad debt, woe. If fog is zero but the tap has a net Sin balance, then PETH is minted and sold in return for Dai, up to the point that the net Sin balance is zero.

Vox Target Price

The vox provides the Dai target price, given in terms of the reference unit, by par. For example, par == 2 with USD as the reference unit implies a target price of 2 USD per Sai.

The target price can vary in time, at a rate given by way, which is the multiplicative rate of change per second.

In Dai 1.0 the sensitivity, how, is set to zero. Adjustments to the target price are made by adjusting the rate of change, way, directly with coax. In future iterations, how may be non-zero and way adjustments will then follow automatically via the feedback mechanism. The vox component is subject to ongoing economic modelling research.
This article was composed from the data and by analytical tools from analytical engine. web site provides a set of tools for analytics, traders, companies and crypto enthusiasts.

The tools include APIs, dashboards and search engine, all available on-site, providing accurate data, indexed directly from the blockchain live node.

Bloxy mission is to make blockchain more transparent and accessible to people and businesses.

Please, make a reference to the source of data when referencing this article.

Cumbersome Complexity

To show an example of a REAL transaction, take a look at this:

Apart from Maker DAO contracts, 3 DEX involved: Oasis, Uniswap and Kyber Network. This transaction orchestrated by smart contract SaverProxy ( ).

What it does is withdraws Eth collateral, swaps Eth -> Dai with Kyber, and pays back the debt in Dai

Further Research Dashboard for MakerDAO shows interesting dynamics of the methods usage over time: Dashboard for MakerDAO

As different methods are used by traders for purpose, this dynamics may tell many stories about the important events and behavior in Maker DAO ecosystem.

Get Best Software Deals Directly In Your Inbox

Image for post
Image for post


Coinmonks is a non-profit Crypto educational publication.

Sign up for Coinmonks

By Coinmonks

A newsletter that brings you week's best crypto and blockchain stories and trending news directly in your inbox, by Take a look

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Aleksey Studnev

Written by

Blockchain analyst, software creator, ( formerly )



Coinmonks is a non-profit Crypto educational publication. Follow us on Twitter @coinmonks Our other project —

Aleksey Studnev

Written by

Blockchain analyst, software creator, ( formerly )



Coinmonks is a non-profit Crypto educational publication. Follow us on Twitter @coinmonks Our other project —

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store