Crypto news and analysis
Beginner · DeFi

What is DeFi?

Learn how DeFi uses smart contracts, collateral, liquidity, interfaces, and governance to provide financial services without a traditional operator.

10 min read3-question quizUp to 115 XP

Decentralized finance, usually shortened to DeFi, describes financial applications whose core accounting and transaction rules run through public smart contracts. People can transfer assets into those contracts, trade with pooled liquidity, or borrow against collateral without asking a bank employee to update a private ledger.

The absence of a traditional account manager does not mean the absence of intermediaries, judgment, or control. Developers write the contracts, governance participants may change parameters, interfaces assemble transactions, and oracle providers supply external prices. A useful analysis separates each layer and asks who can act, who can fail, and who bears a loss.

What you will learn

  • Explain how smart contracts coordinate DeFi transactions
  • Distinguish protocol rules from interfaces and governance decisions
  • Identify the sources of DeFi yield and the parties exposed to loss
  • Map the dependencies behind a simple lending transaction

Rules executed by a shared network

A DeFi application starts with code deployed to a blockchain. The code records deposits, checks transaction conditions, and changes balances when the network accepts a valid request. Once deployed, a contract behaves according to its current code and stored parameters; it does not understand intent or make exceptions for an accidental transfer.

The blockchain supplies ordering and settlement, while the application contract supplies the financial rules. A lending contract can define acceptable collateral and a liquidation threshold, for example. Neither the chain nor the contract guarantees that the collateral keeps its value, the rules are economically sound, or every connected component remains available.

Four layers that users should separate

The protocol layer consists of contracts and enforceable parameters. The interface layer is the website or wallet that helps a person compose calls to those contracts. The governance layer decides which permitted changes to propose and approve. External services, including price feeds and bridges, form a dependency layer around the onchain rules.

These layers can have different control structures. A protocol may continue running when its main website is unavailable, yet most users may struggle to access it. A governance vote may authorize an upgrade without changing code immediately, while an administrator key may have a direct emergency power. Calling the whole stack decentralized hides these practical distinctions.

Where returns can come from

DeFi yield is a transfer, an incentive, or both. Borrowers pay interest to obtain liquidity, traders pay fees for execution, and liquidated borrowers surrender a penalty to participants who close risky positions. A protocol may also distribute newly created governance tokens to attract deposits, which shifts value through token issuance rather than operating revenue.

Every quoted return should therefore be decomposed. Fee yield depends on actual usage and the provider's share of a pool. Interest depends on borrower demand and utilization. Token rewards depend on emissions and market demand for the token. Losses can fall on depositors, liquidity providers, token holders through dilution, or a protocol reserve, depending on the event.

Access does not remove responsibility

Many DeFi contracts accept transactions from any compatible address, but users still face wallet security, network fees, legal restrictions, and asset-specific controls. A stablecoin issuer may freeze a token even when the lending contract itself is permissionless. An interface may block a region although technically capable users can interact with contracts another way.

Before committing assets, identify the contract addresses, upgrade powers, oracle, collateral rules, withdrawal conditions, and incident process. Also determine whether the position relies on a bridge or wrapped asset. Transparency makes evidence inspectable; it does not perform the review, insure the position, or guarantee that complex code has no exploitable path.

Reality check

Common misconceptions

DeFi eliminates intermediaries because every action happens on a blockchain.

DeFi changes the roles of intermediaries. Contract developers, governance voters, interface operators, oracle providers, liquidators, stablecoin issuers, and validators can all influence access or outcomes in different ways.

A transparent smart contract is safe because anyone can inspect it.

Public code permits inspection, but safety still depends on implementation quality, economic assumptions, permissions, dependencies, and whether qualified reviewers actually understand the deployed version.

Before you act

Risks and limitations

  • Contract risk: a coding or design defect can permit theft, lock withdrawals, or allocate balances incorrectly without a conventional chargeback.
  • Market and liquidity risk: collateral can fall, pools can become imbalanced, and exits can become expensive precisely when many users want them.
  • Control and dependency risk: administrator keys, governance, oracles, interfaces, bridges, and token issuers may fail or act against a user's expectations.
  • Operational risk: wrong networks, malicious approvals, compromised keys, and misunderstood transaction simulations can cause irreversible losses.

Key takeaways

  1. DeFi places financial rules and accounting in smart contracts on shared networks.
  2. Protocol, interface, governance, and dependency layers have separate powers and risks.
  3. Yield comes from users paying for services or from token incentives that may dilute holders.
  4. Permissionless access is not the same as safety, legal certainty, or insurance.
  5. A position should be evaluated as a chain of contracts, assets, data sources, and control rights.

Primary and further reading

Knowledge check

Test your understanding

Score at least 2 out of 3 to complete this lesson. Explanations appear after you submit.

1. Which description best separates a DeFi protocol from its main interface?
2. In a basic DeFi lending market, what is the clearest source of interest paid to suppliers?
3. Why does public contract code not by itself establish that a DeFi application is safe?