Skip to content

Prepare Gold on Base with Pix and USDC checkout - #1461

Merged
ebma merged 4 commits into
stagingfrom
codex/gold-base-usdc
Nov 13, 2026
Merged

ebma merged 4 commits into
stagingfrom
codex/gold-base-usdc

Conversation

@ebma

@ebma ebma commented Nov 12, 2026

Copy link
Copy Markdown
Member

Prepare the Gold checkout for official PAXG on Base while retaining the Ethereum default, existing Privy identity and Ethereum recovery. The opt-in client offers Pix/BRL and native Base USDC in both buy and sell directions. USDC funding remains in the user wallet, waits for two confirmations and requires a fresh quote and explicit authorization before registration. Partial/excess/late funds remain available.

The SDK adds a narrow same-chain USDC/PAXG adapter using common ephemeral persistence/presigning. The client pins delivery identity and source permits, uses consumer-kit locks/recovery, and retains Ethereum holdings separately. Base and USDC build gates default off. No production activation is included.

Backend dependency: this PR adds no server corridor. The API must list the canonical PAXG Base contract per rail/direction and provide matching quotes, registration and destinationTransfer. USDC buys and both sells require gasless exact-source authorization in goldPermitTransfer, as specified in apps/gold/README.md. Confirm this contract against the final backend; a different wallet request is deliberately refused. check:base currently reports the canonical token missing. It performs only anonymous listing/quote checks and no payment. Real-wallet and settlement acceptance remain open.

Validation: 55 Gold, 187 SDK (including package type/browser/Node checks), 127 consumer-kit and 378 existing Stocks tests passed. Root lint/wire checks and Gold live builds with the Base gates off/on passed. Synthetic USDC funding/re-review/buy/sell was exercised in the browser, including 390x844 mobile. Read-only Base checks returned PAXG, 18 decimals and a nonce. No real identity, wallet signature, payment or bank settlement was submitted.

@netlify

netlify Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit df40eb4
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6af720bbdafd23805e61811c
😎 Deploy Preview https://deploy-preview-1461--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 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit df40eb4
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6af720bb902e7526e703d5f1
😎 Deploy Preview https://deploy-preview-1461--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 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vrtx-dashboard canceled.

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

ebma added 3 commits November 13, 2026 11:25
The SDK key callback saves an Ethereum buy at stage "registering". The
later save after registration passes no stage, and the shared-store
wrapper spread the existing record under it, so the stage stayed
"registering". On resume, TransactionFlow then refused to show the Pix
QR. Carry over only createdAt, so a save without a stage means
"registered" again, as it did before the shared store.
A URL-less viem http() falls back to eth.merkle.io for mainnet, which
refuses the browser's CORS preflight, so every balance read failed and
selling was disabled. Use Privy's app-scoped RPC, which the embedded
wallet's provider used before, for Ethereum and Base.
# Conflicts:
#	docs/security-spec/01-auth/consumer-apps.md
#	packages/sdk/src/VortexSdk.ts
@ebma
ebma marked this pull request as ready for review November 13, 2026 15:04
@ebma
ebma merged commit 3649617 into staging Nov 13, 2026
6 checks passed
@ebma
ebma deleted the codex/gold-base-usdc branch November 13, 2026 15:12
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