SON
Squad Oracle Network
Disconnected
Trying to reach node...
Developers
Integrate Squad Oracle
Contract addresses, SDK, and code examples for every supported chain
Deployments by Chain
ChainChain IDOracle ContractRegistryStatus
BNB Chain56Active
Ethereum1Coming Soon
Chainlink-Compatible Adapters
Use these addresses as drop-in replacements for Chainlink price feeds
FeedChainAdapter AddressDecimals
XMR/USDBNB Chain8
SQUAD/USDBNB Chain8
TypeScript SDK
Preview
import { SquadOracle } from "@squadswapdefi/oracle-sdk";

const oracle = new SquadOracle(
  "0xF799d1ebc55B6FD1896714b92852a49b87461fB0",
  "https://bsc-dataseed.binance.org"
);

// Get XMR price
const xmr = await oracle.getPrice("XMR/USD");
console.log(`XMR: ${xmr.priceUsd}`);

// List all feeds
const feeds = await oracle.listFeeds();
Solidity Consumer
AggregatorV3
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import {IAggregatorV3} from "./IAggregatorV3.sol";

contract MyProtocol {
  IAggregatorV3 immutable oracle;

  constructor(address _adapter) {
    oracle = IAggregatorV3(_adapter);
  }

  function getXMRPrice() view returns (uint256) {
    (, int256 answer,, uint256 updatedAt,)
      = oracle.latestRoundData();
    require(answer > 0, "Invalid");
    require(block.timestamp - updatedAt < 7200, "Stale");
    return uint256(answer); // 8 decimals
  }
}
Resources