Connect
Connect

Enshrined Oracles

Fair Prices You
Can Trust

Rujira uses multiple price sources and filters them before every trade. This system, called Enshrined Oracles, keeps pricing fair and protects you from manipulation.

Illustration of the Enshrined Oracles network collecting prices from multiple node operators and market sources.

The Problem

Oracles Have Always Been DeFi's Weakest Link

Most DeFi protocols rely on external oracle networks, which introduce additional trust assumptions, latency, and attack surface between price data and protocol execution.

Flash Loan Manipulation

Attackers borrow large sums in a single transaction to temporarily distort spot prices used by on-chain oracles, triggering liquidations or draining protocols.

Latency & Staleness

External oracle networks update on their own schedule. Between updates, prices can drift significantly, creating arbitrage risk and inaccurate liquidations.

Third-Party Trust

External oracle privders are separate systems with their own validator sets and economic models, adding trust assumptions beyond the core protocol.

Mechanics

How Enshrined Oracles Work

To make this concrete, follow how a BTC/USD price becomes the oracle price inside a THORChain block: nodes fetch many sources, remove outliers, publish their own averages, and the network finalizes one consensus value before execution.

1

Nodes Fetch 10+ Price Sources

Each THORChain node independently fetches the BTC/USD price, or any supported asset, from more than 10 exchange data sources. Crucially, each node operator can choose their own set of sources. This diversity makes the system resilient to any single feed going down or acting maliciously.

Node A · Price Fetch · BTC/USD

AssetBTC / USD

Fetching from sources

Coinbase Pro
$83,412.00
Binance
$83,408.50
8 more sources
fetching...
Oracle step showing one node fetching many market price sources for BTC and USD.
2

Each Node Removes Outliers

Once a node has collected prices from all its sources, it runs an outlier detection algorithm. Any price that deviates significantly from the cluster is removed before averaging. This protects against a single compromised or manipulated data source corrupting the final price.

Node A · Outlier Detection

10 prices received · sorting

Coinbase Pro
$83,412.00Keep
Binance
$83,408.50Keep
Unknown src
$84,900Removed
Kraken
$83,409.40Keep
Oracle step showing one node removing abnormal source prices before averaging.
3

Each Node Pushes Its Own Average

After filtering, each node computes a volume weighted average of its remaining valid prices and pushes that single value to the network. This is the node's vote for the true price in this block cycle.

Node A · Computing Average

9 valid prices

Coinbase$83,412
Binance$83,408
Kraken$83,409

Node A publishes

Node A average$83,411
Oracle step showing a node averaging valid source prices into one published value.
4

Final Price from ~100 Nodes Average

The network collects the averaged prices submitted by all active Nodes. Each one independently computed its own number from its own source set. The protocol then takes the average of those node-level submissions to produce the final oracle price for that block.

Network Consensus · BTC/USD

Node submissions this block

Node 001 (US-East)$83,412
Node 047 (EU-West)$83,413
+ 96 more nodes...≈ $83,411

Final consensus price

Network average$83,411
Oracle step showing the network averaging many node submissions into one consensus price.
5

Price Added to the Block

The final consensus price is committed directly into the THORChain block before any transactions in that block are executed. This pre-commit window makes it extremely difficult for attackers to predict or front-run the price.

THORChain Block #21,340,812

FinalizedHeight: 21,340,812

Block Contents

Oracle Price · BTC/USD$83,411
Committed at⅓ block – pre-execution
Transactions847 txns (use oracle)
Block time~6 seconds
Validator signatures100 / 100
Oracle step showing the final oracle price written into a THORChain block before execution.
6

Rujira Products Use This as Source of Truth

Every Rujira product that needs a price, including loans, liquidations, perps, indices, and future prediction markets, reads directly from the block's enshrined oracle price. There are no external oracle calls, no latency, and no extra trust layer.

Oracle Price · Consumer Products

Oracle Price · BTC/USD$83,411
RUJI Perps · BTC-USD mark
$83,411
Credit Accounts · BTC collateral
$83,411
Liquidations · trigger price
$83,411
RUJI Index · NAV calculation
$83,411
Oracle step showing Rujira products reading the same block-native oracle price as their source of truth.

Comparison

Enshrined vs Other Oracle Models

ModelTHORChain Enshrined OracleThird-party OraclesAMM Spot Price
Architecture
Baked into every block by 100+ validators
Separate oracle network, on-chain update txnsDerived from pool reserves on-chain
Latency
Every block (~6s), pre-committed
Heartbeat or deviation triggeredEvery block, but manipulable
Manipulation risk
Very low - requires 51% of validators
Low - depends on oracle network designHigh - flash loan vulnerable
Trust assumptions
None beyond THORChain validators
Trust external oracle operatorsTrustless but manipulable
Data types
Crypto, forex, stocks, commodities
Crypto, forex, equities, commoditiesOn-chain assets only
Source diversity
10+ per node, different per node
Fixed set of data providersSingle pool price only
Used by Rujira
Perps, Lending, Liquidations, Index
N/AN/A

Architecture

THORChain Enshrined Oracle
Baked into every block by 100+ validators
Third-party Oracles
Separate oracle network, on-chain update txns
AMM Spot Price
Derived from pool reserves on-chain

Latency

THORChain Enshrined Oracle
Every block (~6s), pre-committed
Third-party Oracles
Heartbeat or deviation triggered
AMM Spot Price
Every block, but manipulable

Manipulation risk

THORChain Enshrined Oracle
Very low - requires 51% of validators
Third-party Oracles
Low - depends on oracle network design
AMM Spot Price
High - flash loan vulnerable

Trust assumptions

THORChain Enshrined Oracle
None beyond THORChain validators
Third-party Oracles
Trust external oracle operators
AMM Spot Price
Trustless but manipulable

Data types

THORChain Enshrined Oracle
Crypto, forex, stocks, commodities
Third-party Oracles
Crypto, forex, equities, commodities
AMM Spot Price
On-chain assets only

Source diversity

THORChain Enshrined Oracle
10+ per node, different per node
Third-party Oracles
Fixed set of data providers
AMM Spot Price
Single pool price only

Used by Rujira

THORChain Enshrined Oracle
Perps, Lending, Liquidations, Index
Third-party Oracles
N/A
AMM Spot Price
N/A

Why this matters

What Enshrined Oracles Unlock

By moving price data inside the protocol itself, Rujira can build financial products that would be unsafe or impossible with external oracles.

Higher Leverage on Perps

Accurate, manipulation-resistant prices allow RUJI Perps to safely support up to 50x leverage, impossible with flash-loan-vulnerable spot oracles.

Fair Loan Liquidations

CDP loans and credit accounts liquidate at a true, multi-source consensus price, not a manipulated spot price. Borrowers get fair treatment.

Any Asset, Any Market

The same mechanism that prices BTC can price forex pairs, stocks, or commodities, opening up Rujira to real-world prediction markets and indices.

No Extra Trust Layer

Zero dependency on any external oracle network.

Per-Block Freshness

Every ~6 seconds, a fresh price is committed. There are no stale windows, no deviation thresholds, and DeFi products always work with the most current data.

Prediction Markets

Trustworthy real-world data feeds pave the way for on-chain prediction markets on stocks, election outcomes, sports results, and more, coming to Rujira.

Secured Assets

Safe Pricing Is One Layer. Secured Assets Are Another.

Enshrined Oracles help protect the pricing side of the system. Secured Assets protect the custody side. If Secured Assets are new to you, they are 1:1 backed versions of native assets like BTC held in decentralized THORChain vaults, giving Rujira a safer foundation for native-asset DeFi from both a pricing and asset-security perspective.

Explore Secured Assets
Illustration showing a secured asset created from native Bitcoin held in THORChain vaults.

FAQ

Questions and Answers

Common questions about how Enshrined Oracles work and why they matter across Rujira.

Discover More

See where oracle pricing fits

You've now got the Enshrined Oracles overview. Pick a page below to explore the pieces behind it, or head to the Support Center for guides and answers.

Or look for the full overview in our Support and Learn section.

Explore Support