Oracle Gateway
The Problem
(, int256 price,,,) = priceFeed.latestRoundData();The Solution
import {IAggregatorV3Interface} from "@rome-protocol/solidity-sdk/contracts/oracle/IAggregatorV3Interface.sol";
// Same interface as Chainlink on Ethereum
IAggregatorV3 priceFeed = IAggregatorV3(ORACLE_ADAPTER_ADDRESS);
(, int256 price,,,) = priceFeed.latestRoundData();
// price = SOL/USD at 8 decimals (e.g., 15000000000 = $150.00)Architecture
OracleAdapterFactory
Adapter Types
Interfaces
Standard Chainlink Interface
Extended Interface
Batch Reader
Staleness Protection
Deployed Addresses (Devnet)
Contract
Address
Constraints
Status
What's Next
Last updated
Was this helpful?