Key Takeaways
- DeFi (Decentralized Finance) offers financial services through blockchain smart contracts instead of banks
- You can lend, borrow and trade without a traditional financial institution, but you take on smart contract and market risk
- Well-known protocols include Uniswap, Aave, Compound and Sky (formerly MakerDAO)
- DeFi carries significant risks, including smart contract bugs, hacks, liquidation and impermanent loss
- DeFi started on Ethereum and now also runs on chains such as Solana and Avalanche, plus Ethereum Layer 2 networks
What is Decentralized Finance (DeFi)?
Decentralized Finance, commonly known as DeFi, is a way of offering financial services through software instead of institutions. Instead of relying on banks, brokerages, and other intermediaries to facilitate transactions, DeFi uses blockchain technology and smart contracts to create open financial systems that anyone with a wallet can use, though many front-end websites apply their own access limits.
At its core, DeFi recreates traditional financial services, lending, borrowing, trading, insurance, and savings, but without centralized control. Smart contracts, which are self-executing programs on the blockchain, automatically enforce the rules and execute transactions when conditions are met. This removes the need to trust a third party with your funds.
DeFi grew quickly from 2020. A common size measure is total value locked (TVL), the value of assets deposited in DeFi protocols. TVL moves with token prices, so check a live tracker such as DefiLlama for the current figure.
What Makes DeFi "Decentralized"?
Unlike traditional finance where banks hold your money and control transactions, DeFi protocols run on public blockchains. No single entity controls the system. Your assets remain in your own wallet, and smart contracts execute transactions automatically based on predefined rules. Anyone can read the code and verify the transactions. Many protocols also have governance tokens or admin keys that give some parties control over upgrades, so decentralization varies by protocol.
DeFi vs Traditional Finance: Key Differences
Understanding the differences between DeFi and traditional finance (often called TradFi or CeFi for centralized finance) helps show what DeFi changes and what it does not.
Access and Permissions
Traditional banks require you to apply for accounts, pass credit checks, and meet various requirements. They can reject applications, freeze accounts, or restrict services based on location, credit history, or other factors. DeFi protocols are largely permissionless: anyone with an internet connection and a crypto wallet can use the smart contracts. There are no application forms or credit checks. Some websites that front these protocols block certain regions, and some stablecoin issuers can freeze tokens at specific addresses.
Custody of Assets
When you deposit money in a bank, the bank holds your funds. They can lend out your deposits, and you depend on their solvency to get your money back. In DeFi, you maintain custody of your assets in your own wallet. You connect your wallet to protocols to interact with them, but your funds remain under your control through your private keys.
Operating Hours
Banks operate during business hours and close for weekends and holidays. Wire transfers can take days to settle. DeFi protocols run around the clock. Settlement time depends on the blockchain, and a transaction can still fail or be delayed when the network is busy.
Transparency
Traditional financial institutions publish limited detail about their balance sheets and operations. DeFi protocols are more open: transactions are recorded on public blockchains, and many protocols publish their smart contract code, so anyone can inspect the assets held in a protocol. Open code is not the same as audited or safe code.
Intermediaries and Fees
Traditional finance involves multiple intermediaries, banks, clearinghouses, payment processors, each taking a cut. DeFi removes many of those intermediaries. You pay network transaction fees (gas fees) and sometimes protocol fees. Whether that costs less than a bank depends on the chain, the network load and the size of the transaction.
Key DeFi Protocols
The DeFi ecosystem includes hundreds of protocols. The ones below are long-running examples of the main types: exchange, lending and stablecoin issuance. They are examples, not recommendations.
Uniswap: The Pioneer of Decentralized Exchanges
Uniswap transformed cryptocurrency trading by introducing the Automated Market Maker (AMM) model. Instead of matching buyers and sellers through an order book like traditional exchanges, Uniswap uses liquidity pools: collections of tokens locked in smart contracts that enable trading.
Users called liquidity providers (LPs) deposit pairs of tokens into pools. Traders swap tokens against these pools, paying a small fee that goes to the LPs. The AMM algorithm automatically adjusts prices based on the ratio of tokens in the pool, ensuring trades can always execute (though large trades may experience significant price impact).
Uniswap launched on Ethereum and has expanded to other chains including Polygon, Arbitrum and Optimism. Trading volume rankings between decentralized exchanges change often, so check a tracker such as DefiLlama for current figures.
Aave: Decentralized Lending and Borrowing
Aave is a long-running lending protocol that allows users to deposit crypto assets to earn interest or borrow against their deposits. Unlike bank loans, Aave loans are over-collateralized: you must deposit more value than you borrow to protect lenders from default.
Interest rates on Aave adjust algorithmically based on supply and demand. When utilization of a lending pool is high (many borrowers, few depositors), rates increase to attract more deposits and discourage borrowing. When utilization is low, rates decrease.
Aave popularized flash loans: uncollateralized loans that must be borrowed and repaid within a single transaction. Flash loans are used for arbitrage and liquidations, and attackers have also used them in exploits.
Compound: Interest Rate Markets
Compound operates similarly to Aave, creating algorithmic interest rate markets for various crypto assets. In its original design, supplying assets to Compound gave you cTokens representing your deposit plus accrued interest. Newer versions of the protocol work differently, so check the current documentation.
Compound pioneered the distribution of governance tokens to users, a practice that became known as "liquidity mining" and drove significant DeFi growth in 2020. Users who supply or borrow assets earn COMP tokens, giving them voting rights on protocol changes.
MakerDAO (Now Sky): Decentralized Stablecoins
MakerDAO created DAI, an early widely used decentralized stablecoin. The protocol has since rebranded as Sky, and DAI now sits alongside a newer stablecoin, USDS. Unlike centralized stablecoins like USDC or USDT, which are backed by real-world assets held by companies, DAI has been backed mainly by on-chain collateral, and over time that has included USDC and real-world assets.
Users deposit approved collateral, such as Ether, into vaults and can generate DAI up to a set percentage of their collateral value. If collateral value drops too low, the position is liquidated to protect the system.
Governance votes determine which assets can be used as collateral, stability fees (interest rates) and other parameters. The protocol went through a sharp collateral crash in March 2020 that led to bad debt, so its design has been tested and changed over time.
DeFi Use Cases: What Can You Do?
DeFi enables a wide range of financial activities. Here are the most common use cases and how they work.
Lending and Earning Interest
You can deposit crypto assets into lending protocols like Aave or Compound to earn interest. Rates vary with the asset and market conditions, and can fall to near zero or rise sharply. You can usually withdraw at any time, subject to how much liquidity is left in the pool.
Interest earned has to be weighed against the risks of smart contract vulnerabilities and market volatility. Deposits are not insured.
Borrowing
DeFi lending protocols allow you to borrow against your crypto holdings without selling them. This lets you access liquidity while keeping your holdings. It can also be used for leverage, which increases the risk of loss.
For example, if you hold ETH and need dollars for an expense, you could deposit ETH as collateral and borrow stablecoins. You can repay the loan later and get your ETH back. If ETH drops significantly, your position may be liquidated and part of your collateral sold at a penalty.
Decentralized Trading
Decentralized exchanges (DEXs) like Uniswap allow you to swap tokens without creating an account or trusting a centralized exchange with your funds. You connect your wallet, select the tokens you want to trade, and execute the swap directly through the smart contract.
DEXs list tokens that may not be available on centralized exchanges, and you keep custody of your funds. Many of those tokens are unvetted, so scams are common. However, trading on DEXs can incur higher costs due to gas fees, and slippage can be significant for large trades or illiquid tokens.
Yield Farming
Yield farming involves moving assets between DeFi protocols to chase returns. Farmers might deposit assets in lending protocols, use the deposit as collateral to borrow other assets, then deploy those borrowed assets in liquidity pools or other yield-generating opportunities.
Yield farming carries significant risks, and returns are not guaranteed. Complex strategies can be difficult to unwind quickly if market conditions change. Additionally, the high returns often come from protocol token rewards, which may decrease in value over time.
Liquidity Provision
By providing liquidity to decentralized exchanges, you earn a share of trading fees proportional to your share of the pool. Fee income varies with trading volume, and the position comes with the risk of impermanent loss: if the price ratio of the tokens in your pool changes significantly, you may end up with less value than if you had simply held the tokens.
Staking
Many DeFi protocols and blockchains offer staking rewards for locking up tokens to secure the network or protocol. Staking typically involves a lock-up period during which your assets cannot be moved. Returns vary and are not guaranteed. Learn more in our complete guide to staking.
How to Get Started with DeFi
Getting started with DeFi requires some preparation. Follow these steps to begin exploring safely.
Step 1: Set Up a Non-Custodial Wallet
You need a wallet that you control to interact with DeFi protocols. MetaMask is a widely used browser extension wallet for Ethereum and EVM-compatible chains. Trust Wallet and Rainbow are mobile examples. For Solana DeFi, Phantom is a common choice. See the wallet ratings to compare options. Write down your seed phrase and store it securely offline: never share it with anyone.
Step 2: Acquire Cryptocurrency
Purchase the native token of the blockchain you want to use (ETH for Ethereum, SOL for Solana, AVAX for Avalanche) from a reputable exchange. You'll need this to pay for transaction fees. Also acquire any tokens you want to use in DeFi protocols.
Step 3: Transfer to Your Wallet
Send your crypto from the exchange to your wallet address. Double-check the address before sending: crypto transactions are irreversible. Send a small test transaction first to verify the address works.
Step 4: Connect to a DeFi Protocol
Navigate to the official website of the DeFi protocol you want to use. Click "Connect Wallet" and approve the connection in your wallet. Always verify you're on the correct URL: phishing sites are common. Bookmark legitimate sites for future use.
Step 5: Start Small
Use a small amount you can afford to lose while you learn how the interfaces work. A simple swap or a small deposit shows you how approvals, fees and confirmations behave before you commit more.
DeFi Risks: What Could Go Wrong
DeFi carries significant risks. Understanding them matters before you deposit anything.
Critical DeFi Risks
- Smart Contract Bugs: Even audited code can contain vulnerabilities. Hackers have exploited bugs to drain very large sums from DeFi protocols, and audits reduce risk without removing it.
- Impermanent Loss: Liquidity providers can lose value when token prices diverge significantly. In extreme cases, impermanent loss can exceed the fees earned from providing liquidity.
- Rug Pulls: Malicious developers can create tokens or protocols designed to steal user funds. They may drain liquidity pools, mint unlimited tokens, or simply abandon projects. Research a token before you buy it, and see the token safety check.
- Oracle Manipulation: DeFi protocols rely on price oracles to determine asset values. Attackers can manipulate these price feeds to exploit protocols, causing cascading liquidations or extracting value.
- Liquidation Risk: When borrowing, market volatility can trigger automatic liquidation of your collateral, often at unfavorable prices and with additional penalty fees.
- Regulatory Uncertainty: Governments worldwide are still developing DeFi regulations. Future regulations could restrict access to certain protocols or create legal complications for users.
Popular DeFi Blockchains
While DeFi started on Ethereum, the ecosystem has expanded to numerous blockchains, each with different tradeoffs.
Ethereum: The DeFi Foundation
Ethereum is where DeFi started and hosts many of the longest-running protocols. Transaction fees can be high during busy periods. Layer 2 solutions like Arbitrum and Optimism offer lower fees while inheriting Ethereum's security.
Solana: Speed and Low Costs
Solana is built for fast, low-fee transactions, which suits applications that need many of them. Solana DeFi protocols include Jupiter (DEX aggregator), Marinade (liquid staking) and Kamino (lending).
Avalanche: Customizable Networks
Avalanche allows the creation of customizable networks (called L1s, formerly subnets). Its C-Chain is EVM-compatible, so Ethereum DeFi protocols can deploy on it. Protocols there include Benqi (lending), GMX (perpetual trading) and the DEX Trader Joe, now branded Joe.
Layer 2 Networks
Ethereum Layer 2 networks like Arbitrum, Optimism, and Base generally offer lower fees than Ethereum mainnet and settle back to Ethereum. Many Ethereum DeFi protocols have deployed on L2s, and some protocols are native to them. Each L2 has its own security model and risks, so check how a given L2 works before using it.
The Future of DeFi
DeFi continues to evolve rapidly. Several trends are shaping its future development.
Real-World Asset Tokenization
Protocols are increasingly bringing real-world assets, treasury bills, real estate, private credit, onto blockchain. This bridges traditional finance and DeFi, which could bring more traditional assets on-chain. Those assets add issuer and legal risks that pure crypto collateral does not have.
Improved User Experience
Early DeFi required significant technical knowledge. New wallets, interfaces, and account abstraction features are making DeFi more accessible. Some applications now hide the blockchain from the user, which makes it easier to miss risks.
Cross-Chain Interoperability
Moving assets between chains has historically been risky and cumbersome. New bridging solutions and cross-chain messaging protocols are making it easier to use DeFi across multiple networks, so users can reach protocols on more than one chain. Bridges have also been a frequent target of hacks.
Institutional Adoption
Traditional financial institutions are increasingly exploring DeFi. Some are using private or permissioned versions for settlement and trading.
Regulatory Development
Governments are developing frameworks to regulate DeFi activities. While some regulations may restrict certain practices, clear rules could also provide the certainty institutions need to participate more fully. The regulatory environment will significantly shape DeFi's evolution.
Tip
A high advertised yield usually comes with a higher risk of loss. Check where the yield comes from before you deposit.