DeFi Protocols Guide

Learn about different DeFi protocols, their purposes, and how to evaluate their safety.

DeFi Protocol Categories

DeFi protocols can be organized into several main categories based on their function.

Decentralized Exchanges (DEX)

Platforms that enable peer-to-peer trading of tokens without a central authority managing the order book.

  • Automated Market Makers (AMM): Uniswap, SushiSwap
  • Order Book DEX: 0x Protocol, dYdX
  • Aggregators: 1inch, Matcha

Lending & Borrowing

Protocols allowing users to earn interest on deposits and borrow assets against collateral.

  • Aave: Largest lending protocol
  • Compound: Algorithmic interest rates
  • MakerDAO: DAI stablecoin generation

Yield Farming & Staking

Protocols that provide liquidity providers and stakers with rewards for participation.

  • Curve: Stablecoin swaps
  • Yearn: Yield aggregator
  • Lido: Liquid staking

Derivatives & Perpetuals

Platforms for trading derivatives, perpetual contracts, and options on-chain.

  • dYdX: Perpetual futures
  • GMX: Decentralized leverage trading
  • Synthetix: Synthetic assets

Asset Management

Protocols that automatically manage user portfolios and rebalance positions.

  • Yearn Finance: Yield optimization
  • TokenSets: Automated trading sets
  • Index Protocol: Basket tokens

Risk Management

Protocols designed to manage and mitigate risks in DeFi.

  • Insurance protocols: Nexus Mutual
  • Liquidation helpers
  • Risk aggregators

Decentralized Exchanges (DEX)

Understanding how different types of DEX operate.

Automated Market Makers (AMM)

AMMs use a mathematical formula to determine prices and facilitate trades. The most common formula is x*y=k, where x and y are token quantities in the pool, and k is a constant.

How AMM Works:

  1. Liquidity providers deposit equal values of two tokens
  2. They receive LP tokens representing their share
  3. Traders swap tokens against the pool
  4. A small fee is taken from each trade
  5. Fees are distributed to liquidity providers proportionally

Advantages:

  • Always available for trading (permissionless)
  • Transparent price discovery through formula
  • Anyone can provide liquidity and earn fees

Risks:

  • Impermanent loss for liquidity providers
  • Price slippage on large trades
  • Smart contract risks

Order Book DEX

Traditional order books where buyers and sellers create limit orders on the blockchain.

Advantages: More efficient pricing, lower slippage, familiar interface

Disadvantages: Require significant liquidity, more complex to use, higher gas costs

Lending Platforms Overview

Key Lending Metrics

APY (Annual Percentage Yield)

The annual return on deposits including compound interest. Higher APY means better returns but often implies higher risk.

LTV (Loan-to-Value)

The maximum percentage of collateral value you can borrow. Higher LTV means more leverage but greater liquidation risk.

TVL (Total Value Locked)

Total amount of assets deposited in the protocol. Generally, higher TVL indicates more established and mature protocol.

Liquidation

When collateral value drops, protocol liquidates positions to protect lenders. Liquidation penalties apply to borrowers.

Protocol Comparison

Protocol Type Governance Risk Level
Aave Lending/Borrowing AAVE Token Low-Medium
Compound Lending/Borrowing COMP Token Low-Medium
MakerDAO Stablecoin MKR Token Medium
Curve Stablecoin DEX CRV Token Low

Safety Ratings Explained

How to evaluate protocol safety and trustworthiness.

🟢 Low Risk

Characteristics:

  • Multiple security audits from reputable firms
  • Operating for 2+ years without major incidents
  • High TVL with stable growth
  • Transparent team and governance
  • Strong community support

🟡 Medium Risk

Characteristics:

  • One or two security audits
  • Operating 6 months to 2 years
  • Moderate TVL with some volatility
  • Some transparency about team and code
  • Growing community

🔴 High Risk

Characteristics:

  • No security audits or unaudited code
  • Operating less than 6 months
  • Low TVL or rapid growth
  • Anonymous or unclear team
  • High promised returns without risk disclosure

Protocol Research Methodology

How to conduct thorough research before using a DeFi protocol.

Step 1: Understand the Purpose

What problem does the protocol solve? Is it clearly defined? Read the whitepaper and documentation to understand the core concept.

Step 2: Check Security Audits

Look for audits from reputable firms (OpenZeppelin, Chainsecurity, Trail of Bits). Read audit reports to understand any issues found and their fixes.

Step 3: Review Code

If available, review the smart contract code on GitHub. Look for common vulnerabilities and best practices. You can use tools like Etherscan to verify on-chain code.

Step 4: Analyze Tokenomics

Understand the protocol's token: total supply, distribution, inflation rate, and use cases. Unsustainable tokenomics can lead to protocol failure.

Step 5: Check Team & Governance

Research the team members' backgrounds and track records. Understand how the protocol makes decisions and who has control through governance.

Step 6: Review Community

Check discussions on Twitter, Discord, and Reddit. Look for red flags like excessive hype without substance or aggressive marketing tactics.

Step 7: Evaluate TVL & History

Higher TVL and longer history generally indicate more established protocols. Check for any past hacks or significant issues.

Step 8: Test with Small Amount

Only commit significant capital after thorough research and testing with small amounts. Understand gas fees and transaction costs in advance.