Oracle Gateway
Pyth and Switchboard price feeds behind Chainlink's AggregatorV3Interface.
The problem
(, int256 price,,,) = priceFeed.latestRoundData();The solution
import {IAggregatorV3Interface} from "@rome-protocol/rome-solidity/contracts/oracle/IAggregatorV3Interface.sol";
// Same interface as Chainlink on Ethereum
(, int256 price,,,) = IAggregatorV3Interface(ADAPTER).latestRoundData();
// price = SOL/USD at 8 decimals (e.g. 15000000000 = $150.00)Consume a feed in three steps
Adapter types
Freshness — the oracle-keeper
Customer portal
Deployed addresses
Contract
Hadrian
Martius
Constraints
What's Next
Last updated
Was this helpful?