How to check lending market oracle: Morpho, Aave, Euler

How to check a lending market oracle on Morpho, Aave and Euler, then read the oracle contract on a block explorer and understand what its fields mean.

Published · Updated · Last verified · Tools · Lending

Every lending market has one contract that decides when a position can be liquidated, and that contract is not the one you deposit into. To check a lending market oracle, find the oracle address the protocol exposes for that market or reserve, open it on a block explorer, and read its functions and fixed settings.

A lending market oracle is the contract a lending protocol calls to convert collateral and debt into a common unit of value. This guide covers the steps on Morpho, Aave and Euler, as the three protocols’ own docs describe them, and then how to read what you find. It does not rate any market, and it shows no live values.

Why check which oracle a lending market uses?

The oracle sets the price that borrow limits and liquidations are measured against. Two markets that look alike in an app can price their collateral through different contracts with different failure modes.

Our Morpho market checklist lists what to look at on a market before lending. This guide covers one line of that list in detail: how to trace the oracle to its source. For the kinds of oracle you may meet, see lending oracle types. For the difference between a price from a market and one from a net asset value calculation, see market price oracle vs NAV oracle.

How do you find the oracle on a Morpho market?

On Morpho the oracle is a market parameter, so each market names its own. Morpho’s docs on markets define the oracle as a smart contract address that prices the collateral against the loan asset, and say the oracle and interest rate model addresses are shown on the market page.

  1. Open the market on the Morpho app and find the market page for the loan and collateral pair you care about.
  2. Copy the oracle address from the market page.
  3. Open that address on a block explorer for the chain the market runs on.
  4. Check the Contract tab for verified source code, and read the contract name.
  5. Call price() on the contract. Morpho’s docs say oracles implement an IOracle interface whose price() function returns the value of one collateral unit in loan-token terms.
  6. If the contract is a MorphoChainlinkOracleV2, read its fixed settings, listed in the table below.

Morpho’s docs say the price() result is scaled by 1e36. It represents the price of 10^(collateral decimals) collateral units in 10^(loan decimals) loan units, so the number only makes sense once you account for both tokens’ decimals.

The docs page on oracles does not describe how a market stores its oracle address, so treat the market page as a pointer and confirm the address against the market’s parameters on the Morpho contract if the two ever look different.

How do you find the price source for an Aave reserve?

On Aave the price source is set per asset inside one oracle contract, not per market page. Aave’s V3 oracle docs describe getSourceOfAsset, which returns the price source address for an asset, and getAssetPrice, which returns one asset’s price in the market’s base currency.

  1. Find the AaveOracle contract address for the Aave market you are looking at, using Aave’s own contract documentation for that deployment. The oracle page does not say how to locate it, so confirm the address on the contract.
  2. Open that address on a block explorer and go to the Read Contract tab.
  3. Call getSourceOfAsset with the reserve’s asset address. It returns the address of the price source.
  4. Open the returned address on the explorer and read what it is. Aave’s docs do not describe the source’s interface on that page, so identify it from its verified source code and name.
  5. Call getFallbackOracle to see whether a fallback oracle address is set.
  6. Call getAssetPrice for the same asset to see the price in the market’s base currency. The docs say prices are scaled by BASE_CURRENCY_UNIT, which is 8 decimals on USD markets.

The docs also say setAssetSources and setFallbackOracle are restricted to the POOL_ADMIN or ASSET_LISTING_ADMIN roles. So the price source for a reserve can change when one of those roles acts, and a source you read today is the source as of today.

How do you find the oracle on a Euler vault?

On Euler a vault’s oracle can be a router, and the router holds the route for each asset. Euler’s price oracle docs describe EulerRouter as mapping asset pairs to providers, with an optional step that resolves ERC-4626 vault shares and a fallback provider for pairs that nothing else resolves.

  1. Open the vault in the Euler app and find its Configuration view. Euler’s oracle route guide places the route under Market, then Configuration, then Price routes, and says the market’s Overview groups routes by router.
  2. Note the router address, the unit of account and the adapter shown for each asset. The docs say a vault’s router and unit of account are fixed at creation.
  3. Open the router on a block explorer. Euler’s docs do not list the router’s function names on the pages we read, so use the verified source on the explorer to see which functions to read.
  4. For each adapter address, open it and identify its type from the contract. The docs list Chainlink, Chainlink for infrequent feeds, Chronicle, Pyth, Pendle, fixed rate, rate provider and cross adapter in the catalogue.
  5. Check whether a collateral token is a vault share. The docs say the router then calls convertToAssets on that vault and prices the underlying asset.
  6. To read configured routes in bulk, Euler’s docs point to the Lens contracts.

Two behaviours from the docs matter when you read a route. The fallback is not automatic failover: it is consulted only when no pair-specific provider resolves the request, and if a configured provider reverts, the router passes that error on. And the docs warn that convertToAssets is an accounting value, not a redeemable one.

How do you read an oracle contract on a block explorer?

Open the address, confirm the source is verified, and use the Read Contract tab. Etherscan’s guide says to open a contract page, go to Read Contract, click a function, and enter any input it asks for. It adds that no wallet connection is needed for reading.

Etherscan’s page on exploring a contract address says the Contract tab holds the source code, compiler version and ABI, with the Read Contract and Write Contract interfaces. Use only the read side. A read call returns data the contract already stores or computes and sends no transaction.

For an oracle, the useful reads are the functions named above, plus any fixed settings the contract exposes. On Etherscan a verified contract also shows its source, so you can read the code behind each value.

What do the labels and fields on an oracle contract mean?

The labels tell you who the explorer says an address is, and the fields tell you what the oracle was built from. Neither is a safety rating.

What you see What the docs say it means
Source Code, verified Etherscan says the source has been verified to match the onchain bytecode, and that this does not mean the contract is safe to interact with
Public Name Tag Etherscan says it is linked to the official website in most cases and visible to everyone
Public Label The sector or category, such as DeFi or Exchange, per Etherscan
Contract Creator The creating address and the creation transaction hash, per Etherscan
BASE_FEED_1, BASE_FEED_2 Base price feeds on a MorphoChainlinkOracleV2; address zero means the price is 1
QUOTE_FEED_1, QUOTE_FEED_2 Quote price feeds; address zero means the price is 1
BASE_VAULT, QUOTE_VAULT An ERC-4626 vault used on that side of the price; address zero means omitted
BASE_VAULT_CONVERSION_SAMPLE, QUOTE_VAULT_CONVERSION_SAMPLE The sample amount of vault shares used for the conversion; the docs say to use 1 if the quote asset is not a vault
BASE_TOKEN_DECIMALS, QUOTE_TOKEN_DECIMALS The decimals passed to the oracle; Morpho’s docs say these must be correct
getSourceOfAsset result (Aave) The address of the price source for one asset
getFallbackOracle result (Aave) The fallback oracle address
Router, adapter, unit of account (Euler) Which contract routes the price, which feed it reads, and the unit both sides convert into

Morpho’s docs state the assumptions behind MorphoChainlinkOracleV2: vaults must be ERC-4626 compliant, feeds must follow the Chainlink interface, and the decimals passed must be correct. A feed address of zero is a setting, not an error.

What should you check and where?

Work through this list for each market, and write down the date you checked.

  • The oracle address. Morpho: the market page. Aave: getSourceOfAsset on the oracle contract. Euler: the router and adapter shown under Price routes.
  • The contract type. Read the contract name and verified source on the explorer, and confirm it matches what the protocol’s docs describe.
  • The feeds or vaults behind it. On a MorphoChainlinkOracleV2, read the feed and vault fields. On Euler, read each adapter in the route.
  • Who can change it. On Aave, the roles that can call setAssetSources. On Euler, the router’s governor, which the docs say can be revoked to finalise the configuration.
  • The fallback. Aave’s getFallbackOracle. Euler’s fallback provider and the rule that it is not automatic failover.
  • The decimals and scale. Confirm that Morpho’s 1e36 scale or Aave’s base currency unit is accounted for before you compare two numbers.

Where an app screen shows an oracle, router or price source, confirm it on the contract. The docs we read describe the contracts; they do not describe every screen in every app.

This guide is educational and does not rate any market or give investment advice. Browse more protocols under lending.

Questions

Where do I find the oracle for a Morpho market?
Morpho's docs define the oracle as a smart contract address that prices the collateral against the loan asset, and say the oracle and interest rate model addresses are shown on the market page. Open that address on a block explorer and read it from there.
How do I see which price source Aave uses for a reserve?
Aave's V3 docs describe a getSourceOfAsset method on the AaveOracle contract. You pass the asset address and it returns the address of the price source. You can call it from the Read Contract tab of a block explorer.
What is the oracle router on Euler?
Euler's docs describe EulerRouter as the contract that maps asset pairs to price providers. It can pick an adapter, price a tokenised vault's shares through the asset the vault holds, or use a fallback provider.
Does a verified contract mean the oracle is safe?
No. Etherscan's pages say verification means the published source matches the onchain bytecode and does not mean the contract is safe to interact with. Verification tells you what the code is, not whether the code suits your position.

Sources

  1. Oracles, Morpho docsaccessed
  2. Market, Morpho docsaccessed
  3. Oracles, Aave V3 docsaccessed
  4. Price oracles, Euler docsaccessed
  5. Oracle routes, Euler docsaccessed
  6. How to use Read or Write Contract features on Etherscan, Etherscan Information Centeraccessed
  7. Explore a contract address on Etherscan, Etherscan Information Centeraccessed