The DeFi stack layers

Settlement Layer
where transactions are ultimately settled
DeFi’s Layer 1 (L1)
the foundation for all activities in a decentralized ecosystem
the underlying blockchain, as well as its native asset (example: Ethereum/Ether)
Store information, value, and ownership securely
Ensure that status changes (balances, ownership, etc) follow the blockchain’s rules
Enable trustless execution
Asset Layer
includes all tokens used in DeFi apps
refers to both the native (L1) & non-native assets
Native tokens • They are the lifeblood of the L1 blockchain, underpinning its basic functions and fueling all apps built on it
Non-native tokens • All other tokens used in specific applications, serving different functions.
Each L1 blockchain has its own rules for token issuance, encapsulated in standards
Example: Ethereum non-native token standards:
ERC20
• The most widely used standard API for fungible tokens on the Ethereum blockchain.
• All units of a fungible token are interchangeable and have the same value.ERC721
• The standard for non-fungible tokens (NFT) issued on the Ethereum blockchains.
• Unlike their fungible counterparts, ERC721 tokens are unique and non-divisible.ERC1155
• A newer standard, supporting fungible, semi-fungible and non-fungible tokens under a single set of rules, aiming to minimize computational overhead and provide a gas-efficient token contract for developers.list of all Ethereum token standards: https://github.com/PhABC/ethereum-token-standards-list
Governance Tokens
Allowing collective ownership & decision making of DeFi protocols.
Only governance token holders can submit and vote on protocol governance proposals.
(in order: UNI, ENS, APE, CAKE, OP)
Liquidity Provider (LP) Tokens
LP tokens represent shares in liquidity pools, used in decentralized exchanges (and elsewhere).
Protocol Layer
where most DeFi apps lie
includes the core functionality of dApps
dApps are implemented as smart contracts
These contracts are typically interacted with by users in a standard Web2 interface. This interface is part of the next layer (Application Layer).
includes smart contracts for things like: • Decentralized exchanges • Lending and borrowing • Derivatives • and much more
Application Layer
front-end layer that provides easy access to DeFi smart contracts.
Important: Web front-ends are a way to access DeFi apps; they are not the apps themselves!
Aggregation Layer
combine several DeFi protocols for convenience, comparability and crossfunctionality, in a single access
is an extension of the application layer
Examples • Zapper (DeFi portfolio management) • 1inch (decentralized exchange aggregator)
Composability in DeFi
Composability in Decentralized Finance is the ability of dApps to interact with each other in a permissionless manner.
This is also known as the Money Lego aspect of DeFi.
Web2 apps are not composable; DeFi apps are.
Money legos allow for innovation & explosive growth
Thoughts
Bitcoin Layer 1 does not support smart contracts so it is not suitable for DeFi. Future Layer 2 might add this funcionality.
There is still a lot to be done around bridges between Blockchains.
