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.

Moonwell · Incident Feb 18, 2026 · Indexed Jun 5, 2026 · 3 sources

AI-generated code incorrectly used a partial value from two price sources, leading to a $1.78 million oracle failure.
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

Failure path · mode profile · Hallucination
  1. 01 · TriggerA user asks for a fact, a citation, or a figure.
  2. 02 · Model stepThe model writes a fluent, confident answer.
  3. 03 · Control gapNothing ties the claim back to a real source.
  4. 04 · FailureA fabricated fact ships as if it were verified.
  5. 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.

Public visibilityHigh
Regulatory exposureNone
Customer impactMany customers
Financial impactDisclosed
Time to disclosureHours
  1. PressAnthropic's Claude Opus 4.6 blamed for Moonwell's $1.78 ...cryptopolitan.com
  2. PressMoonwell Lost $1.78M After Smart Contract Bug Linked To AI-Generated Codempost.io
  3. PressOracle error leaves DeFi lender grappling with bad debtfinance.yahoo.com
Permalinkhttps://failureindex.ai/failures/moonwell-defi-platform-loses-million-generated
CitationAI 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).
Share cardA branded image of this record for posts and slides.

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

Controls for this failure mode
  • 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.