docs: add Conflux-maintained Pyth-compatible oracle; flag Pyth sunset - #985
Open
intrepidcanadian wants to merge 2 commits into
Open
docs: add Conflux-maintained Pyth-compatible oracle; flag Pyth sunset#985intrepidcanadian wants to merge 2 commits into
intrepidcanadian wants to merge 2 commits into
Conversation
Pyth Network is shutting down Conflux eSpace support on July 31, 2026. Adds a new oracle page documenting the Conflux-maintained drop-in replacement (conflux-fans/oracle-contracts): verified mainnet/testnet proxy addresses, supported price feed IDs (same IDs as Pyth for major assets), migration steps from Pyth's pull model, a consumer contract example, and trust/limitation notes (1h cadence, role-based updaters, UUPS upgradeability). Adds a sunset warning to the existing Pyth tutorial linking to the migration page. Contract addresses verified on-chain: proxies and implementations have code, and the mainnet oracle serves a current CFX/USD price. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
@intrepidcanadian is attempting to deploy a commit to the SongForPrism Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Pana
requested changes
Jul 27, 2026
| A **Conflux-maintained, Pyth-compatible price oracle** is deployed as a drop-in read-side replacement. Existing integrators can migrate by pointing at a new contract address — the read functions and price feed IDs are unchanged for the major assets. | ||
| ::: | ||
|
|
||
| The replacement oracle is an on-chain price feed service maintained for the Conflux community, with source code at [conflux-fans/oracle-contracts](https://github.com/conflux-fans/oracle-contracts). Its read API is fully compatible with the [Pyth SDK Solidity interface](https://github.com/pyth-network/pyth-sdk-solidity) (`getPriceUnsafe`, `getPriceNoOlderThan`, `getEmaPriceUnsafe`, `getEmaPriceNoOlderThan`), returning the same `PythStructs.Price` type. |
Member
There was a problem hiding this comment.
getEmaPirceUnsafe and getEmaPriceNoOlderThan are not supported now, calling this method will result revert
Verified every read function against the deployed mainnet and testnet contracts. Corrections: - EMA prices are not available. Mainnet reverts with "EmaPrice not supported"; testnet does not revert and returns the spot price, so EMA-reading code passes on testnet and fails on mainnet. - getPrice(id) is getPriceNoOlderThan(id, getValidTimePeriod()), and that window (3600s) equals the publish cadence, so passing 3600 to getPriceNoOlderThan reproduces the same behaviour. - getValidTimePeriod() constrains only the deprecated getPrice / getEmaPrice, not getPriceNoOlderThan. - getPriceUnsafe applies no staleness check; publishTime is the only indication of age. - Reads revert with PriceFeedNotFound() / StalePrice() rather than returning sentinel values. - updatePriceFeeds / updatePriceFeedsIfNecessary / getUpdateFee are absent from the bytecode, so leftover calls revert. - USDT0 parity is a redemption property of the LayerZero OFT design, not a guarantee that the two trade identically. Also drops suitability and staleness-bound recommendations in favour of stating the mechanism, leaving those judgements to integrators. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Author
|
hi pana, updated based on your comments. checked - no ema on mainnet |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Pyth Network has announced it is shutting down Conflux eSpace support on July 31, 2026. This PR prepares the oracle docs:
0x5286BD91e2C79fE066926a15193C7e531bBF6750and testnet proxy0x838c40B3904FAfBc21b670c97b0dFeE7D8D0a016castliveness checkVerification
getPriceUnsafe(queried during authoring).docusaurus start— both pages render, links resolve.🤖 Generated with Claude Code
This change is