Hardcoded oracle risk: how to check a lending oracle

How to spot a hardcoded oracle in a lending market, read its feeds on a block explorer, and see what failed in the March 2026 USR depeg on Morpho.

Published · Updated · Last verified · Onchain tools · Due-diligence checklists

A hardcoded oracle prices an asset at a preset value instead of reading what it trades at, and a lending market that uses one cannot liquidate collateral that has lost its peg. To check for one, list every feed the oracle contract reads and treat each empty or fixed slot as an assumption you underwrite.

On Morpho, the oracle is chosen by whoever creates the market and can never change. This guide shows how to read one on a block explorer, then applies the method to the oracle of a wstUSR/USDC market, the kind of market at the centre of the March 2026 USR depeg.

The prompt was a 30 Nov 2026 post by Ethan DeFi that ranks hardcoded oracles as the worst choice for lenders. The checks below use Morpho’s documentation and onchain reads, which we dated.

What is a hardcoded oracle?

A hardcoded oracle is a price source that returns a fixed value for one step of a price calculation. Morpho’s oracle docs call these fixed-price oracles and describe them as suited to assets with known or predefined exchange rates, such as stablecoins pegged to the same value.

The design has a reason. A thin secondary market can print a brief low price and trigger liquidations a fixed price would have avoided. The cost is the opposite case: a real and lasting depeg that the oracle never registers.

Morpho’s curator security notes state the consequence for lenders. Supplying to a market whose oracle overestimates the collateral leads to a loss of assets, because health checks and liquidations fail.

Why is a hardcoded oracle risky for lenders?

It lets anyone buy the collateral below its oracle price and borrow against the oracle value. Once the collateral trades below the oracle price times the LLTV, each borrow takes out more loan asset than the collateral is worth on the market, and lenders keep the shortfall.

Morpho’s curator notes give that threshold, oraclePrice × LLTV, for its vault exposure analysis. For a direct lender the same arithmetic applies: below that price, borrowing against the collateral and walking away is profitable.

How do you check whether a lending oracle is hardcoded?

Read the oracle contract on a block explorer and list each input. Morpho’s help center gives the method for the common MorphoChainlinkOracleV2 design.

  1. Open the market’s Risk tab and follow the oracle address to the explorer.
  2. On the Read Contract tab, read BASE_FEED_1, BASE_FEED_2, BASE_VAULT, QUOTE_FEED_1, QUOTE_FEED_2 and QUOTE_VAULT.
  3. Mark every field set to the zero address. Each one is a step the oracle skips and treats as 1:1.
  4. Open each non-zero feed and read its description() and latestRoundData(), which return the value and the time of its last update.
  5. Read price() and scale it by 36 plus the loan token decimals minus the collateral token decimals.
  6. Compare the result with the market price of the collateral. A gap that persists is the warning.

The help center says a MorphoChainlinkOracleV2 name does not mean Morpho deployed the oracle. Anyone can deploy one through the factory, and a market can use any contract with a public price() function. Our guide to checking whether a smart contract is legit covers how to confirm what code sits at an address.

Who can change the feeds?

Check the admin of every feed as well as the oracle. The Morpho decoder shows an Admin column for addresses that can change a feed or its settings. Our guide to multisig admin keys explains how to trace who controls such an address.

What does the oracle decoder show, and what does it miss?

The Morpho app’s oracle decoder shows which feeds an oracle reads, who provides them, who can change them and how often they update. The help center says it reads each listed market’s oracle once an hour and marks empty slots as “Fixed 1:1”.

The decoder does not check whether a feed’s price is accurate or whether it can be manipulated. It shows nothing at all for an oracle containing a contract it does not recognise. Morpho’s own wording is to use it as one input to your own research.

What happened in the USR depeg on Morpho?

On 22 March 2026 an attacker used compromised signing infrastructure to mint 80 million USR through Resolv’s Counter contract and extracted about $25 million as ETH, according to Resolv’s postmortem published on 4 April 2026. USR lost its dollar peg.

Several Morpho markets accepted wstUSR, the wrapped staked form of USR, as collateral. Chaos Labs reported on 23 March 2026 that the main wstUSR market had less than $5,000 of USDC supplied before curator vaults began reallocating, and that several curators, including Gauntlet, then routed over $6 million into the affected markets. Those figures are Chaos Labs’ estimates and have not been confirmed by the curators named.

What does the wstUSR/USDC oracle read?

We read the oracle of the wstUSR/USDC market (market ID 0xd9e34b1e...f28cc, LLTV 91.5%) on Ethereum on 30 Nov 2026. Its address is 0xDa850a72080024e17c1590fbf6ea7a826dB90760.

Oracle field Value read on 30 Nov 2026 What it means
BASE_VAULT wstUSR token, 0x1202…5055 Converts wstUSR into USR at the token’s own exchange rate
BASE_FEED_1 0xF9C7…e88c, “USR Price AggregatorV3 interface” Prices USR in dollars
BASE_FEED_2 Zero address Step skipped
QUOTE_FEED_1, QUOTE_FEED_2, QUOTE_VAULT Zero address USDC treated as one dollar
price() About 1.133 USDC per wstUSR, after scaling The value the market uses for liquidations

The USR feed returned an answer of 1.00000000 with a last-update time of 21 March 2026, 12:15 UTC, the day before the exploit. No input in this oracle reads where USR trades on the secondary market. The feed contract has an owner address set; we did not confirm how its value is produced.

That pattern matches the risk Morpho’s docs describe. The collateral’s value comes from the issuer’s own exchange rate and a dollar feed that did not move, so a depeg in the open market leaves the oracle price where it was.

How can a lending market reduce oracle risk?

Use a design whose failure mode you accept, and watch for divergence. Morpho’s curator notes advise extra caution with NAV-based oracles updated by the token issuer. They also recommend monitoring oracle prices against market prices, with an automated kill switch that empties a vault’s supply queue when the two diverge.

A meta-oracle is one structural option. Steakhouse Financial’s MetaOracleDeviationTimelock starts on a primary oracle and switches to a backup when their prices diverge past a threshold for a set challenge period. It switches back after prices stay converged for a healing period.

Oracle design Protects against Leaves open
Fixed price Short liquidation spikes from thin markets Any lasting depeg
Market price feed Lasting depegs Manipulation in thin pools, feed lag
Exchange rate (NAV) Noise in secondary trading Issuer error or exploit that the rate does not reflect
Meta-oracle with timelock Lasting divergence after the challenge period Losses during the challenge window

Sources: Morpho oracle docs, Morpho curator notes and Steakhouse MetaOracle docs. The “leaves open” column is our reading of those documents.

Where does this fit in a due diligence review?

The oracle check sits beside the code and governance checks. An audit of the lending protocol does not tell you whether a market creator picked a sound oracle, a gap our guide to what an audit does not cover discusses. For lender-side steps beyond the oracle, our sister site has a Morpho market checklist, and the due diligence checklists category collects related guides. Etherscan is the explorer used for the reads above.

This guide is educational and is not investment advice.

Questions

What is a hardcoded oracle?
A hardcoded oracle is a price source that returns a preset value for an asset, such as one dollar for a stablecoin, instead of reading a market price. It cannot detect a depeg, so a lending market using it keeps valuing the collateral at the preset price.
Why are hardcoded oracles used at all?
They avoid liquidations caused by short, thin-market price swings in assets meant to hold a peg. The trade-off is that a lasting depeg goes unseen, and Morpho's docs say an oracle that overestimates collateral leads to a loss of assets for suppliers.
How do I know if a Morpho oracle is hardcoded?
Open the market's Risk tab and look for "Fixed 1:1" in the oracle decoder. On a block explorer, a MorphoChainlinkOracleV2 feed field set to the zero address means that conversion step is skipped and treated as 1:1.
What happened to Morpho markets in the USR depeg?
After an attacker minted 80 million unbacked USR on 22 March 2026, according to Resolv, USR lost its peg. Chaos Labs reported that curator vaults then routed over $6 million of USDC into affected Morpho markets, which kept pricing the collateral near its pre-depeg value.
Is a market oracle always safer than a fixed price?
No. A market price can be manipulated in a thin pool, and a fixed price can miss a depeg. Morpho's risk docs say no oracle is immune to manipulation, so the check is which failure mode the market's design accepts.

Sources

  1. Oracle, Morpho Docsaccessed
  2. Oracles on Morpho, Morpho Help Center (updated 22 Oct 2026)accessed
  3. Security Considerations for Vault Curators, Morpho Docsaccessed
  4. Resolv Postmortem, March 22, 2026 Incident (published 4 Apr 2026)accessed
  5. Chaos Labs, DeFi's Contagion Loop (23 Mar 2026)accessed
  6. Etherscan, oracle 0xDa850a72080024e17c1590fbf6ea7a826dB90760 of the wstUSR/USDC Morpho market (read 30 Nov 2026)accessed
  7. Etherscan, USR price feed 0xf9c7c25fe58aaa494ee7ff1f6cf0b70d7c7ce88c (read 30 Nov 2026)accessed
  8. Steakhouse Financial, MetaOracle (Deviation Timelock) docsaccessed
  9. Ethan DeFi on X, checklist for lending to a Morpho market (30 Nov 2026)accessed