Value locked in DeFi on Ethereum exploded from 1B US$ in May 2020 to almost 4B in July. The DeFi craze put so much pressure on the Ethereum blockchain that we’ve constantly seen gas prices above 60 Gwei over the past few weeks.
A single project, led by one man, has grown from insignificance to almost half a billion US$ locked within mere weeks. This same project decentralized its own governance in a surprise move. The governance token reached a valuation of 70M US$ in less than a week.
Rumor has it that some Ethereans haven’t slept once since DeFi bust onto central stage in spring 2020. Yet many in the crypto sphere still go De…WHAT? Cutting through the hype behind the latest crypto craze, there’s quite a bit of substance to be found. Let’s untangle DeFi, and put it back together according to our own terms, shall we?
De… WHAT?
In a nutshell, Decentralized Finance (DeFi) is about bringing financial instruments to the blockchain. The Internet digitized information and anything related to information (remember newspapers?). Blockchains digitized money, and are now digitizing anything related to money (remember banks?).
Financial instruments like shares, loans, options, or insurance contracts get a digital life thanks to DeFi. New digitally native instruments like flash loans are being invented. The platforms where these instruments trade, flourish: decentralized exchanges, lending platforms, peer to peer transaction systems.
The following core attributes define products and services in DeFi:
- They are non-custodial and permissionless. Like with blockchains in general, DeFi users trust the code they use over people. They remain in control of the funds they own, and they don’t have to ask anybody for permission to use a service.
- They are open and composable. DeFi services (more precisely, DeFi protocols) can be stacked on top of each other — sometimes within a single Blockchain transaction. This is the principal reason for the current explosion of possibilities happening in DeFi.
Let’s dive into some concrete examples. Starting with the curse of the modern individual: debt.
DeFi Products and Services
Lending
Thinking about taking out a loan to buy a car, that new flat screen TV, or even a house? Easy. Go to a bank (hurry up while they still exist), show your salary statement, have your credit history checked, sign a contract. You are now ready to live up to your duties as a consumer again.
This type of lending transaction: giving and receiving credit based on social proof, is hard to reproduce on the blockchain. The necessary information and connections: your salary, the likelkyness of you repaying a loan, the legal measures available if you don’t, are not (yet?) available in the blockchain context.
For that reason, blockchain lending platforms mostly cater to the needs of people who want to keep exposure to a certain asset, while gaining exposure to another. You have a lot of ETH and believe that the price of BAT relative to ETH will go down soon? Easy. Deposit your ETH into Compound, take out a loan in BAT, sell that BAT on the open market for more ETH. You are now effectively short BAT. Your speculation added up? You’ll be able to re-buy the BAT you sold for less ETH than you sold it for, repay the loan, and keep the leftover ETH from your trade as profit. You successfully shorted BAT in a non-custodial and permissionless environment.
The Inner Workings of A DeFi LenDing Protocol
In the background, the ETH you used as collateral to borrow BAT for your trade got locked in Compound’s smart contract system. Also, you were only allowed to take a certain %-age of your collateral’s value as a loan to protect the system against a sudden drop in the value of ETH.
Compound put mechanisms in place to watch your collateralization ratio. The system will warn and eventually liquidate you if the value of the ETH you deposited were to fall below a certain threshold. Concretely, a liquidation would mean that the ETH you deposited would be sold on the market to cover the costs of your BAT loan. Leaving you with the BAT, and maybe a small rest of your ETH deposit. It’s not Compound that would spring to action in this case. Other free market actors, like this guy here, made it their job to watch for undercollateralized loans and liquidate them for profit.
Meanwhile, another mechanism was charging you interest on the BAT you took out as a loan, and rewarding you with a smaller interest payment for the ETH that you deposited. Due to this interest mechanism, some will simply deposit funds in Compound, without taking out a loan, to earn a part of the interest charged to borrowers. The snappy DeFi term for this is yield farming, but more on that later.
When you supply funds to Compound, you receive the corresponding cToken in exchange. cTokens represent deposits in Compound and accrue interest over time. You can freely move them around, or use them to reclaim the funds you supplied, including the interest you earned.
Beyond Collateralized DEBT
As mentioned above, lending without forcing people to deposit collateral first is hard in a blockchain context. But it’s not impossible. Recently, Aave, another lending protocol on Ethereum, introduced credit delegation: One blockchain user can give another user permission to borrow assets backed by his collateral. There is trust associated with this process. The person delegating credit to another person must make sure, via social means, that the loans taken out against his collateral will be repaid in due time. Protocols like Teller are planing to bring real-world trust, for example your real-world credit history, to the blockchain.
An even more fascinating invention by Aave is the flash loan. A truly blockchain-native type of credit that can be taken out, against a small fee, under the condition that it will be repaid within that same blockchain transaction. If there is no repayment, the credit transaction will fail and with that, the entire blockchain transaction. Use flash loans, for example, to create arbitrage transactions. DAI is at 1.02 against USDC on one decentralized exchange, and at 1.00 on another? Take out a flash loan over 100’000 USDC, buy the “cheap” DAI, sell the “expensive” DAI, pocket 2% profit (minus fees and transaction costs), all without having to provide your own collateral. With flash loans, everybody can be a crypto whale for a few seconds!
Here is an example of one of the first flash loan transactions on Ethereum. The initiator, ArbitrageDAO, took out a flash loan over 3137 DAI. It then sent that DAI to the maker SAI-DAI migration contract to obtain 3137 SAI. Those SAI were sold on Uniswap for 3157 DAI. 3148 DAI were then used to repay the flash loan including fees (fees were higher back then). The DAO pocketed a small profit of roughly 9 DAI before fees. 2 DAI remained after the Ethereum transaction fees. This all happened within a single Ethereum transaction!
The Things You Can do with a bit of Collateral
Collateral deposited in a smart contract system can back new asset types. Deposits serve as a guarantee for the value represented by those newly minted assets.
Stablecoins
Maker, the “OG” DeFi protocol on Ethereum, developed a complex mechanism that allows users to deposit ETH in a smart contract, then use that ETH as collateral to mint DAI. DAI is in turn pegged to the US dollar. The Maker depot created to mint DAI is called a “collateralized debt position” (CDP). Recently, Maker added the possibility to use additional tokens as collateral for DAI. Maker has been around since 2016 and is among the protocols that laid the foundation for the DeFi revolution.
While the US dollar peg might occasionally be a cause for concern, Maker’s mechanisms effectively back the value of DAI with the value of ETH. If push comes to shove, and as long as the overall system remains sufficiently collateralized, DAI could simply be liquidated for ETH, and nobody would loose too much money. Here is a post explaining Maker in some more detail. And here is one that explains the token model. Looks super simple, right?
Maker currently remains the dominant DeFi project on Ethereum in terms of total value locked, but others are closing in fast. Kava brings the Maker idea to the Cosmos ecosystem, and Acala does the same for Polkadot. mStable iterates on the stablecoin theme itself by integrating stablecoins, lending and swapping into one standard.
Derivatives And Insurance
Many projects build on the core idea of creating assets backed by collateral deposits. Most notably Synthetix, a project that brought a great variety of synthetic assets to Ethereum. Synthetix helped pioneer liquidity mining on Ethereum by distributing its native token, SNX, to liquidity providers.
dYdX is an exchange protocol that allows for trustless leveraged trading and the creation of perpetual contracts (perpetual swaps).
Augur enables the creation of prediction markets around the outcome of real-world events. Another “OG” DeFi project founded in 2015, Augur always got a lot of attention, but so far attracted only minimal capital flow.
Opyn implements a protocol that enables the creation of options, for example put or call options on a publicly traded token. On-chain options can be used to trustlessly protect a portfolio against declining token prices, volatility or flash crashes. Opyn takes this system a step further by providing insurance options on Compound deposits. In a typical DeFi manner, Opyn implements a two-sided market, matching those who want to buy protection with those who are ready to provide protection in the hope of earning yield.
Nexus Mutual brings human judgment to the on-chain insurance process and can therefore cover a broader array of DeFi related risks. Members of “the Nexus” eventually decide whether an insurance claim is legitimate or not.
DECENTRALIZED EXCHANGES
For some time, decentralized exchanges (DEXes) were the place to trade ICO tokens that were not yet available on any “real” (centralized) exchanges. A number of recent developments have given DEXes an entirely new significance, and impressive trading volumes.
The Rise of AMMs
Ethereum is too slow and clumsy to host a full-fledged decentralized exchange operation. Especially the orderbooks we know from centralized exchanges are hard to bring on chain. There’s simply not enough affordable storage space. In this context, so-called Automatic Market Makers (AMMs) have found a growing niche. Sounds scary, but actually isn’t: many already traded on Uniswap, the “OG” AMM on Ethereum.
Uniswap works by keeping pools of liquidity: assets that people have deposited into the Uniswap smart contract system. Uniswap is always able to quote a price for these assets. Uniswap’s pricing mechanism is quite simple (go here for a better understanding). However much you want to buy, Uniswap will quote a price so that, after the transaction goes through, the product of the assets amounts it holds in the corresponding pool remains constant. In practice, this means that the more you want to buy relative to the pool size, the less favorable the quoted price will be. AMMs are a success story on Ethereum, because their inner workings are lean. No order books, no complex mechanisms to match trades. This results in cheap and fast transactions, as long as traders define reasonable trade sizes relative to the pools they use.
And those depositing money in the pools? They earn a fee charged on each exchange transaction. Another possibility to farm yield in DeFi.
Image: trading on Uniswap is simple. Make sure to take a look at the “price impact” information. This trade would only suffer from a small price impact because it is tiny compared to Uniswap’s ETH-DAI pool. The price impact of a trade is normally called “slippage”. Uniswap helps you avoid costly trading mistakes by limiting slippage in the settings.
Other projects have since iterated on the Uniswap idea. Balancer Labs works with more complex pools that are able to quote prices on a variety of asset combinations. Curve is able to offer cheaper swaps on assets that should normally have almost the same price (like USDC/DAI), by applying a different price curve in the AMM mechanism described above. Bancor is a pool-based exchange system that predates Uniswap.
ORDERBOOK DEXES
A number of DEXes have come up with ways to solve the orderbook and order matching conundrum. The 1st generation of orderbook DEXes used to rely on centralized orderbook and order matching service, settling trades on chain via smart contracts. Some will remember Etherdelta, now Forkdelta. The probably best known orderbook DEX that works in this manner, Idex, is currently rolling out a more decentralized solution, where dedicated nodes handle orderbook storage and trade matching. Due to its partially centralized nature, Idex took a heavy hit when the project had to introduce KYC procedures.
The orderbook DEX model has since evolved. 0x settles trades on chain, while orders reside off-chain in whichever format or database the developer chooses. Kyber uses a combination of liquidity pools and distinct limit orders. Loopring evolved the Layer 2 approach to orderbook storage and trade-matching by introducing the 1st Ethereum-based DEX working with zkRollups.
Contract-Callable Liquidity
DeFi protocols have mechanisms in place to act on the open market. Often, they motivate free market participants to act on the protocol’s behalf. For example to liquidate undercollateralized loans, or to help rebalance a user’s portfolio. To efficiently execute these transactions, DeFi protocols need on-chain liquidity. Their smart contracts cannot reach into the liquidity pool of a Layer 2 DEX like Loopring. Centralized liquidity pools are even further away. On-chain liquidity is sometimes called contract-callable liquidity, because it is liquidity that is available to smart contracts. Another advantage of pool-based DEX systems and AMMs is that they easily provide contract-callable liquidity. On-chain liquidity and the DeFi ecosystem are part of a feedback cycle. Successful DeFi products lure liquidity on chain, and at the same time, more liquidity improves the experience provided by those products.
DEX Aggregators
DEXes do not always offer optimum liquidity for each pair they have listed. To mitigate that, a niche market of DEX aggregators has sprung up. DEX aggregators like 1inch, Paraswap or dex.ag gather price information from multiple DEXes. They offer their users an overview of the available DEX liquidity and price spans.
Their utility to the end user has turned DEX aggregators into gatekeepers for the multitude of DEXes that exist on Ethereum. Consequently, those platforms are trying to get their own share of the available dealflow, offering limit orders, aggregate trades across various DEXes, custom market making and other goodies like gas price rebates that improve the available prices, or lower transaction costs.
Tokenize all the Things!
With so much action around financial instruments coming on chain, tokenizing real-world assets — from houses to company stock — has attractive prospects. We already spoke about the possibility to create synthetic versions of those assets on chain. Platforms like Polymath want to bring the real deal to the digital world, by establishing new token standards and by implementing various regulatory requirements associated with the tokenization of real-world assets.
A special tokenization case are non-fungible tokens (NFTs). On Ethereum, NFTs are represented by the ERC721 standard. Non-fungible tokens cannot be divided into smaller sub-units and are commonly used to represent things people want to own. Works of art, badges and rewards, rare in-game items etc. Visit Superrare to see an example of a trading platform for NFTs. With a daily turnover in the mid 5 digits on Ethereum, NFTs are an emergent asset class that is worth a closer look.
Other DeFi Protocols and ServiCes
Over time, a vast array of DeFi related services sprung up. Here’s a short overview:
- Portfolio management: TokenSets enables the creation of on-chain portfolios with regular automatic or manual rebalancing. Melon goes further, essentially bringing the entire operation of a (hedge) fund on chain, in a complex protocol that took several years to build.
- Robo-advisors like Ray can help people earn optimum yield on their on-chain asset holdings by regularly rebalancing assets into the systems that currently offer the highest yield.
- Yearn offers a complex array of sometimes quite experimental services in the DeFi space, all based on the impressive composability of DeFi protocols.
- DeFi-focused wallets like Argent, InstaDApp or Pillar provide easy access to the nerdy DeFi universe and its dApps.
- DeFi-dashboards like Zapper or Zerion nicely wrap DeFi-services into simple to use browser interfaces.
- Flexa focuses on instant payments. Immediate and cheap payment confirmation, even before the next block on Ethereum arrives, guaranteed by funds deposited into the system. Those funds earn a small yield in return.
- A number of services provide data and product insights for the DeFi universe. DeFi Pulse compares DeFi protocols by their total value locked. DeFi Market Cap offers a similar service with a broader, but less detailed coverage. Not focused on DeFi alone, DappRadar gives a good overview of the available dApps on various chains. DappRadar also shows that actual usage numbers in DeFi are still small. Pools.fyi compares the yields of various staking pools.
- The recent DeFi frenzy on Ethereum caused a lot of projects to rebrand or pivot to DeFi. Throughout this article, we aimed to avoid the “everything is DeFi in the end” trap. Services like Chainlink’s decentralized oracle system are eminently important for DeFi, but must not forcibly be considered DeFi themselves.
Towards a Multichain Universe
It’s impossible to overlook that most of the DeFi action is currently happening on Ethereum. Other chains have little to no DeFi activity. Their small number of DeFi products are either iterations on Ethereum-based products (like the above-mentioned KAVA), or outright ripoffs (like many DeFi products currently being set up on Tron). Still, it’s worth trying to imagine how a multichain DeFi universe could look a few years from now.
The Cosmos blockchain is slowly gaining developer mindshare as a technology which makes it easy to create a system of interoperable blockchains. Polkadot is following a similar adoption path. Many emerging chains are directly bridging to Ethereum to gain access to Ethereum’s liquidity, or they use bridging technologies like Ren to achieve the same goal. Due to the limited programmability of the base layer, DeFi on Bitcoin is an uphill battle. Still, projects like the Lightning Network should be considered part of the DeFi universe.
It is worth keeping close tabs on these developments. If DeFi is really here to stay — which we strongly believe -, DeFi concepts will eventually find their way onto other chains. The dominant chains will become more densely interlinked in their quest to gain access to DeFi’s lifeblood: on-chain liquidity.
Defi Themes
Let’s touch on a number of themes that frequently pop up in the context of DeFi.
Governance
DeFi protocols are supposed to be, well, decentralized. The same must apply to their governance. A protocol’s core parameters and its overall evolution should be determined by its users. Users should define the appropriate reaction to critical situations, and resolve disputes. For that reason, various protocols started to issue tokens that represent protocol ownership and facilitate the governance process. Often, governance tokens are distributed to protocol users for free, based on usage patterns. The market’s greed for “free” governance tokens like COMP, BAL, MTA or YFI triggered a rush of money into DeFi protocols. Protocol tokens gave life to the “yield farming” meme in DeFi.
Yield Farming
DeFi protocols are often multi-sided. People deposit money for others to borrow. Or they offer security by betting against a particular price movement, for others to use as a hedge. Participants are motivated by interest or fee payments charged to the “takers” of these services. In that sense, depositing funds in DeFi is often an opportunity to earn yield. Yields in DeFi are typically higher than the yields you’d expect in traditional finance. The emergent nature of the market is a cause of this, and the higher risk for depositors.
DeFi yields went off the rails when governance token distributions became a common occurrence. For as long as supply lasts (no joke), DeFi yields reach(ed) astronomical heights, up to 1000% APR or more. This sparked a new meme, “yield farming”, complete with its cyber-agricultural jargon, like crop rotation (moving funds between DeFi protocols to optimize yield), or liquidity mining (the process of providing rewards to users of DeFi protocols to increase liquidity). The yield farming meme has brought the spotlight on DeFi, but it is unlikely that APRs of this magnitude will persist for a long time. Furthermore, many yield farmers are in for a rude awakening, when network fees, or protocol hacks, eat their hard-earned profits.
Risk
DeFi protocols come with their own risks. Technological risks come from bugs and hacks in the complex smart contract systems. Weeks without a major DeFi hack are still rare. Economic risks lie in badly designed protocols that can be drained, or otherwise tricked into unexpected outcomes by increasingly sophisticated attackers. Centralization risks exist when a protocol has central backdoors, for example a central “admin” address used to change protocol parameters or deploy new contract versions. Regulatory risks lie in whatever regulators might see in these novel protocols. Were there central points of contact or central actors? How will new asset types be classified, who or what is responsible for their issuance through complex technical systems?
Defi People, DeFi Memes
DeFi brought us a rich harvest of hilarious new Twitter accounts, fomo-inducing memes, and the occasional profound analysis. You do the wading:
- @DegenSpartan OG DeFi alpha hunter, will shill his takes until you can’t hear them any more.
- @DeFi_Dad, approaches DeFi from an early adopter end-user perspective.
- @bneiluj, engineer with a background in finance. He will liquidate your CDP if you don’t pay attention, or he’ll teach you how to liquidate others.
- @Weeb_Mcgee, developing highly specialized tools for those already a little too deep into the yield farming meme.
- @AndreCronjeTech, the madman behind yearn.finance. Most dangerous smart contract developer in DeFi.
- @StaniKulechov, the sharp tongued founder of Aave.
- @lemiscate, Aave’s also sharp tongued tech evangelist.
- @kaiynne, the equally sharp tongued founder of Synthetix.
- @hiFramework, a VC with an exclusive DeFi focus. Make sure to follow their two founders, Vance and Michael.
- @zhusu, CEO of Three Arrows Capital, another VC with a strong DeFi focus.
- @Arthur_0x, thesis driven DeFi investor.
- @SBF_Alameda, firmly rooted in CeFi, Sam recently posted a number of interesting and mildly contrarian thoughts on DeFi.
- @Rewkang, crypto trader with a strong focus on DeFi. Don’t challenge Andrew to a snakeoil selling contest, he’ll win.
- @safetyth1rd, another crypto trader with a strong DeFi focus.
- @Daryllautk, Coingecko research analyst with a strong DeFi focus.
- @nocturnalsheet, DeFi permabull, OTC broker.
Since you’re a weeb, joining DeFi’s inner circle will come naturally to you. DeFi’s official accessory is the waifu pillow. Tending your DeFi crops to optimize yield is hard, but honest work.
OKOK, Just Show me the Money Now
Mountain and Valley’s strategy on Iconomi features a number of DeFi tokens. For a pure DeFi exposure on Iconomi, choose their DEFI strategy. Digging a bit deeper, but still remaining within the “index” theme, you could look into the sDEFI synth on Synthetix.
As an alternative, start researching the projects mentioned in this article. Then, if you feel like it, start making individual investments into those projects. If you’d rather stay on the cutting edge of the cutting edge, research the nascent DeFi ecosystems on other chains. We recommend to check out Cosmos (example: Kava), and Polkadot (example: Acala, Laminar).
Use the existing DeFi products to get a feel for what’s going on. Maybe you’ll even farm some of that honest yield. Why not bridge your Bitcoin to Ethereum with Ren and stake it on Curve to earn some yield? It’s exciting!
As mentioned before, DeFi, and DeFi investments come with substantial risk. Do not interpret any of the recommendations in this introduction as an invitation to blindly risk your money.
Any value locked in DeFi is truly yours. Until the underlying smart contract gets hacked.
Cover image: Berca Mud Volcanoes, Romania, by Giuseppe Milo.