ArEn

Lesson 10 of 136 min read

Decentralised finance (DeFi) · Beginner

DeFi in plain words: finance without a bank in the middle

DeFi, short for decentralised finance, is a set of financial services that run on smart contracts instead of inside a bank or a company. You connect your own wallet, use the service, and keep control of your coins the whole time. There is no account to open and no opening hours. There is also no one to call when something goes wrong.

Swapping: exchanges without a company

A decentralised exchange lets you swap one token for another straight from your wallet. Instead of matching buyers with sellers, most use a liquidity pool: a smart contract holding two tokens. You put one in and take the other out, and a formula sets the price from how much of each the pool holds. Each swap pays a small fee to the people who filled the pool.

Lending and borrowing

Lending services pool deposits from many people and lend them to borrowers, with the interest set by code from supply and demand. Borrowers must lock more value than they borrow, often 150 percent. If the value of what they locked falls too far, the contract sells it automatically to repay the loan. That is called liquidation.

Earning a yield

  • Providing liquidity to a pool earns a share of its trading fees.
  • Staking locks coins to help secure a network or a service, for a reward.
  • Very high advertised yields usually come from new tokens being handed out, whose price can fall fast, or from hidden risk.

Example

Laila puts USD 1,000 into a pool that pays its providers a share of trading fees.

Calm monthWild month
Fees she earns+USD 12+USD 25
Effect of the two prices moving apart−USD 2−USD 60
Result after one month+USD 10−USD 35

Example figures only. Busy markets earn more fees, but can cost more when prices split apart.

The risks, plainly

  • Code risk: a bug or a hack in the smart contract can drain the pool.
  • Price risk: when the two tokens in a pool move apart in price, a liquidity provider can end up with less than if they had simply held them.
  • Liquidation risk: borrowers can lose their collateral in a fast fall.
  • Scam risk: fake pools and copycat websites are common. Use only addresses you have checked yourself.

In short

  • DeFi is swapping, lending and earning through smart contracts, from your own wallet.
  • Liquidity pools set prices by formula and pay fees to those who fill them.
  • There is no bank to undo mistakes: high yields carry high risks, so start small or only learn.

Quick quiz

  1. In DeFi, who holds your coins?

  2. How does a liquidity pool set its price?

  3. A borrower's collateral falls too far in value. What happens?