Moonwell DeFi platform loses $1.78 million due to AI generated smart contract pricing error
Moonwell suffered a $1.78 million loss after AI-generated code from Claude Opus 4.6 caused an oracle pricing error. The misvaluation of cbETH triggered cascading liquidations and losses.
AI-generated code incorrectly used a partial value from two price sources, leading to a $1.78 million oracle failure.
Key facts
- What
- Moonwell suffered a $1.78 million loss after AI-generated code from Claude Opus 4.6 caused an oracle pricing error.
- Incident date
- Feb 18, 2026
- Who
- Moonwell
- Failure mode
- Hallucination
- AI surface
- Code Assistant
- Severity
- Catastrophic
What happened
Moonwell deployed smart contract code generated by Claude Opus 4.6 that contained a critical pricing bug. The glitch caused the platform to misvalue cbETH, which subsequently triggered a series of cascading liquidations. This resulted in approximately $1.78 million in financial losses.
What broke inside the model
- 01 · TriggerA user asks for a fact, a citation, or a figure.
- 02 · Model stepThe model writes a fluent, confident answer.
- 03 · Control gapNothing ties the claim back to a real source.
- 04 · FailureA fabricated fact ships as if it were verified.
- 05 · ConsequenceThe false claim reaches a customer, a court, or the public.
Confidence holds, and even spikes, as the claim detaches from any source.
The AI-generated code failed to correctly aggregate price data from multiple sources. Instead of performing a proper calculation, the system used only one partial value from two price sources, leading to an incorrect token price.
What it cost
Sources
- PressAnthropic's Claude Opus 4.6 blamed for Moonwell's $1.78 ...cryptopolitan.com
- PressMoonwell Lost $1.78M After Smart Contract Bug Linked To AI-Generated Codempost.io
- PressOracle error leaves DeFi lender grappling with bad debtfinance.yahoo.com
Cite this entry
https://failureindex.ai/failures/moonwell-defi-platform-loses-million-generatedAI Failure Index. "Moonwell DeFi platform loses $1.78 million due to AI generated smart contract pricing error" (FI-0236). Realm Labs. https://failureindex.ai/failures/moonwell-defi-platform-loses-million-generated (indexed Jun 5, 2026).Data fields CC-BY 4.0, prose citation permitted. Incident ID FI-0236. Full dataset at /data.
Note from Realm Labs, the Index steward
How Realm would have caught this
- Prism
- OmniGuard
- AI Detection & Response (AIDR)
A runtime layer that watches the model's internal state can flag the moment a model commits to a claim it has no support for, and hold or reroute the response before it reaches a user. Realm reads those signals in real time rather than grading the transcript after the fact.