Bitcoin
$43,076.20+1.00%
Ethereum
$3,042.14+4.15%
XRP
$0.940603+0.29%
Cardano
$2.20-3.96%
Polkadot
$28.52-4.01%
Stellar
$0.274728-0.39%
Dogecoin
$0.204366-1.48%
Chainlink
$24.39-0.19%
Uniswap
$23.75+23.24%
Polygon
$1.12+0.20%
Cosmos
$39.78-0.25%
Algorand
$1.75+2.57%
Litecoin
$150.23-0.38%
Bitcoin Cash
$502.72-2.60%
Wrapped Bitcoin
$43,060.05+1.05%
The Graph
$0.666970-1.82%
Tron
$0.087198-3.44%
Ethereum Classic
$46.98-0.61%
Filecoin
$55.18-8.22%
Tezos
$6.42-6.55%
Aave
$291.89+6.66%
Monero
$234.42-0.33%
NEO
$38.47-1.06%
EOS
$3.96-0.72%
IOTA
$1.17-4.87%
BitTorrent
$0.003174-1.90%
Bitcoin SV
$128.68-4.37%
Waves
$23.53-2.45%
Maker
$2,327.41+3.28%
Dash
$160.94-1.89%
Decentraland
$0.701367+1.84%
Decred
$112.48-2.08%
ICON
$1.61+4.62%
NEM
$0.145672-0.70%
Zcash
$110.96+0.26%
OmiseGO
$8.89-0.03%
Paxos Standard
$1.00+0.00%
Ren
$1.13+10.68%
Yearn Finance
$30,233.00+0.07%
NuCypher
$0.273601-6.79%
Qtum
$9.44-2.38%
Bitcoin Gold
$51.75-1.82%
Basic Attention Token
$0.634000-1.24%
Fetch.ai
$0.801178-4.85%
0x
$0.886309-1.21%
Bancor
$3.52+1.74%
Kava.io
$5.58-4.83%
Band Protocol
$7.35-1.34%
Siacoin
$0.014887+0.16%
Nano
$4.51-2.73%
Loopring
$0.366660-4.14%
Storj
$1.07-1.52%
Numeraire
$41.29-1.16%
Civic
$0.438553-2.87%
Lisk
$2.80-4.03%
Orchid
$0.316412-0.61%
PAX Gold
$1,756.64+0.00%
Enzyme
$164.84+25.08%
Augur
$20.90-3.46%
Aragon
$4.50-5.14%
district0x
$0.147514-1.72%
Kyber Network
$1.44+0.83%
SingularDTV
$0.001171-5.11%
Tether
$1.00-0.02%
USD Coin
$1.00-0.01%
Dai
$1.00-0.00%

DeFi Lending: 3 Major Risks to Know

Whenever navigating any unregulated space, it’s crucially important to be aware of the risks.
Jul 13, 2021
Crypto Explainer+
Beginner

As with most things in the financial world, when something promises extremely high rates of return there’s usually a catch. DeFi lending is no exception.

To put it simply, DeFi, shorthand for decentralized finance, is an ecosystem of blockchain-based applications that offer a range of financial services similar to those provided by traditional banks, insurance brokers, and other financial intermediaries. The main difference being, these decentralized applications, known as dapps, run autonomously without any third party acting in the middle. That’s because each dapp is powered by a smart contract – a special computer program that automatically performs a function when certain predefined conditions are met.

Crypto lending is just one type of traditional financial service that is now accessible through these peer-to-peer operated dapps. Similar to depositing funds into a savings account to receive interest payments, crypto investors can now lock up their funds or use them to provide liquidity across a range of decentralized platforms and receive regular interest payments.

Many of the interest rates offered on these dapps are significantly greater than anything currently available in the traditional financial space, making it a highly attractive passive income stream for crypto holders. But before lending any assets, there are a number of associated risks everyone should be made aware of.

Impermanent loss

When you commit your assets to a liquidity pool, you risk something known as “impermanent loss.”

Impermanent loss is when the price of assets locked up in a liquidity pool changes after being deposited and creates an unrealized loss (in dollar terms) versus if the liquidity provider had simply held the assets in a crypto wallet.

The change occurs for two reasons and has to do with the Automated Market Maker system DeFi liquidity pools use.

  • DeFi pools maintain a ratio of assets in the pool. For example, an ETH/LINK pool might fix the ratio of ether and link tokens in the pool at 1:50 (respectively). Meaning anyone wishing to provide liquidity would have to deposit both ether and link into the pool at that ratio.
  • DeFi pools rely on arbitrage traders to align pool asset prices with the current market value, i.e., if the market price of link is $35 but the value of link in an ETH/LINK pool is $34.50, arbitrage traders will spot the discrepancy and be financially incentivized to add ETH to the pool and remove the discounted LINK.

When arbitrage traders flood the pool with one token in order to remove the discounted token – in this example, adding ether to take out link – the ratio of coins changes. In order to regain balance, the liquidity pool automatically increases the price of the token in higher supply (link) and reduces the price of the token in lower supply (ether) to encourage arbitrage traders to rebalance the pool.

Once the pool rebalances, the rise in the value of the liquidity pool is often less than the value of the assets if held by the lending protocol. That's an impermanent loss.

Impermanent loss chart

Here’s a summary of the graph’s data and the relationship between price change and percentage loss:

  • 1.25x price change = 0.6% loss
  • 1.50x price change = 2.0% loss
  • 1.75x price change = 3.8% loss
  • 2x price change = 5.7% loss
  • 3x price change = 13.4% loss
  • 4x price change = 20.0% loss
  • 5x price change = 25.5% loss

In defense of these protocols, liquidity providers (LPs) are rewarded with a proportionate amount of trading fees for adding assets to the pool, which can often offset impermanent losses. Uniswap, for example, charges a flat trading fee of 0.3% which is distributed to LPs.

Top tip: The best way to mitigate impermanent losses is to provide liquidity to pools containing less volatile assets such as stablecoins.

Impermanent loss shouldn’t be something that scares you away from the DeFi space, but rather a calculated risk to understand before lending your assets.

Flash loan attacks

Flash loans are a type of uncollateralized lending unique to the DeFi space. In the traditional, centralized model of banking, there are two types of loans:

  • Unsecured loans: These require no collateral because they are typically smaller amounts of money, think a few thousand dollars.
  • Secured loans: These are larger and require collateral like a property, car, investment, etc. Throughout the entire loan process, banks have tools to assess the credibility of clients, like credit scores, reports, and so on.

Flash loans are a type of unsecured loan that uses smart contracts to mitigate all the risks associated with traditional banking. The concept is simple: A borrower can receive hundreds of thousands of dollars in crypto assets without putting up any collateral but the catch is they have to pay the full amount back within the same transaction it was sent (usually a few seconds).

If the loan isn’t paid back, the lender can simply roll back the transaction, like it never happened. Because there’s zero risk involved in issuing these types of loans, there is no limit to the amount a person can borrow. And because the entire process is decentralized, there are no credit scores or reports preventing a person from qualifying for a flash loan.

Flash loan attacks are when bad actors borrow huge sums of money using these special types of loans and use them to manipulate the market or exploit vulnerable DeFi protocols for their own personal gain.

A recent flash loan attack against the yield-farming aggregator PancakeBunny made headlines when the attackers caused the price of PancakeBunny’s token, BUNNY, to drop 95%. They did this by borrowing large amounts of BNB through the PancakeSwap lending protocol, manipulating the price of BUNNY in off-market lending pools, and then dumping that BUNNY on the open market, causing its price to crash.

As is the case with almost all flash loan attacks, the thieves escaped without repercussion. It’s estimated the attackers netted $3 million in total.

Once a liquidity pool is drained of a particular token, liquidity providers can become exposed to impermanent loss. Not to mention, lesser-known tokens hit by these attacks – such as BUNNY – cause investors to lose all confidence in the projects and they rarely recover in price.

DeFi rug pulls

Without traditional forms of regulation in the DeFi space, users have to develop a certain degree of trust with the platforms they’re willing to lend their assets to or buy tokens from. Unfortunately, that trust is often breached in the form of rug pulls.

Rug pulls are a new type of exit scam where DeFi developers create a new token, pair it to a leading cryptocurrency such as tether or ether and set up a liquidity pool.

They then market the newly created token and encourage people to deposit into the pool, often promising extremely high yields. Once the pool has a substantial amount of the leading cryptocurrency in it, the DeFi developers then use back doors intentionally coded into the token’s smart contract to mint millions of new coins that they use to sell for the popular cryptocurrency. This completely drains the popular cryptocurrency from the pool and leaves millions of worthless coins in it. The founders then disappear without a trace.

A famed "billion-dollar rug pull" came in 2020, when SushiSwap developer Chef Nomi unexpectedly liquidated his SUSHI tokens after raising over a billion dollars in collateral. The price of the Uniswap competitor’s token fell to near zero in what is remembered as one of “the most dramatic moments in DeFi.”

DeFi fraud chart 2020

DeFi fraud is a billion-dollar industry and, despite efforts to mitigate risks by developers, remains a prevalent aspect of the growing space. During the second half of 2020, it was reported DeFi related rug pulls and exit scams accounted for 99% of all blockchain-based fraud.

How to avoid these DeFi lending threats

Despite the rampant increase in this type of malicious activity, there are methods to vet a company for potential exit scams before investing. These include:

  • Verifying the team’s credibility on other projects
  • Diligently reading through a project’s white paper
  • Checking to see if the project’s code has been audited by a third party
  • Being acute to potential red flags – like unrealistic projected returns and overspending on promotions and marketing

Ultimately, the same permissionless designs that make DeFi protocols vulnerable to theft are its source of potential to disrupt the finance industry. Limited regulatory oversight paired with the open-source nature of blockchain means there will always be vulnerabilities for lending protocols dealing with large sums of money. As is true with almost all sectors of the blockchain industry, the goal is that these risks will be mitigated over time.

DISCLOSURE

The leader in news and information on cryptocurrency, digital assets and the future of money, CoinDesk is a media outlet that strives for the highest journalistic standards and abides by a strict set of editorial policies. CoinDesk is an independent operating subsidiary of Digital Currency Group, which invests in cryptocurrencies and blockchain startups.

Loading...