Skip to content

chore: point mainnet Pyth JSON-RPC default at Triton endpoint - #91

Merged
harshaalphafi merged 1 commit into
mainfrom
chore/pyth-jsonrpc-triton-endpoint
Jul 26, 2026
Merged

chore: point mainnet Pyth JSON-RPC default at Triton endpoint#91
harshaalphafi merged 1 commit into
mainfrom
chore/pyth-jsonrpc-triton-endpoint

Conversation

@11felix

@11felix 11felix commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

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.

@11felix
11felix requested a review from jangid as a code owner July 25, 2026 12:41
@11felix
11felix requested review from OctoSauce and rg-alpha July 25, 2026 12:44
@harshaalphafi
harshaalphafi merged commit 541f346 into main Jul 26, 2026
3 checks passed
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants