---
eip: 8330
label: ERC-8330
title: Subject-Linked NAV Snapshot Oracle
status: Last Call
type: Standards Track
category: ERC
created: 2026-07-05
requires: 165
official: https://eips.ethereum.org/EIPS/eip-8330
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8330.md
canonical: https://eips.huatuo.xyz/eip-8330/
lang: en
tldr: A standard oracle interface for publishing net asset value (NAV) snapshots of funds and illiquid assets, with provider attribution, corrections, invalidation, dual staleness checks and optional median aggregation.
tags: [oracle, nav, rwa, valuation, tokenized-funds]
---

# ERC-8330: Subject-Linked NAV Snapshot Oracle

> Defines subject-linked NAV streams with provider attribution, corrections, invalidation, staleness, and aggregation

**TL;DR:** A standard oracle interface for publishing net asset value (NAV) snapshots of funds and illiquid assets, with provider attribution, corrections, invalidation, dual staleness checks and optional median aggregation.

## What problem does it solve?

Tokenized funds, private credit, real estate and other illiquid assets are not priced continuously on an exchange. They are valued periodically, by an administrator or valuation agent, using some methodology. A contract or app consuming such a value needs to know what it means (per share? total?), as of when, who published it, whether it was later restated, and whether it is too old to use.

Existing price-feed interfaces do not carry most of that, and bespoke NAV contracts use incompatible keys and "latest value" rules. ERC-8330 defines one interface for publishing and reading NAV snapshots. It does not compute NAV, vet providers or guarantee redemption at that value.

## How it works

- **Streams.** Data is keyed by `(subjectId, currency)`. Currency IDs are hashes such as `keccak256("ERC-8330:CURRENCY:USD")`; token denominations hash in chain ID and token address.
- **Fixed basis per stream.** Before the first publication, an authorized configurer permanently sets `PER_UNIT`, `PER_SHARE` or `TOTAL`, so providers cannot disagree about what a number means.
- **Snapshots.** `publishNAV` (authorized providers only) records a signed `int256` NAV with `decimals` (≤ 18), a valuation timestamp, a methodology hash and URI, and the provider address. NAV is signed because liabilities can exceed assets.
- **Corrections.** A provider restates a value by publishing a correction that points at its own earlier snapshot for the same valuation time. History is kept; the latest link of the chain is the current one.
- **Invalidation.** A documented admin or governance role can invalidate a compromised or disputed snapshot. It stays in history but is excluded from latest-value and aggregation results.
- **Latest value.** `latestNAV` returns the current snapshot with the newest valuation timestamp, so a late correction to an old period cannot replace a newer valuation.
- **Two staleness flags.** `latestNAVStatus` adds `isPublishStale` (feed stopped updating, based on a heartbeat) and `isValuationStale` (fresh publication of old data). Consumers must check both.
- **Optional aggregation.** With several providers and a quorum, `aggregatedNAV` returns the lower median of their submissions for the latest timestamp that met quorum, and a `NAVDeviationDetected` event flags spreads above a threshold.

## Sample code

Consuming a NAV safely in Solidity:

```solidity
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;

interface INAVSnapshotOracle {
    function latestNAVStatus(bytes32 subjectId, bytes32 currency) external view returns (
        int256 nav, uint8 decimals, bytes32 navBasis,
        uint64 valuationTimestamp, uint64 publishedAt, address provider,
        bool isPublishStale, bool isValuationStale);
}

contract NavConsumer {
    bytes32 constant USD = keccak256("ERC-8330:CURRENCY:USD");
    bytes32 constant PER_SHARE = keccak256("ERC-8330:NAV_BASIS:PER_SHARE");
    INAVSnapshotOracle public immutable oracle;
    bytes32 public immutable fundId;

    constructor(INAVSnapshotOracle o, bytes32 id) { oracle = o; fundId = id; }

    function navPerShare() external view returns (uint256 value, uint8 decimals) {
        (int256 nav, uint8 d, bytes32 basis,,,, bool pubStale, bool valStale) =
            oracle.latestNAVStatus(fundId, USD);
        require(basis == PER_SHARE, "basis");
        require(!pubStale && !valStale, "stale");
        require(nav > 0, "non-positive NAV");
        return (uint256(nav), d);
    }
}
```

## Things to know

- **Status: Last Call.** It may still change before it is Final.
- NAV is an accounting assertion, not an executable or redemption price; tokens can trade away from NAV and redemptions can be gated.
- Provider and configurer authorization is implementation-defined, so trust in the oracle is trust in whoever controls those roles.
- `latestNAVStatus` and `aggregatedNAV` revert until staleness is configured. Avoid calling them in critical vault conversion paths unless that configuration is guaranteed.
- It can feed valuation into vaults such as [ERC-4626](/eip-4626/), [ERC-7540](/eip-7540/) and [ERC-7575](/eip-7575/), but does not define vault accounting. Oracles must support [ERC-165](/eip-165/) detection.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8330
