feat(funding): method picker + web2 (fiat) onramps - #311
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a real provider quote to the buy preview (You receive / Fee), a fiat currency selector, and a read-only destination (token + chain). Centralize the onramp API base path (ONRAMP_API_BASE) ahead of the /v2/funding/onramp consolidation; remove the dead per-provider quote helpers in favor of one provider-agnostic fetchOnrampQuote. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…estination Buy preview: show the token+chain logo in the selector, make the secondary line the real token conversion from the live quote, add spacing before the presets, and reduce the destination row to chain logo + name. Transfer-from-wallet: dollar-denominated presets that convert 1:1 for stablecoin funding targets (with a token-unit fallback for unpriceable volatiles). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
|
Part of the Funding v2 set (web2 onramps + region routing). This is the SDK / widget; sibling PRs:
This degrades gracefully when the backend endpoints aren't live (falls back to static rows + the |
|
Funding v2 — full PR stack (5 PRs / 4 repos) Funding v2 = web2 onramps (Apple/Google Pay, Card, Bank) + server-side region+asset routing + the execute path. It spans:
Suggested order: #1086 → activation steps → js#327 → react#311 → react#315 → dash#212. The SDK/dash degrade gracefully until the api endpoints are live. Activation after api merges: Still open (next sprint): cross-repo (auto-posted to cross-link the stack) |
Adds the v2 funding method picker and web2 (fiat) onramp support to the deposit flow.
What's here
GET /v1/onramp/methods) and never shown to the user —useResolvedFundingMethods.useOnrampQuote), with currency + destination selection.Status
/v1/onramp; it flips to/v2/funding/onramp/*(one place:onrampEndpoints.ts) once the v2 routes are live in prod.🤖 Generated with Claude Code