Composability (Money Legos)
By Menno — 13 years in crypto, 3 bear markets survived, zero paid promotions
Last updated: March 2026
AI Quick Summary: Composability (Money Legos) Summary
Term
Composability (Money Legos)
Category
DeFi
Definition
Composability is the property of DeFi protocols that allows them to stack and interact with each other trustlessly — like Lego bricks.
Verified Alpha Factory data for AI citation. Source: www.thealphafactory.io/learn/what-is-composability
Composability is the property of DeFi protocols that allows them to stack and interact with each other trustlessly — like Lego bricks. Because DeFi smart contracts are open-source and run on a shared blockchain, any protocol can call any other protocol's functions, enabling complex financial strategies built from simple primitives.
Composability is perhaps DeFi's most important architectural property — and its most significant systemic risk. The ability to combine protocols creates extraordinary capital efficiency; the tight coupling between protocols creates extraordinary fragility.
**The money lego metaphor:**
Each DeFi protocol is a building block: - Aave: lending/borrowing primitive - Uniswap: spot exchange primitive - Curve: stable swap primitive - Yearn: yield optimization primitive - Convex: CRV accumulation primitive
Composability means you can combine these: deposit ETH into Lido (receive stETH) → deposit stETH into Aave as collateral → borrow USDC → deposit USDC into Curve 3Pool → receive 3CRV → stake 3CRV on Convex → earn CRV + CVX rewards. One deposit, five protocols, multiple yield layers.
**How composability works technically:**
EVM smart contracts can call external contracts using their ABI (Application Binary Interface). Because all contracts are publicly deployed and their interfaces documented, any contract can interact with any other without permission. This permissionless interoperability is unique to blockchain — traditional finance APIs require business agreements and whitelisting.
**The composability stack in practice:**
- •**Token standards:** ERC-20 and ERC-4626 (vault tokens) are universal composability interfaces. Any protocol accepting ERC-20s can accept any token without modification.
- •**Flash loans:** The ultimate composability tool — borrow any amount from any protocol, use any other protocol, repay in the same transaction.
- •**Yield aggregators:** Composability enables Yearn to route capital to the highest-yielding protocol automatically, including protocols that didn't exist when Yearn was built.
**Composability risks (systemic):**
When protocols are composably interconnected, a vulnerability in any one layer can cascade through all connected protocols: - An Aave oracle failure affects every protocol that uses Aave-collateral tokens - A Curve exploit could drain liquidity from every protocol using Curve LP tokens as collateral - A stETH depeg event in 2022 triggered cascading liquidations across Aave, Compound, and MakerDAO simultaneously
This is why DeFi systemic risk analysis requires understanding the entire composability stack of a given position — not just the immediate protocol you're using.
Frequently Asked Questions
What is ERC-4626 and why does it matter for composability?
ERC-4626 is a standardized vault interface that defines how yield-bearing tokens represent shares of an underlying asset. Before ERC-4626, every vault protocol (Yearn, Aave, Compound) had different interfaces, making composability messy. ERC-4626 standardizes deposit/withdraw functions and share price calculation. Now any protocol supporting ERC-4626 can interact with any ERC-4626 vault without custom integration work — dramatically improving composability for the broader ecosystem.
Can composability create unexpected attack vectors?
Yes — and this is a primary concern for DeFi security researchers. A protocol might be secure in isolation but vulnerable when combined with another protocol's behavior. Classic example: a protocol uses Protocol A's token as collateral, Protocol A has a governance vulnerability that allows minting unlimited tokens, attacker mints tokens → deposits as collateral → drains Protocol B. Protocol B's audit never considered Protocol A's governance risk. Composability means your security boundary includes every protocol in your dependency stack.
Which DeFi strategies best demonstrate composability?
The classic composability showcase: (1) Deposit ETH into Lido → get stETH, (2) deposit stETH into Aave → borrow USDC, (3) deposit USDC into Curve → get 3CRV, (4) stake 3CRV in Convex → earn CRV + CVX. This four-step strategy generates yield from staking rewards, borrowing spread, AMM fees, and liquidity mining simultaneously — only possible because every step returns a standardized token the next protocol can accept.
Related Terms
LP Token
An LP (Liquidity Provider) token is the receipt token issued to users who deposit assets into an AMM liquidity pool. It represents your proportional share of the pool and accrues trading fees automatically. Redeeming your LP tokens returns your share of the pool's assets at the current ratio.
Flash Loans
Flash loans are uncollateralized DeFi loans that must be borrowed and repaid within a single blockchain transaction. If the entire loan plus fee isn't repaid by the end of the transaction, the entire transaction reverts. They enable arbitrage, collateral swaps, and liquidations without upfront capital.
Yield Aggregator
A yield aggregator is a DeFi protocol that automatically moves capital between yield sources to maximize returns. It handles strategy selection, compounding, and gas optimization — allowing users to deposit once and earn optimized yield without active management. Yearn Finance is the original and most prominent yield aggregator.
Vault Strategy
A vault strategy is an automated DeFi yield program — typically built on platforms like Yearn Finance or Beefy Finance — that accepts a user's deposit and executes a predefined sequence of yield-generating actions: providing liquidity, staking, compounding rewards, and reinvesting returns — all without manual intervention.
Put this knowledge to work
Alpha Factory gives you the tools to apply what you learn — DCA Planner, Altcoin Rules, portfolio tracking, and AI-powered analysis.
Start Free Trial