A service that brings off-chain data, most often asset prices, on-chain so programs can use it. On Solana the oracle network writes signed prices into accounts, and each program decides whether to trust what it reads.
Why it matters
Lending, perps, vaults and stablecoins act on prices they cannot see themselves. A wrong price read by the program can trigger bad liquidations or let someone borrow against inflated collateral in a single transaction.
What to check
- Ask which feeds the program reads, the maximum price age it accepts and how it uses the confidence interval.
- Ask what stops and what keeps working when the feed is stale, and who can change the oracle settings.
How it works in practice
Solana programs usually read a pull oracle: someone posts a signed price update to an account, and the program reads it. With Pyth the program takes a PriceUpdateV2 account and asks for a price no older than a set age for one feed ID.
Each read should check the account owner, the feed ID and the age, then apply the exponent and the confidence interval before the price is used in any formula.
Common mistakes
- Accepting any price age, so an old price drives a liquidation.
- Not checking the feed ID, so a valid update for another asset is accepted.
- Using a single AMM pool spot price as a price feed.
- Letting one admin key change the feed or the limits without a multisig or timelock.
Related terms
- AccountThe unit of storage on Solana.
- Audit (smart contract audit)An independent security review of a program at a specific commit, usually by a specialised firm, that reports vulnerabilities and recommendations before launch.
- TimelockA mandatory delay between queuing a sensitive change, such as a program upgrade or a parameter change, and executing it.
- MultisigA wallet that requires approval from several signers before executing a transaction.
Guides
- Solana oracle risks: eight checks for protocol teamsSolana oracle risks for protocol teams: stale prices, wrong feed IDs, fake accounts, confidence intervals, exponents, thin sources, update choice and outages.
- How to choose a Solana smart contract auditor: a practical checklistWhat actually matters when picking a Solana auditor: Anchor and native Rust experience, methodology, scope, timelines, red flags in quotes and what a good report looks like.
- Solana program upgrade authority: how to secure it with a multisigWho should hold a Solana program upgrade authority, how to move it to a multisig, when to add a timelock or make the program immutable, and the mistakes to avoid.
Describe your project in plain English. Smart Match suggests verified Solana providers with a reason for each match. Free for teams.
Get matched →