BITFLUX LIVELearn →

What Is DeFi? Lending, Swaps and Liquidity Pools

The core idea

DeFi uses smart contracts to recreate financial primitives — swapping, lending, borrowing, earning yield — without a custodian. Your wallet holds the assets; the contract enforces the rules. If the contract has a bug or the collateral model breaks, you can lose money.

Automated market makers

Instead of an order book, most decentralised exchanges use liquidity pools. Providers deposit two assets into a pool and traders swap against the pool's pricing curve. Providers earn fees but take impermanent loss when the price ratio moves.

Lending and liquidations

Lending protocols let you supply assets to earn interest or post collateral to borrow. Loans are over-collateralised: if the collateral value falls below a threshold, anyone can liquidate the position for a bonus. Liquidation cascades are a major source of volatility during crashes.

Risks that do not show up in APY

Smart-contract risk, oracle failure, governance attacks and bridge risk are structural. High yield is usually compensation for one of those risks, not free money.

Keep going