What Is DeFi Composability? Money Legos Explained

By Jorge Rodriguez DeFi Protocols

How lending, AMM, vault, and restaking protocols stack on top of each other

Why composability is the structural engine behind multi-protocol yield strategies

A framework for evaluating cascade failure risk in composable DeFi positions

Introduction

Every time a DeFi user deposits a liquid staking token as collateral to borrow stablecoins, then deploys those stablecoins into a lending pool while still earning staking rewards, they are experiencing **DeFi composability** in action. The same asset is working in three protocols simultaneously, generating yield at every layer. This capability has a name in DeFi circles: **money legos**. The idea is that DeFi protocols snap together like building blocks, each one adding a layer of financial functionality on top of the last. The result is a system where capital efficiency scales with creativity, not with the number of bank agreements signed. This article maps the full composability stack from staking layer to vault aggregator, explains how composability directly creates the yield that multi-protocol strategies generate, covers the Solana-specific composability architecture, and provides a practical framework for evaluating cascade failure risk in composable positions. Lince strategies run across composable protocol layers on Solana, making this architecture directly relevant to how positions on the platform work.

What DeFi Composability Actually Means

**The money legos metaphor** **Composability** is the ability of DeFi protocols to interact with each other permissionlessly through open **smart contract** interfaces. Any protocol can call any other protocol's on-chain functions without requiring permission, custody arrangements, or bilateral agreements. The only requirement is a valid transaction and sufficient gas. This is what the money legos metaphor captures. Each DeFi protocol is a standardized block with defined inputs and outputs. Any other block can connect to it. A lending protocol can accept deposits from a liquid staking token. A vault can auto-rebalance across two different AMM pools. An oracle can feed price data to a borrowing protocol without either party signing a contract. In practice, this means capital can flow across the entire protocol stack in a single transaction. Flash loans, loop strategies, and vault auto-compounding all depend on this property. The open-source and permissionless nature of smart contracts on public blockchains is what makes this possible at a technical level. An [authoritative explanation of smart contracts](https://ethereum.org/en/developers/docs/smart-contracts/) from the Ethereum Foundation describes the underlying mechanism in detail. **Composability vs. integration** Composability is frequently confused with integration, but the distinction is fundamental to understanding DeFi's structural advantages. **Integration** means one system connects to another through a custodial API or a platform agreement. A traditional fintech app connecting to a bank API is an integration. The bank can revoke that access, rate-limit it, change the terms, or shut it down. The connection depends on trust between parties and the terms of their agreement. **Composability** means a protocol directly calls another protocol's smart contract. No intermediary holds the keys. No party can unilaterally revoke the connection. As long as both smart contracts are deployed on-chain and the blockchain runs, the composability relationship works. A vault calling a lending protocol's on-chain contract is composability; a robo-advisor calling a brokerage API is integration. This distinction matters because composability is censorship-resistant at the infrastructure level, while integration is only as reliable as the agreement governing it. Integration can be switched off by a counterparty. Composability cannot.

The Four Protocol Layers Explained

The DeFi protocol stack has five distinct layers. Each layer builds on the one below it, and the output of each layer becomes the input for the next. ![Abstract amber stratified layers representing DeFi lending, AMM, vault, and restaking protocol architecture](/images/blog/what-is-defi-composability/layers.webp) **Layer 1: Staking and liquid staking** The base layer locks an asset and returns a **liquid staking token** that accumulates staking rewards over time. When a user deposits SOL with [Jito Network](https://yields.lince.finance/tracker/solana/jito-network) and receives JitoSOL, or deposits with [Marinade Finance](https://yields.lince.finance/tracker/solana/marinade-finance) and receives mSOL, they receive a composable yield-bearing token that moves freely across the rest of the DeFi stack. Without this layer, staked capital sits idle. The liquid staking token is what enables the rest of the stack to activate. It carries embedded yield while remaining fully usable as an asset across other protocols. **Layer 2: Lending protocols** The second layer accepts yield-bearing tokens as collateral and allows users to borrow stablecoins or other assets against them. A user deposits JitoSOL into a lending protocol and borrows USDC against it, earning supply APY on the JitoSOL deposit while retaining all staking rewards. The borrowed funds then become available to deploy elsewhere. This layer effectively splits one asset into two productive positions simultaneously. Understanding [how DeFi lending protocols work](/blog/defi-protocols/how-defi-interest-rates-are-set) reveals why this layer is often the highest-leverage point in a composable stack. On Solana, [Kamino Finance](https://yields.lince.finance/tracker/solana/kamino-finance) and [Marginfi](https://yields.lince.finance/tracker/solana/marginfi) are the dominant lending layer protocols. Aave and Compound fill this role on Ethereum. **Layer 3: AMM liquidity pools** The third layer enables asset swaps through liquidity pools rather than order books. A user provides two assets to a pool and receives an **LP token** in return. That LP token earns a share of trading fees generated by the pool and is itself a composable asset that can be used as collateral in the lending layer above. [Orca](https://yields.lince.finance/tracker/solana/orca) and [Raydium](https://yields.lince.finance/tracker/solana/raydium) power this layer on Solana. Concentrated liquidity pools improve capital efficiency but require active range management. [Concentrated liquidity and CLMM pools](/blog/defi-protocols/concentrated-liquidity-clmm) covers the mechanics in detail for users who want to understand how the AMM layer works before deploying capital into it. **Layer 4: Restaking** **Restaking** allows an already-staked asset to secure additional networks or services, earning a second layer of rewards on top of the base staking yield. A user holding JitoSOL can restake it through a restaking protocol to earn rewards on top of the underlying Jito staking APY, running two yield streams from the same original asset. This layer is the newest and most experimental part of the DeFi composability stack. Understanding [what restaking is in DeFi](/blog/defi-protocols/what-is-restaking-defi) before interacting with restaking protocols is important, because the risk profile differs significantly from standard liquid staking. EigenLayer handles this layer on Ethereum; Solayer and Fragmetric serve it on Solana. **Layer 5: Vaults and yield aggregators** The top layer aggregates positions across multiple protocol layers, auto-compounds yields, and rebalances strategies without requiring manual interaction from the user. Platforms like Lince use this composability stack to deploy capital across lending, AMM, and restaking layers through [automated multi-protocol strategies](/blog/yield-strategies/defi-yield-aggregator-vs-vault-vs-strategy). A vault interacts with layers 1 through 4 on behalf of the user, capturing yield at each layer and reinvesting it automatically. Without the composable protocols underneath, the vault can only hold assets. Composability is the technical prerequisite that makes the vault's strategy possible. [How auto-compounding vaults work](/blog/yield-strategies/auto-compounding-vaults-explained) explains what happens inside the vault layer in detail.

How Composability Creates Yield

**The loop: a worked example** The yield generation potential of composability becomes concrete in a looped strategy. The same unit of capital earns from multiple sources simultaneously through a chain of composable protocol interactions. A user deposits SOL and receives JitoSOL, earning staking rewards at the base layer. They then deposit JitoSOL as collateral into a lending protocol and borrow USDC against it, earning supply APY on the JitoSOL deposit while retaining all staking rewards. The borrowed USDC is then deployed into a stablecoin lending pool, generating a third yield stream from the borrowed capital itself. At no point does the user abandon their exposure to the underlying SOL position. The staking yield continues accruing inside JitoSOL while two additional yield streams activate above it. Each protocol in the stack adds a new yield source, and composability is what makes each layer's output transferable to the next as a productive input. This is the structural mechanic behind [leveraged yield looping in DeFi](/blog/yield-strategies/leveraged-yield-looping-defi-explained). This is also why DeFi yields can structurally exceed what traditional finance offers for equivalent assets. In traditional finance, the same capital cannot simultaneously earn staking rewards, lending supply APY, and borrowing-funded pool yield. Each product is siloed. In composable DeFi, the layers are open to each other. **Why yield aggregators depend on composability** A vault that cannot interact with other protocols is effectively a wallet with a user interface. The entire value proposition of a yield aggregator depends on its ability to call the smart contracts of lending protocols, AMM pools, and restaking platforms on behalf of users. Without composability, strategies like auto-compounding, delta-neutral yield, and multi-protocol rebalancing are structurally impossible. Composability is not a feature added to aggregators; it is the foundation they are built on. This is also why the audit and governance quality of every layer below the vault matters as much as the vault itself. If the composable foundation is unreliable, the vault strategy is unreliable regardless of how well-designed it is.

Composability on Solana

![Abstract amber interlocking nodes representing the Solana DeFi composability stack connecting staking, lending, AMM, and vault layers](/images/blog/what-is-defi-composability/solana-stack.webp) **The Solana composability stack** Solana's architecture makes multi-hop composable strategies economically viable at any position size. Transaction fees below $0.001 mean a five-hop composable transaction costs less than a cent. Sub-second finality means positions resolve and rebalance faster than on Ethereum, and strategies that would be impractical at high gas prices become accessible to any position size, not just large ones. The canonical Solana composability stack runs: [Jito Network](https://yields.lince.finance/tracker/solana/jito-network) or [Marinade Finance](https://yields.lince.finance/tracker/solana/marinade-finance) at the staking layer, producing JitoSOL or mSOL. Those liquid staking tokens feed into [Kamino Finance](https://yields.lince.finance/tracker/solana/kamino-finance) or [Marginfi](https://yields.lince.finance/tracker/solana/marginfi) at the lending layer. Borrowed assets then flow into [Orca](https://yields.lince.finance/tracker/solana/orca) or [Raydium](https://yields.lince.finance/tracker/solana/raydium) AMM pools. Vault aggregators sit at the top, managing the full stack on behalf of depositors. JitoSOL and mSOL are the canonical composable yield tokens in this stack. Their value accrual is embedded at the token level, meaning any protocol that accepts them as a deposit automatically inherits the staking yield without needing to implement staking mechanics internally. **Cross-program invocation and parallel execution** **Cross-program invocation (CPI)** is Solana's technical mechanism for composability. One Solana program calls another program's instructions within a single transaction, analogous to a function call in software. The [Solana cross-program invocation documentation](https://docs.solana.com/developing/programming-model/calling-between-programs) covers the mechanics in detail. CPI depth limits constrain how many protocol layers can be called atomically in a single transaction, but in practice the limit accommodates most production strategies. Solana's Sealevel runtime processes transactions in parallel rather than sequentially. For composable DeFi, this means multiple composable transactions can execute at the same time without competing for global state. A vault rebalancing across three protocols does not block other users from interacting with the same protocols simultaneously, which keeps throughput high even during periods of heavy strategy activity. Kamino's architecture compresses two standard stack layers into one by combining lending and liquidity provision in a single composable interface. This reduces one hop in the standard stack and lowers the associated smart contract surface area, which is a structural design advantage worth understanding when comparing Solana and Ethereum composability patterns. **Solana-specific composability risks** Most Solana DeFi protocols are younger than their Ethereum counterparts, meaning audit depth and battle-testing across market cycles is lower. This is relevant when evaluating the reliability of any Solana composability layer. A protocol with a shorter track record carries more model risk even if its code is well-written. Validator concentration at the staking base layer affects the reliability of the foundation every Solana composable strategy rests on. If validator set diversity narrows significantly, mSOL and JitoSOL yield characteristics could become correlated in ways that reduce the benefit of diversifying between liquid staking providers at the base of the composability stack.

The Risks of Composability

Composability is symmetrical on both sides of the risk equation. The same property that allows yield to stack across layers allows risk to stack in the same way. A position in a four-layer composable stack carries the trust assumptions of all four protocols simultaneously, not just the top-level vault. ![Abstract golden cascade flow illustrating how DeFi protocol failure propagates across composable layers](/images/blog/what-is-defi-composability/cascade.webp) **Cascade failures** A cascade failure occurs when a failure in one protocol layer propagates upward through every protocol that depends on it. The mechanism is direct: if a lending protocol's **oracle** is manipulated, collateral values drop, forced liquidations execute, and the assets sold in those liquidations drain AMM pool liquidity in the same block. Each layer that depends on the compromised layer is affected in sequence. **Flash loans** amplify this cascade pattern because they allow an attacker to borrow, manipulate, and repay within a single block. The atomicity and speed of composability makes these attacks efficient at scale. Several high-profile DeFi exploits followed exactly this pattern: a flash loan funds an oracle manipulation that triggers liquidations across a composable stack, extracting value from multiple protocols in a single transaction. Composability amplifies gains and losses through the same mechanism. The yield stacking is not free. It comes with risk stacking at the same rate, and understanding this symmetry is prerequisite knowledge for anyone deploying capital across multiple protocol layers. **Smart contract dependency accumulation** Each additional protocol layer in a composable stack adds a smart contract attack surface. A four-layer position trusts four different codebases, four development teams, and four governance processes. The weakest link in any single layer is an exposure to the entire position above it, regardless of how strong the other layers are. Reviewing the audit status of every layer, not just the top vault, is a prerequisite for a complete risk assessment. [DeFi yield risks explained](/blog/risk-management/defi-yield-risks-explained) covers the full taxonomy of smart contract risk relevant to yield positions. For a broader evaluation approach, [the DeFi risk framework](/blog/risk-management/defi-risk-framework) provides a structured methodology for assessing multi-layer exposure. **Governance and upgrade risk** Any protocol in the composable stack can change its parameters through governance. Interest rate models, collateral factors, and fee structures can all shift after a governance vote. A collateral factor reduction at the lending layer can trigger forced deleveraging in every strategy that borrowed against that collateral, regardless of how well-designed the vault layer above it is. The relevant question for every composable position is whether any single layer's governance can unilaterally break the strategy above it. If the answer is yes, that governance process becomes part of the position's risk profile, not just a protocol-level concern to be noted and ignored. **Liquidity concentration risk** Composability routes liquidity from many independent strategies into the same underlying protocol pools. During stress events, this concentration becomes a liability. Multiple strategies attempt to exit the same positions simultaneously, moving prices against themselves in the process. The more strategies that rely on the same AMM pool as a liquidity exit, the more severe this effect becomes when conditions turn adverse.

A Framework for Evaluating Composability Depth

The number of protocol layers in a composable strategy is the most direct proxy for its complexity and its trust-assumption surface. Each layer added multiplies the number of failure modes rather than adding to them linearly. A two-layer position has one dependency relationship. A four-layer position has six potential dependency relationships between layers. **How to read a yield strategy's composability risk** • Count the total number of protocol layers involved. Each one is an independent trust assumption with its own smart contract, team, and governance. • Check the audit status of every layer, not just the top-level vault or aggregator. A well-audited vault sitting on an unaudited lending protocol does not reduce the risk exposure. • Identify the critical path layer. If one specific layer fails, does the entire strategy unwind, or can the remaining layers continue operating independently without cascading liquidations? • Prefer strategies where each layer can degrade gracefully. If the AMM layer pauses, the lending layer should still be able to process repayments without forcing immediate liquidations across the stack. • Assess governance concentration at every layer. A protocol controlled by a small multisig or a concentrated token supply carries governance risk that smart contract audits alone cannot measure. • Verify oracle sources for every protocol in the stack. Multiple protocols relying on the same oracle source creates correlated oracle risk rather than independent oracle risk. This significantly changes the probability distribution of a cascade failure. • Ask what happens if Layer 2 governance changes collateral factors overnight. If the answer is that strategies above it immediately enter forced deleveraging, that governance dependency is as much a risk factor as smart contract exposure. This framework applies identically on Solana and Ethereum. The specific protocols differ; the evaluation logic does not. Applying it before entering a multi-layer composable position provides a clearer picture of where the actual exposure lives than looking only at the top-level APY.

FAQ

### What does "money legos" mean in DeFi? Money legos refers to the ability of DeFi protocols to combine permissionlessly. Each protocol acts like a standardized block that connects to others without requiring custodians or bilateral agreements. Any protocol can call any other protocol's on-chain interface, enabling increasingly complex financial structures to be assembled from standardized smart contracts that anyone can interact with. ### What is the difference between composability and interoperability? Composability is about protocols on the same chain calling each other's smart contracts directly and atomically within a single transaction. Interoperability is about connecting protocols across different blockchains, usually via bridges that require multiple steps and cross-chain infrastructure. Composability happens in one transaction on one chain. Interoperability spans chains and introduces different trust assumptions at the bridge level. ### What is the difference between composability and integration? Integration connects systems through custodial APIs that are controlled by one party and can be revoked, rate-limited, or changed. Composability connects smart contracts permissionlessly: no party controls the connection, no third party can revoke it, and the connection works as long as the blockchain runs. The key difference is censorship resistance at the infrastructure level, not just at the application layer. ### Can a protocol be composable without being interoperable? A protocol can be fully composable within its own chain, usable by any other protocol on that same chain, without supporting any cross-chain interaction. Most Solana DeFi protocols are composable within Solana but require bridges or wrapped asset mechanisms to interact with Ethereum protocols. Composability and interoperability are independent properties that can exist separately from each other. ### What makes Solana well-suited for composable DeFi? Transaction fees below $0.001 make multi-hop composable strategies economically viable at any position size, including small positions that would be uneconomical on Ethereum at comparable network activity levels. Sub-second finality means multi-layer transactions resolve quickly. Sealevel's parallel execution allows multiple composable transactions to process simultaneously without global state contention slowing throughput. ### How many protocol layers is too many for a yield strategy? There is no universal threshold. Each additional layer adds smart contract risk, governance risk, and liquidity risk simultaneously. Strategies stacking four or more layers warrant careful review of the audit status, governance structure, and oracle sources of every underlying protocol. The key question is not how many layers there are but whether a failure in any single layer triggers an uncontrolled unwind of the entire position. ### What was a real example of composability causing a cascade failure? Several high-profile DeFi exploits followed the composability cascade pattern. An attacker borrows a large flash loan, uses the capital to manipulate the price oracle feeding a lending protocol, forces liquidations at the distorted collateral price, and drains AMM pools using the extracted collateral, all within a single block. The speed and atomicity of composability is what makes these attacks efficient rather than spreading them across multiple blocks where defenses might activate. ### Does composability affect DeFi taxes? Each composable protocol interaction may constitute a taxable event depending on jurisdiction. Multi-layer strategies can generate multiple taxable events within a single yield cycle. Tracking composable positions accurately requires either dedicated tools or a clear record of every on-chain action taken across each layer of the strategy, since the number of interactions per yield cycle can be significantly higher than a simple single-protocol deposit.

Conclusion

**DeFi composability** is the structural property that makes multi-protocol yield possible. Without it, every protocol is a standalone island, capital can only work in one place at a time, and the yield ceiling is defined by the best single protocol available. With it, capital earns at every layer simultaneously, and new strategies emerge from every new combination of composable smart contracts. The same property that enables yield stacking enables risk stacking. Cascade failures, smart contract dependency accumulation, governance risk, and liquidity concentration all follow the same logic as composable yield generation. Understanding the layers means understanding where both the opportunity and the exposure actually live, not just what the top-line APY says. For those who want to put composable protocols to work without tracking each layer manually, [Lince Smart Vaults](https://yields.lince.finance/vaults) deploy capital across composable Solana DeFi layers automatically, handling the strategy mechanics while keeping positions transparent and visible.