Skip to content

feat(sdk): make usdc the canonical quote asset#65

Open
Yaugourt wants to merge 1 commit into
mainfrom
feat/usdc-switch
Open

feat(sdk): make usdc the canonical quote asset#65
Yaugourt wants to merge 1 commit into
mainfrom
feat/usdc-switch

Conversation

@Yaugourt
Copy link
Copy Markdown
Collaborator

USDH is being sunset on Hyperliquid in favour of USDC. Switch the kit to treat USDC as the default quote while keeping the USDH path working as a legacy opt-in.

  • listPairs/getPair/getMids default to USDC-quoted spot pairs; pass { quote: 'USDH' } for the legacy USDH list
  • order layer (placeOrder/cancelOrder/getOpenOrders/getOrderStatus) resolves any spot pair, no longer gated to USDH-bearing pairs
  • listUsdhSpotPairs/findUsdhSpotPair, swap() and the bridge flows are untouched legacy USDH surfaces
  • UsdhPair.usdhRole is now optional (absent for non-USDH pairs); demo gallery handles the optional role

All 298 sdk tests and 54 widget tests pass.

What

Why

Tests

  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • Changeset added (or N/A)

USDH is being sunset on Hyperliquid in favour of USDC. Switch the kit
to treat USDC as the default quote while keeping the USDH path working
as a legacy opt-in.

- listPairs/getPair/getMids default to USDC-quoted spot pairs;
  pass { quote: 'USDH' } for the legacy USDH list
- order layer (placeOrder/cancelOrder/getOpenOrders/getOrderStatus)
  resolves any spot pair, no longer gated to USDH-bearing pairs
- listUsdhSpotPairs/findUsdhSpotPair, swap() and the bridge flows are
  untouched legacy USDH surfaces
- UsdhPair.usdhRole is now optional (absent for non-USDH pairs); demo
  gallery handles the optional role

All 298 sdk tests and 54 widget tests pass.
@Yaugourt Yaugourt requested a review from sumfxn as a code owner May 16, 2026 23:39
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