brainax

What is DeFi in crypto? Decentralized finance explained

Short answer: DeFi (decentralized finance) means financial services built on smart contracts, programs on the blockchain, with no bank or exchange in between. You can swap coins on a DEX, add them to a liquidity pool or lend and borrow, all from your own wallet. The price for that freedom: code bugs, hacks and liquidations are your risk. This is education, not investment advice.

Free course on this topicCrypto: free courseStart the course →

DEX: swapping with no middleman

A DEX is a decentralized exchange. You connect your own wallet and sign the trade yourself, and a smart contract swaps the coins through a liquidity pool. There is no central company holding your money.

Uniswap is the largest DEX on Ethereum and its L2s. A pool follows the rule x · y = k, so a big trade moves the price: in a pool of 10 ETH and 30,000 USDC, buying 1 ETH costs about 3,333 USDC instead of 3,000. That is price impact.

More in the lessons: DeFi and DEXs in plain words, Uniswap step by step

Liquidity pools and yield

A liquidity pool is a shared stock of two coins, such as ETH and USDC. Regular people fill it and get a share of the fees from every swap. The catch is impermanent loss: if ETH doubles, your share of an ETH + USDC pool is worth about 5.7% less than simply holding the same coins. Fees may cover that, or not.

More in the lesson: DeFi and DEXs in plain words

Lending and borrowing: Aave

Aave is DeFi's largest lending protocol. Some people deposit coins and earn interest; others borrow against collateral, and rates float with demand. The key number is the health factor: collateral × liquidation threshold ÷ debt. Deposit 1 ETH at $3,000, borrow 1,500 USDC, and with an 80% threshold HF = 1.6. If ETH drops 37.5%, HF hits 1 and liquidation starts. A safer rule is to keep HF above 2.

More in the lesson: Aave: deposits and loans without a bank

The main DeFi risks

More in the lesson: Uniswap step by step

Red flags in a pool

Very thin liquidity (say $5,000 in the pool), LP tokens that are not locked so the creator can pull the pool, and the top 10 wallets holding 70% of the tokens. One flag: be careful. Three: walk away. Start with small amounts and well-known protocols.

More in the lesson: DeFi and DEXs in plain words

FAQ

What is the difference between DeFi and a normal exchange?

On a normal exchange a company holds your money. In DeFi you keep coins in your own wallet and a smart contract does the swap or loan.

Is DeFi safe for beginners?

It carries extra risks: code bugs, hacks, scam pools and liquidations. Start small, use well-known protocols and never sign approvals you don't understand.

How do people earn in DeFi?

By providing liquidity for a share of swap fees or by lending coins for interest. Both come with risks, and a very high yield means very high risk.

Learn DeFi step by step

The free Brainax course "Crypto" walks from wallets and blockchain to DEXs, Uniswap, Aave and staking, with short lessons and quizzes. Start the lesson

Free course on this topicCrypto: free courseStart the course →