When you deposit money in a traditional bank, you trust that institution to safeguard your funds, lend them responsibly, and pay you interest. The process is opaque: you don't see where your specific dollars go or how your interest is calculated. DeFi works differently. Every transaction is recorded on a public blockchain, allowing you to trace exactly what happens to your deposit.
This transparency is both DeFi's greatest strength and a challenge for newcomers. Understanding the mechanics helps you evaluate whether the yields justify the risks.
Traditional Banking vs. DeFi: The Deposit Journey
Let's compare what happens when you deposit $1,000 in a traditional bank versus a DeFi lending protocol.
Traditional Bank Deposit
- You deposit $1,000 at your bank branch or via mobile app
- The bank records your balance in their internal database
- Your money enters the bank's general pool of funds
- The bank lends to borrowers: mortgages, business loans, credit cards
- Borrowers pay interest to the bank (7-25% APR depending on loan type)
- The bank pays you a small portion as savings interest (0.01-5% APY)
- The bank keeps the spread as profit (3-20+ percentage points)
FDIC insurance protects you if the bank fails, but you have no visibility into how your specific funds are used or what risks the bank takes with depositor money.
DeFi Lending Deposit
- You connect your wallet to a DeFi protocol like Aave
- You approve the protocol to interact with your stablecoins
- You deposit stablecoins by sending them to a smart contract
- You receive receipt tokens representing your share of the lending pool
- Your funds enter the liquidity pool available for borrowing
- Borrowers post collateral and take loans from the pool
- Interest paid by borrowers flows directly to depositors
- Your receipt tokens appreciate in value as interest accrues
You can verify each step on the blockchain. No institution holds your funds; smart contracts execute the logic automatically.
Understanding Smart Contracts
Smart contracts are the foundation of DeFi. They're programs stored on a blockchain that execute automatically when predetermined conditions are met.
What Smart Contracts Do
- Hold funds: Your deposited stablecoins sit in the contract's address, not with any company
- Track balances: The contract records who deposited how much and when
- Calculate interest: Algorithms determine rates based on pool utilization
- Process withdrawals: When you withdraw, the contract returns your share plus earned interest
- Enforce rules: Collateral requirements, liquidation thresholds, and rate calculations all execute automatically
Smart Contract Risks
While smart contracts enable trustless transactions, they introduce new risks:
- Code vulnerabilities: Bugs can allow attackers to drain funds
- Immutability: Once deployed, contracts are difficult or impossible to change
- Complexity: Interactions between multiple contracts can create unexpected behaviors
- Oracle dependencies: Contracts relying on external price feeds can be manipulated
Security Audits
Reputable protocols undergo security audits from firms like Trail of Bits, OpenZeppelin, and Consensys Diligence. Audits reduce but don't eliminate risk. Even audited protocols have been exploited when auditors missed vulnerabilities or when new attack vectors emerged.
Liquidity Pools Explained
When you deposit into a DeFi lending protocol, your funds enter a liquidity pool: a collection of assets from many depositors that borrowers can access.
How Pools Work
Imagine a pool containing $100 million in USDC from thousands of depositors. When someone wants to borrow $50,000, they don't borrow from a specific person. They borrow from the pool, and all depositors share proportionally in the interest paid.
If you deposited $10,000 (0.01% of the pool), you earn 0.01% of all interest paid by all borrowers. This pooling approach provides:
- Liquidity: Depositors can usually withdraw instantly since not all funds are borrowed
- Diversification: Your earnings come from many borrowers, reducing individual default risk
- Efficiency: Capital is deployed optimally rather than sitting idle waiting for specific matches
Utilization Rate and Interest
The utilization rate measures what percentage of deposited funds are currently borrowed:
- Low utilization (20%): Most funds sit idle, rates are low (2-3% APY)
- Medium utilization (50%): Balanced supply and demand, moderate rates (4-6% APY)
- High utilization (90%): Strong borrowing demand, high rates (8-15% APY)
- Very high utilization (95%+): Extremely high rates to attract deposits and discourage new borrowing
Interest rate algorithms automatically adjust rates based on utilization, ensuring pools remain liquid while maximizing returns for depositors.
Overcollateralization: The Key Protection
Unlike traditional lending where borrowers might put 20% down on a house, DeFi loans require overcollateralization: borrowers must lock more value in collateral than they borrow.
How It Works
To borrow $1,000 USDC from Aave, you might need to deposit $1,500 worth of ETH (150% collateralization ratio). This creates a safety buffer:
- If ETH drops 10%, your collateral is worth $1,350, still above $1,000
- If ETH drops 25%, your collateral is worth $1,125, approaching danger
- If ETH drops 33%, liquidation occurs before the loan becomes underwater
Liquidation Process
When collateral value falls below the liquidation threshold (often 80-85% of the loan value), anyone can "liquidate" the position. Liquidators repay part of the loan and receive the collateral at a discount.
This mechanism protects lenders: loans are repaid before they become bad debt, and the collateral value always exceeds the loan value. It's fundamentally different from traditional lending where defaults leave lenders with losses.
Why Borrowers Accept This
Overcollateralized loans seem strange at first: why lock $1,500 to borrow $1,000? Use cases include: avoiding taxable sales of appreciated crypto, leveraging positions without selling, accessing liquidity while maintaining long-term holdings, and arbitrage opportunities.
Major DeFi Lending Protocols Compared
| Protocol | TVL | Track Record | Key Features |
|---|---|---|---|
| Aave | ~$15B | Since 2020, no major exploits | Multi-chain, flash loans, credit delegation |
| Compound | ~$3B | Since 2018, pioneered DeFi lending | Simple interface, governance token |
| MakerDAO | ~$8B | Since 2017, weathered multiple crises | Issues DAI stablecoin, real-world assets |
| Morpho | ~$2B | Since 2022, newer protocol | Optimizes rates via peer-to-peer matching |
Aave: The Market Leader
Aave is the largest DeFi lending protocol by total value locked. It operates on multiple blockchains (Ethereum, Polygon, Arbitrum, Optimism) and offers features like flash loans and credit delegation. The protocol has maintained a strong security record despite handling billions in deposits.
Compound: The Pioneer
Compound helped establish the DeFi lending model that others now follow. While smaller than Aave, it remains a trusted protocol with a straightforward interface. Its COMP governance token was one of the first to enable decentralized protocol governance.
MakerDAO: The DAI Issuer
MakerDAO operates differently from pure lending protocols. Users lock collateral to mint DAI stablecoins rather than borrowing existing stablecoins. The protocol has survived multiple market crashes and pioneered bringing real-world assets on-chain.
Morpho: The Optimizer
Morpho operates as a layer on top of Aave and Compound, optimizing rates by matching lenders and borrowers peer-to-peer when possible. When no match exists, funds fall back to the underlying protocol. This approach often delivers better rates for both sides.
Step-by-Step: Depositing in Aave
Here's what happens when you deposit USDC into Aave on Ethereum:
Step 1: Wallet Connection
Connect your wallet (MetaMask, Ledger, etc.) to the Aave app. The protocol reads your wallet address and token balances. No personal information is required since blockchain wallets are pseudonymous.
Step 2: Token Approval
Before depositing, you must approve Aave's smart contract to move your USDC. This is a security feature: tokens can only be transferred with explicit permission. You can set a specific amount or unlimited approval.
Step 3: Deposit Transaction
You sign a transaction sending USDC to Aave's lending pool contract. The transaction includes gas fees paid in ETH. Once confirmed on the blockchain (typically 15-60 seconds), your deposit is complete.
Step 4: Receipt Token
You receive aUSDC tokens representing your deposit plus accumulated interest. These tokens automatically increase in value as interest accrues. If you deposit 1,000 USDC, you get 1,000 aUSDC initially, but that balance grows over time.
Step 5: Earning Interest
Your aUSDC balance increases every block (approximately every 12 seconds on Ethereum). The interest rate fluctuates based on pool utilization. You can monitor your earnings in real-time on the Aave dashboard.
Withdrawing Your Funds
When you want your money back, the process reverses:
- Connect your wallet to the Aave app
- Select withdraw and specify the amount
- Sign the transaction paying gas fees
- Receive your stablecoins plus earned interest
Your aUSDC tokens are burned (destroyed) and you receive USDC. The amount of USDC is greater than your original deposit because aUSDC appreciated while you held it.
Withdrawal Limitations
Withdrawals are instant in most conditions, but there are scenarios where you might face delays:
- High utilization: If 99% of the pool is borrowed, only 1% is available for withdrawal
- Network congestion: High gas fees during Ethereum congestion may make small withdrawals uneconomical
- Protocol pauses: Rare emergency situations may temporarily halt withdrawals
Risks Along the Journey
Understanding risks at each step helps you make informed decisions:
Smart Contract Exploits
If attackers find a vulnerability in the protocol's code, they can potentially drain deposited funds. Even audited protocols have been exploited. Risk mitigation: use established protocols with long track records and multiple audits.
Stablecoin Depegging
If the stablecoin you're holding loses its $1 peg, your deposit loses value regardless of the lending protocol's performance. Risk mitigation: use well-established stablecoins like USDC or DAI.
Liquidation Cascades
During extreme market crashes, mass liquidations can temporarily stress protocols. While overcollateralization protects lenders, extreme volatility can create unusual market conditions. Historical events like March 2020's "Black Thursday" tested these systems severely.
Governance Attacks
Most protocols are governed by token holders who vote on changes. If malicious actors accumulate enough tokens, they could potentially pass harmful proposals. Risk mitigation: prefer protocols with time locks on governance changes and active communities monitoring proposals.
Tax Implications
DeFi earnings create tax obligations that differ from traditional savings accounts:
Interest as Income
Interest earned on DeFi deposits is generally treated as ordinary income, similar to bank interest. However, you must track and report it yourself since DeFi protocols don't send tax forms.
Token Swaps
Converting between stablecoins or claiming reward tokens may trigger taxable events. The IRS treats most cryptocurrency transactions as property dispositions, requiring capital gains calculations.
Record Keeping
You'll need to track:
- Deposit dates and amounts
- Withdrawal dates and amounts
- Interest earned (often calculated by the change in receipt token value)
- Any token swaps or conversions
- Gas fees paid (potentially deductible)
Software tools like Koinly, CoinTracker, and TokenTax can help automate this tracking, but DeFi transactions often require manual review.
Seek Professional Advice
Cryptocurrency taxation is complex and varies by jurisdiction. Consider consulting a tax professional familiar with cryptocurrency before engaging in DeFi to understand your specific obligations.
Frequently Asked Questions
What happens if a DeFi protocol gets hacked?
If a protocol is exploited, some or all deposited funds may be stolen. Unlike bank deposits protected by FDIC insurance, there's no government guarantee. Some protocols maintain insurance funds or treasury reserves that may partially compensate users, but this is not guaranteed. The blockchain's irreversibility means stolen funds typically cannot be recovered unless the hacker voluntarily returns them.
Can I lose more than I deposited?
As a depositor (lender), you cannot lose more than your deposit. Unlike borrowers who face liquidation, your maximum loss is 100% of your deposited funds. This would only occur in extreme scenarios like a complete protocol failure or stablecoin collapse. In normal operation, your deposit should remain intact or grow as interest accrues.
How quickly can I withdraw my funds?
In normal conditions, withdrawals from protocols like Aave and Compound are instant since they're processed in the next blockchain block (seconds to minutes). However, if pool utilization is extremely high (90%+), available liquidity for withdrawals is limited. You'd need to wait for borrowers to repay or new deposits to arrive. This is rare but can occur during market stress.
Who decides interest rates in DeFi?
Interest rates are determined algorithmically based on pool utilization, not by human decisions. The rate curves are coded into smart contracts and adjust automatically. Higher utilization means higher rates to attract deposits and discourage borrowing. Lower utilization means lower rates. Governance token holders can vote to change the rate parameters, but day-to-day rates are automatic.
Is my identity connected to my DeFi deposits?
DeFi protocols themselves don't require identification. You interact using only your wallet address. However, if you purchased the stablecoins through a regulated exchange (which required KYC), there's a link between your identity and your on-chain activity. Additionally, blockchain analysis can sometimes connect wallet addresses to identities through transaction patterns.
Conclusion
When you deposit money in a DeFi savings platform, your funds flow into smart contract-managed liquidity pools where borrowers access them by posting overcollateralized loans. Interest paid by borrowers flows proportionally to all depositors, and you can track every step transparently on the blockchain.
This transparency comes with trade-offs: you assume risks that banks traditionally absorb, including smart contract vulnerabilities, stablecoin instability, and the absence of deposit insurance. Understanding these mechanics helps you make informed decisions about whether DeFi yields justify the risks for your situation.
For those who understand and accept the risks, DeFi offers something unique: a financial system where you can verify exactly what happens to your money, earning yields without trusting an opaque institution to act in your interest.
Experience transparent DeFi savings
unflat makes DeFi accessible while maintaining full transparency on where your money goes. Join the waitlist for early access.
Join the waitlist