Sunday, June 20, 2021

What is DeFi?

I talk to several friends who have been investing in crypto some of them have been doing it for years. Imagine my surprise when they asked me "What's DeFi?" when I started to talk about DeFi. So here I am trying to do my best to explain DeFi.

TRDL: At the bottom

DeFi: what it is and how it works

The term “Decentralized Finance” (DeFi) covers financial services carried out on a blockchain. DeFi are financial services with no central authority. It involves taking traditional elements of the financial system and replacing the middleman with a smart contract. We can also describe it as the merger between traditional banking services with blockchain technology, in layman’s terms.

So, for DeFi to work, it needs a decentralized infrastructure to run on. This is where the Ethereum blockchain comes into play. The Ethereum blockchain is a DIY platform for decentralized applications (DApps).

Most DeFi protocols operate on the Ethereum blockchain, although a few have migrated to other competing blockchains to enjoy greater speed and scalability.DeFi: what it is and how it works

The term “Decentralized Finance” (DeFi) covers financial services carried out on a blockchain. DeFi are financial services with no central authority. It involves taking traditional elements of the financial system and replacing the middleman with a smart contract. We can also describe it as the merger between traditional banking services with blockchain technology, in layman’s terms.

So, for DeFi to work, it needs a decentralized infrastructure to run on. This is where the Ethereum blockchain comes into play. The Ethereum blockchain is a DIY platform for decentralized applications (DApps).

DeFi’s top applications — and notable protocols 

Now, that we know what DeFi is, let’s look at some of its notable applications.

1. Decentralized exchanges (DEXs)

Decentralized exchanges are exchanges that operate without an intermediary. They are not as popular as their centralized counterparts. 

With DEXs, users can connect directly with one another to buy and sell cryptocurrencies in a trustless environment. Assets traded under DEXs are never held in an escrow or third party wallet, as is done with centralized exchanges. Some top DEXs include Uniswap, Curve and SushiSwap. 

Centralized exchanges, on the other hand, are trading platforms operated by a central authority. Platforms like Binance and Coinbase are popular examples of centralized exchanges. They are custodial in nature. In other words, the buyers and sellers trust the central authority to keep their digital assets safe.

2. Lending Platforms

DeFi proponents say the decentralized lending platforms are democratizing the lending ecosystem. These platforms use smart contracts in place of intermediaries like banks — allowing borrowers and lenders to participate in an open system. Lenders can earn interest on their crypto assets by loaning them out, while borrowers can access liquidity without selling off their assets. 

With the traditional financial system, you need to offer collateral before you can access loans from the bank. This is similar to what happens in DeFi. Borrowers have to over-collateralized their loans by offering assets more valuable than the loan value. Some of the top DeFi lending platforms include Maker, Compound, and Aave.

3. Prediction Markets

A prediction market allows participants to make bets on the outcomes of future events. These platforms function like traditional prediction markets — but with blockchain functionality, which eliminates intermediaries. Examples of DeFi prediction markets are Augur, Gnosis and FTX. Crypto powered prediction markets flourished during the 2020 U.S. presidential elections. Augur recorded a milestone volume of over $8 million. Other platforms like Polymarket and Predictit also saw significant election volumes.

4. Yield farming

Yield farming is the process of locking up cryptocurrencies in exchange for a reward. It’s the hottest new term in the DeFi space. Money markets Compound and Aave are two major platforms to farm DeFi yields. Yield farmers stake popular coins like ether, dai, tether and others.

DeFi benefits 

1. Permissionless

Traditional banks are expensive to run and bureaucratic in nature. They take too long to process transactions and have cut many people out of the financial system due to their stringent requirements. DeFi came to solve many of these issues. Here are some of its benefits.

DeFi opens everyone to the financial system irrespective of income, race, wealth, culture or geographic location. All a user needs is a mobile phone or computer with internet access.

There is a significant number of unbanked people globally. The World Bank estimated in 2018 that 20% of the world’s population lack access to banking services. One reason for this is that most of the unbanked lack much-needed know-your-customer (KYC) documents like state-issued I.D. cards.

Several DeFi platforms allow users to function without any of this. You can take out a Maker loan, for instance, without any identification or credit score.

2. Interest rates for investors

Beyond keeping your wealth like a savings account, DeFi also allows you to earn income. Platforms like Aave and Compound allow you to deposit assets and lend them out to borrowers. At an agreed-upon time, you get your interest and can plow your capital back into the system. 

Compound offers up to 4.3% interest on deposits from some tokens, while Aave is paying out as much as 5.73%. Compared to the 0.6% to 0.7% currently offered by traditional banks for savings accounts, it’s not difficult to see why some people are shifting their assets to DeFi. 

3. Control over your own finances

With DeFi platforms, you remain in control of your finances. While you have to deposit your funds into the platform, you decide what happens to them. Instead of trusting human intermediaries to qualify you for a loan or decide how to manage your investments, a smart contract does that.

No one can ban you from a DeFi protocol. The underlying smart contract is law, and it operates blindly. 

4. Heightened transparency

DeFi enables a greater level of openness and accessibility. Since most DeFi protocols are built on the blockchain — a public ledger — all activities are available to the public. Anyone can view transactions, but these accounts are not tied to anyone directly as is the case with traditional banks. Instead, accounts are pseudo-anonymous, listing only numerical addresses. Users with programming knowledge can also access most DeFi products’ source code to audit or build upon since they’re open source. Open-source codes are far more secure and of higher quality than proprietary software, thanks to community interaction.

DeFi drawbacks and security risks 

1. Security issues with smart contracts

Smart contracts form the backbone of any DeFi protocol. But they are susceptible to manipulation. 

By default, smart contracts are open-source. This design allows prospective users to review them before investing in the DeFi protocol. Most DeFi protocols give their smart contracts to security firms to audit. This is where the problem begins. It’s not unusual for humans to miss flaws in these contracts, which could be exploited in the future. 

Take The DAO, for example. The digital “Decentralized Autonomous Organization” was an investor-directed venture capital fund of sorts that launched in April 2016 and grew quickly to become the biggest crowdfunding platform, managing about $120 million. However, by June that same year, hackers found a vulnerability in the smart contract and stole about a third of its funds. They moved the funds into a “child DAO,” which had the same structure as the parent protocol. Users couldn’t access their funds for weeks, making this perhaps the largest hack in crowdfunding history.

There have been several refunds since then, allowing investors with residual DAO tokens to get some compensation. However, the incident sparked an awakening in the DeFi space. Now, developers who build protocols ensure that their smart contracts go through multiple audit rounds 

2. Data feed centralization

Blockchain protocols can’t access off-chain data. To remedy this, many of them use oracles — third-party services that provide access to external information. Oracles serve as bridges between blockchains and the outside world, relaying information to smart contracts for them to utilize. 

The major issue with oracles is creating a central point of trust into trustless and decentralized setups. This centrality provides a vulnerability for the entire smart contract. When an oracle broadcasts the wrong information, the consequences could be dire. 

Take the case of Synthetix — a DeFi asset issuance platform. On June 25, 2019, an oracle transmitted false price feed data to the platform’s smart contract. A user’s trading bot took advantage of this and inflated the user’s balance. This allowed the user to convert this balance to about 37 million Synthetic ETH (sETH) tokens (worth $70 million at the time). Synthetix confirmed that they reached out to the user, who agreed to reverse the transaction in exchange for an unspecified bug bounty. 

3. Bad actors

In September last year, the top crypto exchange KuCoin confirmed that it had suffered a hack that saw $150 million in bitcoin and ERC-20 tokens transferred from its hot wallets. Days after the event occurred, blockchain intelligence software Elliptic crunched the numbers and found that the exchange had actually lost about $281 million. 

The report added that the hackers had been laundering the funds through DeFi protocols Uniswap, Kyber Network and others. As Elliptic explained, many centralized exchanges had frozen the hackers’ accounts, preventing them from moving their funds. However, in DEXs, the hackers found the perfect conduits — platforms with no central authorities to freeze their funds.

TLDR: DeFi are financial services with no central authority. It involves taking traditional elements of the financial system and replacing the middleman with a smart contract. We can also describe it as the merger between traditional banking services with blockchain technology, in layman's terms.


No comments:

Post a Comment