How to get started in DeFi: A guide on the first steps in decentralized finance

Decentralized finance (DeFi) is a sector within the cryptocurrency industry focused on providing decentralized financial services.
Decentralized finance (DeFi) is a sector within the cryptocurrency industry focused on providing decentralized financial services.

Decentralized finance (DeFi) is a sector within the cryptocurrency industry focused on providing decentralized financial services. It consists of numerous financial services created by developers that anyone can access. These services differ from centralized alternatives, as they are run by groups of individuals through decentralized organizations and give users greater control over their funds.

The DeFi sector is a hotbed of innovation with new decentralized and non-custodial financial services being added every week. Anyone can take advantage of these services from anywhere in the world.

According to World Bank data from 2017, about 1.7 billion adults around the globe were estimated to be unbanked — without an account at a financial institution. Financial services on DeFi protocols have no entry requirements, so anyone can have access to financial services through it. The only entry barrier, in essence, is the know-how.

The DeFi ecosystem is built on top of public distributed networks and uses self-executing agreements written into lines of code called smart contracts, ensuring that access to financial services is democratized.

How to use DeFi protocols?

Most DeFi protocols are built on top of networks like Ethereum or Binance Smart Chain, and the number of competing blockchain networks with support for smart contracts is increasingly growing. Before deciding to use services on DeFi, it’s important to choose a network.

Most large protocols now support various blockchains, with the difference between them often being ease-of-use and transaction fees. Networks like Etheruem, Binance Smart Chain and Polygon are all accessible through wallet extensions like MetaMask, and only a few parameters need to be changed to switch networks.

These wallet extensions essentially allow users to access their funds directly on their browsers. They are installed just like any other extension and often require users to either import an existing wallet — through a seed phrase or a private key — or create a new one. To bolster security, they are also password-protected. Some web browsers come with these wallets built-in.

Moreover, these wallets often have mobile applications that can be used to access DeFi projects. These applications are wallets with built-in browsers ready to interact with DeFi applications. Users can synchronize their wallets by creating them on one device and importing it to the other using the seed phrase or private key.

To make things easier for users, these mobile applications often also integrate the open-source WalletConnect protocol. This protocol allows users to connect their wallets to DeFi applications on desktop devices simply by scanning a QR code with their phones.

Before getting started, it’s worth pointing out that this is a highly experimental space with a number of risks associated with it. Exit scams, fraudulent projects, rug pulls and other scams are common, so always do your own research before putting your money in.

To avoid falling for these schemes, here’s how to go a step further on security: It is best to find out if the projects have been audited. Finding out this information may involve some research, but often a direct search for the name of the project plus “audits” will reveal whether it has been audited or not.

Audits help weed out potential vulnerabilities while deterring bad actors. Less-than-stellar projects are unlikely to waste their time and resources to get audited by reputable firms.

Buying crypto

DeFi applications are built on top of networks and each network has its own native tokens that are easily identifiable through the ticker symbol they use on exchanges: Ethereum (ETH), Polygon (MATIC), Binance Coin (BNB) and so on.

These native tokens are used to pay for transactions on these blockchains, so you’ll need some of those tokens to move funds around. You can choose to just buy these native assets before delving into DeFi, or you can add stablecoins or other assets.

After buying the funds on a centralized exchange, you need to move them to a wallet you control that supports that network. It’s important to avoid moving funds to the wrong network, so before withdrawing, make sure you are using the correct network

Some exchanges let users, for example, withdraw Bitcoin (BTC) to an Ethereum address, or Ethereum to the Binance Smart Chain. These withdrawals are for tokenized versions of BTC or ETH on those networks, which can be used in DeFi.

Every transaction taken on DeFi protocols needs to be manually approved and incurs a transaction fee, so it’s important to choose a network with low transaction fees.

What are DeFi services?

After selecting an application to interact with and funding a wallet, it’s time to start using DeFi services. The simplest actions would be to either trade using a decentralized exchange (DEX), provide liquidity and earn fees over time, or lend funds using a lending protocol.

There are hundreds of possibilities out there, so instead of individually going over every project, here’s an overview of which products and services are available to use and what you should consider before using them.

To start using a wallet compatible with DeFi protocols, all you need to do is head over to the website of these protocols and connect your wallet to them. This is either done via a pop-up window or through a button that says “connect” on one of the upper corners of the website.

Connecting your wallet is comparable to “logging in” to the service using your account — in this case, your wallet address. Before lending, borrowing, or trading tokens on DeFi protocols, you will need to enable each token individually, so the protocol can access them on your wallet. This connection process incurs a small fee.

Making your crypto work for you with DeFi

It’s important to understand that while there are numerous products and services in DeFi, the sector is highly interconnected and composable, meaning that complex strategies to improve yields are possible but a bug in one protocol could lead to losses in another.

The main advantage of using DeFi is that there are no trusted third parties, however. Anyone can review the code written in the smart contracts DeFi protocols use, since most of these protocols are run by decentralized autonomous organizations (DAOs) and not centralized companies.

The DeFi ecosystem offers a few services that potential users need to understand before diving into space.

Lending

DeFi protocols attempt to make it easy to both lend and borrow cryptocurrencies without intermediaries. Interest rates are based on supply and demand and, as such, vary over time. Most protocols require borrowers to overcollateralize their loans to ensure lenders get paid back in case of market turmoil.

Imagine a user needs $1,000 to cover a short-term obligation. Without DeFi, they may be forced to sell their Bitcoin or Ethereum holdings to have that money. Using DeFi lending services, they can deposit, for example, $1,500 worth of BTC into a protocol to take out a $1,000 loan in a stablecoin. They can meet their obligation without losing exposure to BTC, and then just have to repay the loan back, with interest added to it.

If the price of BTC plunges and the value of their collateral drops to $1,000, the DeFi protocol’s smart contracts will liquidate the coins to pay back the lender. If the price of Bitcoin goes up while they repay the loan, the move was justified as the user did not lose exposure.

Liquidity mining and yield farming

Decentralized exchanges are some of the leading DeFi protocols. Instead of using order books like centralized exchanges, they use what’s called an automated market maker (AMM) model to execute trades on the blockchain through smart contracts.

The model replaces traditional order books with pre-funded liquidity pools that include the assets in a trading pair. The liquidity in these pools is provided by users who are then entitled to earn fees from the trades executed on that pair. This is known as liquidity mining, as users earn by simply providing liquidity to these pools.

Liquidity mining has specific risks lending doesn’t, including impermanent loss. Impermanent loss is a result of liquidity providers having to deposit both assets of a trading pair into a liquidity pool with, for example, ETH and stablecoin DAI. When the trades that are being executed lower the amount of one asset in the pool — in this case, ETH — and its price rises, the liquidity provider suffers an impermanent loss, as they now hold less ETH while its value went up.

The loss is impermanent because the price of the asset could still move back to when it was first added to the pool and the fees collected could make up for the loss over time. Nevertheless, it is a risk that needs to be considered.

Liquidity mining is often complemented with the distribution of a DeFi protocol’s governance token. Some protocols distribute governance tokens to anyone interacting with them over time, leading to a process called yield farming. It started with Compound’s COMP governance token and has expanded to most major DeFi protocols.

Asset management

DeFi asset management platforms allow users to monitor, deploy and manage their capital through a single interface. When lenders and liquidity providers deposit funds on a DeFi protocol, they are given tokens representing these interest-earning positions — often denominated as compound tokens (cTokens) and liquidity provider tokens (lpTokens).

These tokens then have to be redeemed for the invested principal, or the amount originally invested. If a user deposits 100 DAI into a platform, they get a variable amount of cDAI worth 100 DAI sent to their wallets. Similarly, if a user deposits 100 DAI and 100 ETH into a liquidity pool, they get lpETHDAI sent to their wallets.

Through asset management platforms, it’s easier to manage numerous positions among various DeFi protocols and to execute more complex strategies. For example, it’s possible to use a cToken from one protocol to provide liquidity in another, greatly improving the generated yield.

To make this complex strategy easier to understand, let’s assume that you have 1000 DAI and 1 ETH in a wallet. You would use protocol A to deposit the DAI and ETH and get 1000 cDAI and 1 cETH, representing our lending positions on this protocol and allowing us to earn interest. 

You can then deposit cDAI and cETH in a liquidity pool on protocol B to earn more cDAI and cETH from trading fees. When cashing out, you would be withdrawing, for example, 1100 cDAI and 1.1 cETH from protocol A because you earned more cTokens from the fees on protocol B. These tokens would then be redeemable for the principal amount that was invested plus accrued interest.

Complex strategies increase the yield but also increase the risk because of composability. DeFi protocols build on one another’s publicly available code and services, creating what’s referred to as “lego money.” Each piece is connected.

Staying safe

The DeFi sector is exploding with innovation and, as was the case with initial coin offerings (ICOs), malicious actors try to take advantage of users maximizing their earnings through all sorts of schemes.

It’s important to determine whether a DeFi application has been audited before using it, but there are several questions users need to ask themselves before interacting with a protocol or buying its governance token.

Triple-digit annual percentage yields (APYs) aren’t unheard of in the DeFi space, partly because of the possibilities associated with yield farming. However, a golden rule of investing is that risks equal rewards: Above-average APYs are normal, but if they are too good to be true, a deeper look is necessary.

That deeper look would involve researching the team that originally created the DeFi protocol. Before protocols move to become DAOs, a centralized team works on its smart contracts. It’s not uncommon for anonymous teams to develop projects, so the best way to gauge whether the team can be trusted or not is to analyze their transparency as to what’s being done in the protocol.

Finally, it’s important to understand if the project’s community is authentic. Deploying bots on social media to hype up a project has been done before, but an active community that openly discusses governance proposals, future implementations, user experience and more cannot be faked.

Open-source projects like DeFi Score have been created to quantify risks in permissionless lending protocols on DeFi. These can help users understand how they should access the risk in these protocols.