Decentralised Finance (DeFi)DeFi

Decentralised finance (DeFi) is lending, trading and other financial services run by smart contracts on public blockchains instead of by banks or brokers.

In traditional finance, a bank or broker stands between you and every loan, trade or deposit. DeFi replaces that middleman with code. Anyone with a wallet can lend, borrow or trade around the clock — but there is no help desk, no deposit insurance and no one to reverse a mistake. Understanding how it works and where it breaks is essential before putting money in.

Category
Cryptocurrency and Blockchain
Reading time
4 min
Also called
Decentralized finance, Open finance, On-chain finance
Updated

DeFi in plain words

DeFi is an umbrella term for financial products and services that anyone with access to Ethereum can use.1

It uses crypto and smart contracts to offer services without a bank or broker in the middle.1 Users can lend, borrow, go long or short and earn interest.1

Stablecoins are increasingly important in DeFi.2 Trading often happens on automated market makers instead of an Order Book.3 See Stablecoin and Liquidation.

How a DeFi loan works, step by step

  1. Connect a wallet

    DeFi apps are used from a self-custody wallet; no account is opened.

  2. Deposit collateral

    You lock crypto in a lending smart contract — a service with no intermediary.1

  3. Borrow

    You borrow another asset, often a Stablecoin, up to a limit set by the protocol.

  4. Pay interest

    Interest rates are usually variable and set by supply and demand in the pool.

  5. Watch the health of the loan

    If collateral value falls too far, the protocol can liquidate it automatically.

  6. Know the code risk

    Attackers try to exploit vulnerabilities in smart contracts, and stolen assets are mostly irrecoverable.4

Worked examples

Example 1 — Borrowing against collateral

Liquidated after a 37.5% fall

You deposit ETH worth $10,000 and borrow $5,000 of a stablecoin. The hypothetical liquidation threshold is 80%.

Example 1 — Borrowing against collateral — calculation
Liquidation when collateral <$5,000 ÷ 0.80 = $6,250
Fall needed($10,000 − $6,250) ÷ $10,000 = 37.5%

The loan is run by smart contracts rather than an intermediary.1 Liquidation happens automatically, with no one to ask for more time.

Example 2 — Earning interest

+$80

You lend $2,000 of a stablecoin at a hypothetical variable 5% APR, which falls to 3% after 6 months.

Example 2 — Earning interest — calculation
First 6 months$2,000 × 5% × 6/12 = $50
Next 6 months$2,000 × 3% × 6/12 = $30
Year total$50 + $30 = $80

Earning interest is one of the main DeFi uses, but the rate is not fixed.1

Example 3 — A contract exploit

−$3,000

You deposited $3,000 in a protocol whose smart contract is hacked.

Example 3 — A contract exploit — calculation
Funds drained$3,000
Chance of recoveryVery low

Deployed code usually cannot be patched, and stolen assets are mostly irrecoverable.4

DeFi vs. traditional finance

AspectDeFiTraditional finance
Run bySmart contractsBanks and brokers
AccessAnyone with a walletAccount and identity checks
Opening hours24/7Business and market hours
ProtectionUsually noneDeposit and investor protection schemes

What people use DeFi for

  • Swapping tokens

    Trading on decentralised exchanges.

  • Lending

    Earning variable interest on deposited crypto.

  • Borrowing

    Getting stablecoins against crypto collateral.

  • Leverage

    Building leveraged positions on-chain.

Advantages and disadvantages

Advantages

  • Open to anyone with an internet connection.
  • Runs 24/7 without intermediaries.
  • Transparent, public code and transactions.
  • Services can be combined freely.

Disadvantages

  • Smart contract bugs and hacks can drain funds.
  • No deposit insurance or customer support.
  • Automatic liquidations in fast markets.
  • Rates and token prices are volatile.

Going deeper

Read as far as you need. Each level builds on the one before it.

Finance without middlemen

Beginner

DeFi provides financial services through smart contracts rather than intermediaries.1

The building blocks

Intermediate

Lending pools, stablecoins and AMMs are the core pieces. Stablecoins matter more and more in DeFi.2 AMMs replace the order book with smart contracts.3

Risk stacks up

Advanced

Each protocol adds code risk; attackers look to exploit vulnerabilities in smart contracts.4 Combining protocols stacks those risks, together with Liquidation, Volatility and stablecoin risk. Rules differ by country.

Common mistakes

  1. Borrowing too close to the limit

    Getting liquidated by a normal price swing.

  2. Chasing the highest yield

    Ignoring where the yield comes from.

  3. Trusting unaudited code

    Depositing in new protocols without checking.

  4. Approving unknown contracts

    Signing approvals that let a contract move your tokens.

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1You borrow $4,000 against $8,000 of collateral with an 80% liquidation threshold. At what collateral value are you liquidated?
Q2What replaces banks and brokers in DeFi?

Key points to remember

  1. DeFi is financial services run by smart contracts.
  2. Anyone with a wallet can use it, 24/7.
  3. Lending, borrowing and swapping are the main uses.
  4. Collateralised loans can be liquidated automatically.
  5. Code risk is real and losses are hard to recover.

Frequently asked questions

Is DeFi regulated?

It depends on the country and the service. Rules differ and are changing.

Can I lose more than I deposit?

In a simple loan, usually not, but liquidation can wipe out most of your collateral.

Is DeFi only on Ethereum?

No. Ethereum is the largest DeFi network, but many other blockchains host DeFi apps.

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. ethereum.org. Decentralized finance (DeFi) (opens in a new tab) Checked .
  2. Federal Reserve Board (FEDS Notes). Primary and Secondary Markets for Stablecoins (opens in a new tab) Checked .
  3. Uniswap Docs. How Uniswap works (opens in a new tab) Checked .
  4. ethereum.org. Smart contract security (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.