chore: point mainnet Pyth JSON-RPC default at Triton endpoint - #91
Merged
Conversation
rg-alpha
approved these changes
Jul 25, 2026
OctoSauce
approved these changes
Jul 25, 2026
Zorag44
added a commit
that referenced
this pull request
Jul 29, 2026
updateSingleTokenPrice passed no options to updatePythPriceFeeds / updateOraclePricesPTB, so NAVI's module-level default client served the SuiPythClient object reads on every deposit and withdraw — the public mainnet fullnode, the traffic #91 moved off public endpoints. Pass context.blockchain.suiGrpcClient to both. Guard pythPriceFeedId / pythPriceInfoObject, which NAVI treats as optional: the latter reaches tx.object() as arg 5 of oracle_pro::update_single_price_v3, so a supra/switchboard-only feed would abort on tx.object('') instead of naming the feed. Drop the DMC PRICE_FEED entry — the only one of our 21 absent from NAVI's live oracle.feeds, with no Navi pool and no reference in src/ outside the map. The other 20 match byte-identically and all carry Pyth data.
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.
Mysten shuts off JSON-RPC on fullnode.mainnet.sui.io on 2026-07-26. The internal Pyth SuiJsonRpcClient default for mainnet now uses the Triton endpoint. Testnet default and the gRPC client default are unchanged (gRPC is not affected by the shutdown).
Note: the Triton endpoint is Origin-gated (403 without an allowed browser Origin), so this default only works from allowed alphafi/alphalend domains; server-side consumers must pass their own pythSuiClient.