Skip to content

docs: Smart Recipes section [render preview] - #85

Open
jayeshbhole wants to merge 3 commits into
mainfrom
smart-recipes-docs
Open

docs: Smart Recipes section [render preview]#85
jayeshbhole wants to merge 3 commits into
mainfrom
smart-recipes-docs

Conversation

@jayeshbhole

@jayeshbhole jayeshbhole commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Adds a Smart Recipes section under the Onramp pillar, next to Smart Routing Address.

Pages: introduction, quickstart, recipes, how it works, reference.

Written against the SDK on master (types verified in the smart-recipes repo), which matters because the first draft of this branch documented a surface that no longer exists:

  • bridgeAndSwap rejects unconditionally with FEATURE_DISABLED; it was documented as a live recipe on its own page.
  • swapMinOutput and the requiresSrcSwap / requiresDestSwap route flags are gone from Quote.
  • withdrawFromVault exists and was documented nowhere.
  • QUOTE_EXPIRED is never emitted; expiresAt is stamped and never checked, so the "catch QuoteExpiredError and re-quote" advice was wrong. Expiry is now described as advisory.
  • Error table had wrong statuses (VAULT_CAP_EXCEEDED is 400 not 409, ASSET_MISMATCH 500 not 400) and was missing five live codes, including SLIPPAGE_TOO_LOW and its details.minSlippageBps retry value.

Also consolidated: the integration guide restated the other pages nearly verbatim, and params were duplicated between the guides and the API reference. Net 793 deletions, 11 pages to 5.

Code examples now omit serverUrl, which defaults to the hosted server, so there is no placeholder left to fill in.

Preview: /onramp/smart-recipes

Eight pages under Onramp: introduction, quickstart, deposits, vault
discovery, bridge and swap, quotes, tracking status, errors. Sidebar
group added next to Smart Routing Address.
Landing-style intro, How It Works, Integration Guide, API Reference.
Simplified Technical English throughout, short sentences, no em dashes.
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Aug 4, 2026 8:08am

Request Review

The pages documented a pre-#33/#34 surface: bridgeAndSwap as a live recipe,
swapMinOutput and the requiresSrcSwap/requiresDestSwap route flags, and a
QuoteExpiredError requote path the server never emits (expiresAt is stamped
and never checked). withdrawFromVault was missing entirely.

Fold deposits, quotes, vault-discovery and tracking-status into recipes.mdx;
api-reference and errors into reference.mdx. Drop integration-guide, which
restated the other pages, and bridge-and-swap, whose method always rejects.
Fix the error table: VAULT_CAP_EXCEEDED is 400 not 409, ASSET_MISMATCH 500
not 400, plus five missing codes including SLIPPAGE_TOO_LOW.
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.

2 participants