scallop-xoracle-integrationlisted
Install: claude install-skill scallop-io/scallop-skills
# xOracle: Multi-Source Oracle Integration
Aggregate and validate prices from Pyth and Switchboard through Scallop's xOracle layer.
> **Version note — read this first.** There are two generations of these contracts. The standalone [sui-x-oracle repo](../../../sui-x-oracle/) is **stale**: in it, *both* the Pyth and Switchboard rules write `set_secondary_price`, so its signatures cannot satisfy a primary policy. The **production** sources live in [sui-lending-protocol/contracts/sui_x_oracle/](../../../sui-lending-protocol/contracts/sui_x_oracle/) (packages: `x_oracle`, `pyth_rule`, `switchboard_rule`, `switchboard_on_demand_rule`, `supra_rule`, plus custom LST rules). Everything below is built from the production sources and cross-checked against the moveCalls that `@scallop-io/sui-scallop-sdk` **v4.3.0** actually emits ([src/txBuilders/oracles/index.ts](../../../sui-scallop-sdk/src/txBuilders/oracles/index.ts)) — treat the SDK builder as ground truth for the deployed packages.
## Overview
`sui-x-oracle` is the on-chain resolver every price-sensitive Scallop op flows through. It:
- Holds the **primary** and **secondary** rules registered for each coin.
- Enforces a **price-update policy** — only price feeds produced by an authorized rule module can update a `PriceFeed`.
- Confirms a price update only after every required rule has written, so a single compromised feed cannot drive a borrow/liquidate.
The vast majority of assets resolve via Pyth alone — the basic flow is al