Skip to content

Cross-chain: receive - #238

Merged
dangeross merged 4 commits into
mainfrom
savage-cross-chain-receive
Sep 10, 2026
Merged

dangeross merged 4 commits into
mainfrom
savage-cross-chain-receive

Conversation

@dangeross

@dangeross dangeross commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Adds a USD tab to the Receive panel so someone can pay you a stablecoin from another chain and have it land in your Spark wallet, as BTC or USDB. This mirrors the cross-chain send flow that already exists.

Gated behind a new dev-only "Receive USD" toggle in Settings.

The flow

Enter a dollar amount, pick the coin and network you want to be paid in (a step is skipped when there is only one option), then show a QR of the deposit address with the amount to send and what will arrive. The SDK links the incoming payment once the sender deposits.

Payment amount fix

Amounts are now shown using the decimals of the asset they are actually in. Before, a transfer delivered on a chain with different precision could read wildly wrong: a $3 transfer displayed as $3 trillion. This affects the payments list, payment details, and the celebration screen, not just cross-chain receive.

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
breez-glow-web Ready Ready Preview Sep 10, 2026 10:08am UTC
breez-sdk-spark-example Ready Ready Preview Sep 10, 2026 10:08am UTC
savage-glow-web Ready Ready Preview Sep 10, 2026 10:08am UTC

@dangeross
dangeross force-pushed the savage-cross-chain-receive branch from f1a39c4 to b8ef04c Compare June 23, 2026 16:27
@dangeross
dangeross force-pushed the savage-cross-chain-receive branch from b8ef04c to e7f1402 Compare June 24, 2026 08:24
@dangeross
dangeross force-pushed the savage-cross-chain-receive branch from 63e3ae6 to 4e8a9c9 Compare July 13, 2026 10:37
@dangeross
dangeross force-pushed the savage-cross-chain-receive branch from 4e8a9c9 to c33357a Compare July 15, 2026 09:45
@dangeross
dangeross force-pushed the savage-cross-chain-receive branch from c33357a to 5b19fca Compare July 20, 2026 12:47
@dangeross
dangeross force-pushed the savage-cross-chain-receive branch from 5b19fca to 8cf7e06 Compare September 1, 2026 12:34
The USD tab pinned its container at 500px so the sheet opened at the
result step's height on every step. A short step (amount, coin picker)
was padded out with dead space below its buttons, and the sheet never
re-adjusted between steps.

Drop the fixed height and let each step size itself: BottomSheetCard
already observes content and re-snaps. The selection lists keep their
Back/Continue row on screen through their own viewport cap, which is
the path the send flow uses, so the `fill` prop the fixed height
needed goes away.

Top padding now matches the other tabs. Every USD step starts at pt-6
(the Bitcoin tab's step padding); before, the coin and network steps
had none and the result step had pt-4.
StepContainer floors its content at 280px. The amount step is shorter
than that, so it kept a band of dead space under Continue even after
the sheet stopped being pinned at 500px.

Render the USD tab outside StepContainer, the way the cross-chain send
flow already does, so every step sizes to its own content and the sheet
tracks it. The loading step switches to the send flow's py-12 for the
same reason: no fixed height left to center against.
@dangeross
dangeross merged commit 829a353 into main Sep 10, 2026
11 checks passed
@dangeross
dangeross deleted the savage-cross-chain-receive branch September 10, 2026 10:11
@dangeross
dangeross restored the savage-cross-chain-receive branch September 10, 2026 10:22

This branch was successfully deployed

4 active (1 outdated) deployments
Preview – breez-glow-web bda6c4d4 Deployed Sep 10, 2026 by vercel[bot]
Production – savage-glow-web bda6c4d4 Deployed Sep 10, 2026 by vercel[bot]
Preview – breez-sdk-spark-example bda6c4d4 Deployed Sep 10, 2026 by vercel[bot]
Production – breez-glow-web e6c804b8 Deployed Sep 9, 2026 by vercel[bot]
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