DeFi Best Of

Defi Lego: How many versions of Dai are there?

Pinterest LinkedIn Tumblr

DAI is an algorithmic stablecoin based on an ERC-20 token that runs on the Ethereum blockchain, which is created and managed by the Maker platform.

Its peculiarity lies in having a value that always fluctuates around the value of the US dollar (USD), but without there being any single entity managing it. It is based exclusively on Ethereum smart contracts, making it a unique case of a decentralized stablecoin. This makes it one of the most popular stablecoins in the DeFi sector, such that many decentralized finance platforms use it.

This allows them to take advantage of its very low volatility, but without having to trust a manager who is responsible for keeping its value stable. As such, nowadays DAI is referred to as a decentralized algorithmic stablecoin that is collateralized not only with ETH but also with other ERC20 tokens such as BAT. The original version that had ETH as its only collateral is still in circulation, although now it represents only a minority part of the supply.

Decentralized finance allows creating new assets by assembling already existing ones: just as it is possible to use different Lego bricks to combine them together and build stuff, it is also possible to combine ERC-20 tokens using smart contracts to create new tokens. Over time, however, other tokens representing DAI have also been created, for example within individual DeFi platforms.

cDai Compound

cDAI Compound

Compound, for example, is used to lend or borrow via its own cTokens, which are nothing more than derivatives replicating an underlying asset within its own smart contracts. cDAI is the token used by Compound’s smart contracts to allow platform users to lend or borrow using DAI. So, thanks to cDAI, it is possible to lock DAI tokens to lend money in exchange for interest, as well as borrow DAI tokens in exchange for interest.

Chai Dai Savings Rate

Source: DefiPulse

Another of these cases tied to DAI is Chai, a token similar to cDAI that allows earning interest through Maker’s Dai Savings Rate (DSR). Chai’s smart contract deposits the DAI in the DSR and issues CHAI tokens that can be freely spent, stored, transferred and exchanged, but also subsequently redeemed in exchange for the underlying DAI plus any interest earned.

rDai

DAI tokens in a liquidity pool

Another very similar example is rDAI (redeemable DAI), which allows investing DAI tokens in a liquidity pool that allows for guaranteed loans by generating interest to lenders. As in the previous cases, rDAI allows users to retain ownership of DAI tokens because once they have been locked in to obtain rDAI, it is possible to return the rDAI tokens at any time and recover the full availability of the previously locked DAI tokens.

iDai Fulcrum

Fulcrum: ISAI to IDAI Migration

There are several similar tokens, just like Fulcrum’s iDAI, another DeFi platform that allows decentralized token lending through smart contracts. Fulcrum actually runs on bZx, one of the top ten DeFi platforms currently in existence, which allows both lending and margin trading with leverage. The bZx smart contracts issue iDAI tokens, which basically work roughly the same as previous derivative tokens. However, this has one special feature, namely that its exchange rate is able to decrease if the underlying pool suffers losses, which makes it suitable for building risk management derivatives, for example.

Other Versions

  1. IdleDAI is a DAI that acts as a tokenized DeFi rebalancer. By depositing DAI on Idle users receive IdleDAI in exchange, while the DAI are automatically lent either on Compound or Fulcrum depending on which platform maximizes the interest rate.
  2. aDAI is still under development, although it is already active on the testnet, and works like iDAI. It is developed by AAVE as part of Decentralized Lending Pools (DLPs).
  3. yDAI, on the other hand, while it can be used to lend or borrow, has the peculiar characteristic of not being perpetual, and therefore needs to be periodically renewed. This makes it much more similar to traditional loans, which almost always have a maturity date by which the loan must be repaid. Whereas in the previous cases there was no maturity date because the DAI lent could be left on loan for as long as desired while continuing to earn interest. In the case of yDAI, however, the loans have a maturity date, which can be renewed. The difference between the current price of the yDAI token and its price at maturity reflects the interest rate offered to the lender, allowing the development of a DeFi yield curve.
  4. gDAIalso uses Fulcrum for lending but uses GasStationNetwork, Kyber and Uniswap to allow users to pay DAI gas fees.
  5. dDAI is a derivative of rDAI and gDAI. It uses Fulcrum’s iDAI for loans but uses rDAI to create “recipes” that allow callbacks to receive contracts and add data to callbacks. It also integrates with GSN to allow payment of transaction fees with DAI.
  6. DAI-HRD wraps the DSI DSR deposit in an ERC-20/ERC-777 token that deposits its DAI in the DSR. This contract, called dai-hrd.eth, is trustless and not custodial, because all deposits, withdrawals and transfers take place on the smart contracts, without going through intermediaries or centralized services. The goal of the developers would be to create an ecosystem where smart contracts operate on DAI-HRD, rather than on DAI itself. The fact is that many DAI holders keep their tokens without perceiving any interest because they are not staked in the DSR. Instead, by wrapping DAI tokens in DAI-HRD, not only is it possible to earn interest through DSR, but also to continue to use DAI in a completely free way because the DAI-HRD contract calculates how much DSR is appropriate to withdraw to support the exact transfer of DAI value.
  7. LSDai is an interest rate swap based on derivatives such as Compound’s cDAI, and creates a Euro-Dollar-like construct that represents a futures contract on Compound’s loan rate on Dai for the duration of the contract. This is achieved using the Market Protocol, which uses the index-based futures model called “iron-cross options”. In this way, LSDai decouples the risk of the two parties through a long and a short position token.
  8. SwanDAI is a synthetic asset that tracks the deviation of DAI’s price from the US dollar in an exponentially increasing manner using the DAI/USDC API. At expiration, the contract is traded exactly at the index price, and sellers receive a time-based reward to compensate for the estimated risk of DAI’s depegging.
  9. There is also iSwanDAI, which is also a synthetic asset under development, and which tracks the deviation of the price of iDAI from its highest recorded price. On expiry, the contract is always negotiated at the index price, and sellers collect a time-based reward to compensate them for the risk. Unlike SwanDAI, which only covers the risk of DAI depegging, iSwanDAI also covers the risk associated with the violation of the iDAI contract, i.e. the risk that Fulcrum may fail to properly liquidate the lenders.
  10. pDAI is based on the PoolDAI protocol for donations without commission and allows users to lend DAI by donating interest to charity. It uses Compound, KyberNetwork, TheGraph and Blocknative.
  11. Aztec Notes is a form of anonymous DAI that masks senders, recipients and amounts using Zero-Knowledge proofs. It does not use ZK-SNARKs, but algebraic Zero-Knowledge proofs that use Boneh-Boyen signatures. Aztec Notes is therefore used to execute DAI transactions with a high level of privacy.

Meanwhile, zkDAI uses ZK-SNARKs to mask senders, recipients and amounts of DAI transactions, drawing inspiration from Zcash. However, ZK-SNARKs require a large amount of gas, so using zkDAI can be expensive.

However, the first-ever derivative on DAI was xDAI, originally run on a sidechain with Proof of Authority (PoA). Now it runs on a DPoS blockchain with the PoSDAO consensus algorithm.

In addition to these DAI-derived tokens, there are also others, which are still being studied or tested, examples include wxDai (based on xDAI), nmDAIMetaDAIMaxDAI and rfDAI,

The process of creating these derivative tokens can be repeated to create new tokens by assembling existing derivative tokens.

For example, a sort of meta-stablecoin could be created by combining DAI, cDAI, Chai and other DAI or other derivative tokens, such as USDT, whose only real limit is the imagination of DeFi developers.

In short, just as it is possible to combine different Lego bricks to create new stuff, it is possible to combine different ERC-20 tokens to create new assets with different characteristics compared to those of the single underlying ones from which they are composed.

Website | Blog | Telegram | Twitter

chainlink
Chainlink (LINK) $ 11.62
yearn-finance
yearn.finance (YFI) $ 12,578.48
ethlend
Aave [OLD] (LEND) $ 0.320737
uniswap
Uniswap (UNI) $ 2.67
havven
Synthetix Network Token (SNX) $ 3.71
uma
UMA (UMA) $ 7.29
compound-governance-token
Compound (COMP) $ 107.38
maker
Maker (MKR) $ 544.52
wrapped-nxm
Wrapped NXM (WNXM) $ 25.14
0x
0x (ZRX) $ 0.342212
loopring
Loopring (LRC) $ 0.143001
republic-protocol
REN (REN) $ 0.281074
kyber-network
Kyber Network (KNC) $ 0.858271
numeraire
Numeraire (NMR) $ 24.75
band-protocol
Band Protocol (BAND) $ 5.02
terra-luna
Terra (LUNA) $ 0.309994
yfii-finance
DFI.money (YFII) $ 1,396.35
sushi
Sushi (SUSHI) $ 0.667852
balancer
Balancer (BAL) $ 10.70
thorchain
Thorchain (RUNE) $ 0.406075
reserve-rights-token
Reserve Rights Token (RSR) $ 0.013856
ampleforth
Ampleforth (AMPL) $ 1.10
nest
Nest Protocol (NEST) $ 0.043765
serum
Serum (SRM) $ 0.994737
keep-network
Keep Network (KEEP) $ 0.350268
augur
Augur (REP) $ 12.52
curve-dao-token
Curve DAO Token (CRV) $ 0.486061
kava
Kava (KAVA) $ 1.57
bancor
Bancor Network Token (BNT) $ 0.711883
just
JUST (JST) $ 0.025648
gnosis
Gnosis (GNO) $ 41.45
force-protocol
Force Protocol (FOR) $ 0.027652
cream-2
Cream (CREAM) $ 25.62
melon
Melon (MLN) $ 21.31
tellor
Tellor (TRB) $ 23.30
akropolis
Akropolis (AKRO) $ 0.010009
aurora-dao
IDEX (IDEX) $ 0.050777
nectar-token
Nectar Token (NEC) $ 0.153463
bzx-protocol
bZx Protocol (BZRX) $ 0.127691
airswap
AirSwap (AST) $ 0.118423
switcheo
Switcheo (SWTH) $ 0.020232
orion-protocol
Orion Protocol (ORN) $ 1.46
dforce-token
dForce Token (DF) $ 0.079127
meta
Meta (MTA) $ 1.22
pnetwork
pNetwork (PNT) $ 0.421038