Around the Block #7: Understanding yield farming and the latest developments in DeFi
Coinbase Around the Block, sheds light on key issues in the crypto space. In this edition, Justin Mart explores the rapidly evolving DeFi landscape and the emergence of “yield farming”, as well as other notable news in the space.
To participate in the emerging cryptoeconomy, sign up for Coinbase today.
DeFi and the yield farming phenomenon
DeFi protocols exploded in all metrics over the last month, passing $3B in Total Value Locked (TVL), triggered by the launch of the Compound governance token ($COMP) and subsequent “yield farming.”
What is yield farming?
Most crypto protocols are designed to be decentralized. For base-level networks (like Bitcoin and Ethereum), this is achieved through Proof of Work, where anyone can be a miner and earn some BTC or ETH in exchange for helping secure the network. In so doing, control of the network is more or less democratic (one CPU one vote).
But how do projects built on Ethereum achieve decentralization? One path is to hand over governance in the form of tokens to the users of a protocol, effectively turning users into stakeholders. This is precisely what Compound (an autonomous borrow/lend protocol) pioneered. They are releasing $COMP tokens, which provides governance rights over the Compound protocol, to the users of the network, distributed pro-rata according to how much they use the protocol.
Sounds good, right? Two observations:
$COMP governance tokens hold value. Compound is the leading DeFi borrow/lend protocol, and governance rights over this network are powerful.
Distributing $COMP pro-rata to users of the protocol is free yield. It’s an added bonus just for using Compound.
When $COMP was released, the token quickly appreciated in value owing to Compound’s leading position in the DeFi ecosystem. The community quickly realized that adding assets to Compound and/or borrowing against them resulted in significant interest rates due to the additional $COMP being distributed (topping 100% APY at some points).
Ergo, the practice of using a protocol to earn native platform tokens is known as “yield farming.”
What happened with Compound?
Yield farming drove a flood of capital into Compound — in a single week in mid-June nearly half a billion dollars was added to Compound, driving total value locked (TVL) from $100M to over $1.7 B at the peak. $COMP similarly opened trading around $80 and exploded to over $300.
However, not all metrics are as honest as they appear. With Compound, it’s possible to recursively invest your capital, multiplying your yield. It goes like this:
Add 100 USDC as collateral to Compound (earning interest + $COMP)
Borrow 70 DAI against your 100 USDC collateral (paying interest but earning $COMP)
Trade 70 DAI for 70 USDC (bonus: on a DEX)
Repeat Step 1
DeFi composability adds another dimension, where it’s also possible to stack your yield across different protocols. For example, you could lock DAI in Compound, and deposit your compound-DAI tokens into Balancer for additional yield farming.
Popular DeFi tracker defipulse.com does some cleaning on reported TVL to account for these effects. As of July 23, 2020 they report Compound’s TVL at $550M.
Yield farming is not without risk
In efficient markets, increased yield is reflective of increased risk. While DeFi is a largely inefficient market today, outsized DeFi yields are still indicative of additional risk:
Smart Contract risk: Smart contracts are prone to exploits, with several examples just this year (bZx, Curve, lendf.me). The surge in DeFi has led to millions in value being slammed into nascent protocols, increasing the incentive for attackers to find exploits.
System design risk: Many protocols are nascent and the incentives can be gamed. (E.g., Balancer, where FTX was able to capture >50% of the yield due to a simple flaw)
Liquidation risk: Collateral is subject to volatility, and debt positions are at risk of becoming undercollateralized in market swings. Liquidation mechanisms may not be efficient, and could be subject to further loss.
Bubble risk: The price dynamics of the underlying network tokens (like $COMP) are reflexive because expected future value follows usage, and usage is incentivized by expected future value.
In general, DeFi protocols with significant capital are honeypots for exploits. In just one week, the Balancer protocol was gamed by an exchange, changed its protocol rules, got hacked, and saw the token price go up 3x! In some ways DeFi is still the wild west — be careful out there.
Downstream effects: A look at the broader DeFi ecosystem
DEX Volume explodes, begins to rival Centralized Exchange volumes
DEX volume rocketed upwards over the last month, and has begun to rival some centralized exchanges.
This is a direct result of yield farming, especially when recursively borrowing and lending requires swapping between two different ERC-20 tokens. Stablecoins have been most preferred (as in the example above), which led to Curve’s rise to dominance (a stablecoin-specific DEX).
DEXs are also following a similar and proven growth strategy that gave rise to popular exchanges in early 2017: access to the long-tail of tokens / assets not listed on other exchanges. In this case, DEXs provide liquidity for all DeFi tokens and projects. Token creation will likely outpace how quickly centralized exchanges can add them, making DEXs the natural playground for novel new assets and the long-tail of smaller assets.
DEXs have done over $1B in total DEX volume over the last 7 days, over 3x of total 2019 DEX volume! More volume than ever is flowing through DEXs. See a prior Around the Block analysis on DEXs and their coming potential for more.
DeFi stablecoins see strong Q2 growth
Stablecoins used within DeFi (notably Dai and USDC) saw record Q2 growth, as these are preferred yield-farming assets owing to their low volatility which prevents liquidation risk. Both USDC and Dai market caps saw >50% growth, moving from $700M to $1.1B, and $100M to $150M respectively since the launch of $COMP.
Market cap of all ETH tokens surpasses ETH
The market cap of all ETH tokens recently surpassed the market cap of ETH itself. While driven mostly by a few assets (LINK and CRO), this is still an intriguing flip showing how the ETH ecosystem is expanding in value faster than the base native asset.
If you believe in the fat protocol thesis, then it may indicate ETH is undervalued, as growth in the utility layer would eventually accrue to the base layer. But if you don’t, it could raise questions around Ethereum’s long-term security model, where it might be economically rational to attack Ethereum in order to extract value from assets sitting on top.
Ethereum Suffers Periods of Congestion; Highlighting Scaling Challenges
Predictably, DeFi activity produced a rise in median gas prices, ranging between 40 and 70 Gwei today. A single ETH transfer costs ~$0.35, but more complex operations like swapping assets on a DEX or entering and exiting multiple yield-farming positions can be substantially more expensive (at times >$10 per transaction).
High gas fees are sneakily insidious because they restrict access to DeFi to only those with sufficient capital. When it costs $10 to enter and exit yield farming positions, the subset of users with limited balances are cut off.
High gas fees are a direct consequence of scaling challenges. While still a drag today, efforts around ETH 2.0 and Layer-2 solutions show meaningful progress, but we’ll have to wait and see how those efforts play out.
Other DeFi projects surge
Wrapped BTC Projects: Wrapped BTC projects create an Ethereum ERC-20 token that is redeemable 1:1 for BTC on the Bitcoin blockchain, thus marrying the BTC and ETH chains and bringing BTC’s balance sheet into DeFi. These projects rose substantially as users sought out more capital for yield farming. BitGo’s wBTC and Ren’s rBTC are notable standouts, with ~$140M BTC locked between them (and wBTC the clear leader with $130M).
Balancer: A liquidity provider and DEX similar to Uniswap launches with a yield farming governance token, and quickly grows to over $200M TVL.
Aave: A borrow / lend protocol similar to Compound, but with added flash-loan capabilities, a native $LEND governance token, and differentiating loan products. $LEND value has increased significantly following $COMP’s rapid rise, and Aave’s TVL has similarly exploded to over $450M.
Synthetix: A synthetic-asset protocol on Ethereum with similar yield-farming mechanics, Synthetix has also seen incredible growth. Their synthetic dollar sUSD has captured volume amidst the stablecoin explosion.
yEarn Finance: A suite of DeFi products, including a robo advisor that allocates your deposits to the highest-yielding protocols. They released a governance token over the weekend ($YFI) with unique properties in that it has no previous owners and no outside funding, a fixed supply, and is earned through yield farming. Upon launch, capital rushed toward farming and yields went as high as 1,000% APR.
Infrastructure: Chainlink, aiming to become the oracle bridge powering the suite of crypto and DeFi Dapps, surges to ATH above $8 and cracks top-10 by market cap; InstaDapp surges to nearly $200M in TVL as a simple platform to easily manage yield farming positions.
Others: Ampleforth’s unique “uncorrelated token