Crypto / Evergreen
Composability joins contracts and their failure modes
Composability allows one contract to call another and build a larger operation from reusable components, often within a single transaction.
Combining reliable-looking components does not automatically preserve reliability when their assumptions interact.
The distinction that matters
Composability allows one contract to call another and build a larger operation from reusable components, often within a single transaction. A smart contract executes rules encoded in deployed software when valid calls reach it. The phrase automatic does not imply that the contract has no administrators or that all business conditions are visible on-chain. A deployment can include roles, upgrade mechanisms, pausing powers, and dependencies on other contracts.
How the mechanism works
The resulting behavior depends on each component's interface, state, permissions, and response to failure, not merely on the calling contract's own code. Understanding the system means identifying those paths and the people or contracts able to exercise them, not merely reading the main user-facing function. A website can describe one workflow while the deployed contract permits others. Source verification links published code to deployed bytecode under a compilation process; it does not prove that the code is safe, economically sound, or configured as expected.
A worked situation
Consider this hypothetical situation: A hypothetical router calls a lending pool, a swap pool, and a token contract to complete one user action. A nonstandard response or failure in any component can alter or revert the combined operation according to the caller's error-handling logic.
Where interpretation can fail
A locally audited contract can still inherit risks from dependencies that change, pause, return unusual values, or expose broader permissions. Trace the external call graph and identify assumptions made about each dependency's behavior and upgradeability. Combining reliable-looking components does not automatically preserve reliability when their assumptions interact.
The wider technical implication
Dependencies can also fail through interface mismatches rather than obvious exploits. A token may deduct transfer fees, rebase balances, return unusual values, or invoke callbacks that the calling contract did not anticipate. An oracle can change timing or precision, and a liquidity source can become unavailable. A composable application must preserve its own invariants across those behaviors. The review question is therefore what the caller assumes about every dependency and whether those assumptions are enforced, measured, or merely expected. A correct component can still be used incorrectly within a larger system.
A global perspective
Contract permissions describe technical power. Legal authority, liability, and enforceability of related agreements are separate jurisdiction-dependent questions.
Sources & further reading
Ethereum.org — Smart contracts ↗OpenZeppelin Contracts — Access control ↗OpenZeppelin — Writing upgradeable contracts ↗Sources checked Oct 27, 2026. Educational examples. Historical observations are attributed to their sources. No affiliation with cited organizations.
Make the idea stick.
Mark complete when you are ready. Reaching the end alone does not mark a lesson complete.
What assumption in this guide would change the result in a different situation? Revisit the example and explain that change in your own words.
Explore crypto →