Skip to content

Fix Stocks checkout WASM initialization in the browser SDK - #1483

Draft
ebma wants to merge 1 commit into
stagingfrom
codex/stocks-wasm-hotfix
Draft

ebma wants to merge 1 commit into
stagingfrom
codex/stocks-wasm-hotfix

Conversation

@ebma

@ebma ebma commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Incident

A live 25 USDC NVDA checkout hit a Polkadot WASM exception before the SDK sent the registration request. In the built browser SDK, crypto readiness was awaited in the bundled runtime while the keyring came from the external API facade and used a separate WASM instance.

Fix

Use the direct keyring dependency for key derivation and presigning so both use the same runtime as the readiness wait. Ephemeral key formats and the API contract stay the same. This hotfix can be reviewed and merged independently of the Stocks checkout redesign in #1482.

Verification

  • The packaged browser regression reproduces the exact error on staging and passes with the fix. It registers a synthetic 25 USDC Stocks buy, a Stocks sell and a Pix buy. It verifies local key persistence, the EVM presigner and that owner approval stays unsigned.
  • Shared (335), SDK (190), Stocks (446), consumer kit (127) and Gold (71) tests passed locally. The SDK package consumer checks also passed.
  • 119 API checks passed against isolated Postgres with simulated provider and chain responses. They covered partial funding, a late bridge fill, refunded orders and replay protection.
  • Chromium passed the checkout journeys for USDC and Pix at 1440, 390 and 320 px. A separate Chromium probe cold-registered a synthetic 25 USDC order using the actual live-mode bundle.
  • All test orders and execution responses used synthetic funds.

Reviewer: @ebma

@netlify

netlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 001abfa
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6b068069289ed8b3f0a98ccf
😎 Deploy Preview https://deploy-preview-1483--vortex-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 001abfa
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6b06806941396fe15d23ffc3
😎 Deploy Preview https://deploy-preview-1483--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vrtx-dashboard canceled.

Name Link
🔨 Latest commit 001abfa
🔍 Latest deploy log https://app.netlify.com/projects/vrtx-dashboard/deploys/6b068069fd83c686078fff96

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