Skip to content

feat: mainnet config — aggregators, Pyth feeds, collaterals, shared objects#42

Merged
JustaLiang merged 2 commits intomainfrom
fix/update-funding-rate
Apr 18, 2026
Merged

feat: mainnet config — aggregators, Pyth feeds, collaterals, shared objects#42
JustaLiang merged 2 commits intomainfrom
fix/update-funding-rate

Conversation

@JustaLiang
Copy link
Copy Markdown
Contributor

Summary

  • Add all 13 mainnet market aggregatorIds (from on-chain ListingCap) and priceInfoIds
  • Add MAINNET_COLLATERALS (USDC + USDSUI) with deployed aggregator IDs
  • Add PYTH_SPONSOR_RULE to MAINNET_PACKAGE_IDS, PYTH_SPONSOR + REWARD_DISTRIBUTOR to MAINNET_OBJECTS
  • Fix PYTH_STATE_ID.MAINNET (old ID did not exist on-chain)
  • Add mainnet xStock + USDSUI Pyth feed IDs to PYTH_PRICE_FEED_IDS
  • Switch USDSUI collateral from USDC/USD proxy to dedicated USDSUI/USD feed key
  • Add scripts/setup-collateral-aggregators.sh for deploying collateral oracle aggregators

Note: 5 feeds still need on-chain PriceInfoObject creation: DEEP, WAL, GOOGLX, NVDAX, USDSUI (marked with TODO).

Test plan

  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test:unit — 246/246 tests pass

🤖 Generated with Claude Code

JustaLiang and others added 2 commits April 18, 2026 17:34
- Add WaterXClient.mainnet() and createMainnetConfig()
- Fix PYTH_STATE_ID.MAINNET to stable channel deployment
- Update all 15 priceInfoIds to match stable Pyth deployment
- Add --mainnet flag to oracle:aggregates script
- Export createMainnetConfig and MAINNET_COLLATERALS from index

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JustaLiang JustaLiang merged commit 3dcd56a into main Apr 18, 2026
11 of 12 checks passed
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.

1 participant