Crypto / Evergreen
A price-dependent contract inherits its oracle's assumptions
A contract using an external price can make incorrect economic decisions if that input is manipulable, stale, or unsuitable for the market being valued.
Correct computation cannot compensate for an economically unreliable input.
The distinction that matters
A contract using an external price can make incorrect economic decisions if that input is manipulable, stale, or unsuitable for the market being valued. Smart-contract security combines software correctness, authorization, and economic assumptions. A program can follow its written code perfectly while producing an outcome its designers did not intend. Attackers can choose inputs, arrange transactions, interact through other contracts, and exploit the precise order in which state changes and external calls occur.
How the mechanism works
The vulnerability can exist even when the contract performs the programmed arithmetic correctly and every transaction follows network consensus rules. Public code makes behavior inspectable, but inspection requires attention to all reachable paths and dependencies. Security reviews, formal methods, tests, and monitoring provide different kinds of evidence. None is a universal certificate covering every later upgrade, configuration change, or interaction with external systems. A review's scope, version, and unresolved findings matter, and a deployed contract can differ from the reviewed artifact.
A worked situation
Consider this hypothetical situation: A hypothetical lending contract values collateral from one thinly traded pool, and an attacker temporarily moves that pool's price before borrowing. The contract can overvalue the collateral and release more assets than its designers intended under a robust market-price assumption.
Where interpretation can fail
A price source should be evaluated for depth, update rules, aggregation, and the cost of influencing the measured value. Trace the exact feed and valuation formula used by the deployed contract rather than assuming that an oracle label implies manipulation resistance. Correct computation cannot compensate for an economically unreliable input.
The wider technical implication
The attack can be economically profitable even if moving the reference price is expensive in isolation. The relevant comparison is that cost against the value extractable from the lending, minting, or settlement action using the distorted price. A small source market can therefore become dangerous when it prices a much larger dependent system. Time-weighting, aggregation, and circuit breakers address different parts of the problem, but each introduces assumptions and trade-offs. The application should evaluate the oracle as part of an economic attack path, rather than simply checking that the feed returns a number reliably.
A global perspective
A technical exploit, contractual breach, and regulatory violation are different classifications. Remedies and reporting duties depend on jurisdiction and the actual facts.
Sources & further reading
Ethereum.org — Smart contract security ↗OpenZeppelin Contracts — Access control ↗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 →