11. Class DeFi.pptx
1. Decentralized finance fundamentals and technological stack
Decentralized finance (DeFi) represents a novel, automated approach to financial services built on public blockchains, aiming to replicate traditional finance functions by disintermediating centralized intermediaries through the use of smart contracts.
1.1 Definitions and core characteristics of DeFi
Several major financial bodies offer definitions for DeFi, generally centering on its reliance on automated protocols built on distributed ledger technology (DLT) rather than centralized organizations.
- The Financial Stability Board (FSB) describes DeFi as an umbrella term for crypto-asset market services aiming to replicate traditional financial functions while decentralizing governance.
- The European Central Bank (ECB) views it as a peer-to-peer network relying on smart contracts for automatic asset transfer, cutting out traditional centralized intermediaries.
- The Bank for International Settlements (BIS) defines it as a competitive, contestable, composable, and non-custodial financial ecosystem requiring no central organization to operate and lacking a safety net.
Core characteristics inherent to DeFi systems include:
- Non-custodial: Participants maintain full, direct control over their funds at all times.
- Permissionless: Any individual can interact with the financial services without risk of censorship or blocking by a third party.
- Auditable: The system state is publicly verifiable, allowing anyone to audit its health.
- Composable: Financial services can be arbitrarily assembled from basic protocols, often termed "money legos."
Tip: The lack of a safety net is a critical distinction; erroneous transactions cannot typically be reversed, and the system offers no inherent protection against fraud or criminal conduct.
1.2 The DeFi technological stack
The DeFi stack describes the layered architecture supporting decentralized financial services. While models vary, it is commonly understood to comprise four primary layers, sometimes augmented by a fifth aggregation layer.
1.2.1 Settlement layer (Base Layer)
This is the foundational blockchain where all DeFi applications operate. It provides the essential infrastructure, including:
- Consensus mechanisms.
- Data storage and transaction finality.
- Native assets (e.g., Ether or ETH).
- Examples include main chains like Ethereum, Solana, and Avalanche, as well as Layer-2 networks such as Optimism and Arbitrum.
1.2.2 Asset layer
This layer consists of the tokens circulating on the settlement layer, serving as the units for all DeFi activities (lending, trading, liquidity provision).
- This includes native tokens, standard tokens (like ERC-20), stablecoins, governance tokens, and tokenized real-world assets.
1.2.3 Protocol layer
This layer comprises the smart contracts that implement core financial functions. These contracts define the rules, logic, and automated mechanisms that replicate traditional banking and market infrastructure services.
- Examples of protocols:
- Lending protocols (e.g., Aave, Compound).
- Decentralized exchanges (e.g., Uniswap, Curve).
- Derivatives platforms (e.g., Synthetix, dYdX).
- Stablecoin issuers (e.g., MakerDAO).
1.2.4 Application (Interface) layer
These are the user-facing applications that allow interaction with the underlying protocols.
- This layer includes dashboards, web front-ends, mobile applications, and digital wallets necessary for accessing services.
- Examples: Wallets (Metamask, Rabby) and portfolio tracking tools (Zapper, Instadapp).
1.2.5 Aggregation layer (Optional)
When included, this layer groups multiple protocols into unified interfaces or constructs automated strategies across different protocols.
- Examples: Yield aggregators (Yearn) and cross-protocol routing services (1inch).
1.3 Decentralized governance (DAOs)
Decentralized Autonomous Organizations (DAOs) utilize smart-contract rules to coordinate decision-making among token holders.
- Governance power is typically distributed via governance tokens, which grant voting rights over protocol upgrades, treasury management, and parameter setting.
- Operations generally involve on-chain proposals and voting, often subject to quorum and majority thresholds.
- Many DAOs also incorporate off-chain signaling tools (e.g., Snapshot) for preference gathering that does not immediately result in on-chain transactions.
- Delegation mechanisms allow token holders to assign their voting power to delegates for efficiency.