Skip to content

fix(card-deposit): prevent silent no-op and add minimum-amount UI - #1964

Merged
MusabShakeel576 merged 1 commit into
qafrom
claude/deposit-card-all-chains-earUz
Apr 20, 2026
Merged

fix(card-deposit): prevent silent no-op and add minimum-amount UI#1964
MusabShakeel576 merged 1 commit into
qafrom
claude/deposit-card-all-chains-earUz

Conversation

@MusabShakeel576

Copy link
Copy Markdown
Contributor

Addresses two issues in the card deposit from Solid wallet flow:

  1. When useDepositStore.srcChainId is 0/unset (e.g. after resetDepositFlow persisted an unset value), useDepositFromSolidUsdc silently returned undefined from deposit(), so the form opened the transaction-status screen with no approve UserOp ever submitted and no Turnkey passkey prompt. The hook now throws a clear error when srcChainId is falsy, and CardDepositInternalForm defaults srcChainId to Base (the card funding chain) whenever the stored value is missing or unsupported.

  2. Card deposit form now enforces EXPO_PUBLIC_MINIMUM_SPONSOR_AMOUNT via a zod refine on the WALLET source (disables the submit button and surfaces a validation message) and shows a gasless deposit hint row under the destination mirroring DepositToVaultForm's Fuel-icon line.

https://claude.ai/code/session_01TDpHy9uTrVX3PTRp9xS9S5

Addresses two issues in the card deposit from Solid wallet flow:

1. When useDepositStore.srcChainId is 0/unset (e.g. after resetDepositFlow
   persisted an unset value), useDepositFromSolidUsdc silently returned
   undefined from deposit(), so the form opened the transaction-status
   screen with no approve UserOp ever submitted and no Turnkey passkey
   prompt. The hook now throws a clear error when srcChainId is falsy,
   and CardDepositInternalForm defaults srcChainId to Base (the card
   funding chain) whenever the stored value is missing or unsupported.

2. Card deposit form now enforces EXPO_PUBLIC_MINIMUM_SPONSOR_AMOUNT via
   a zod refine on the WALLET source (disables the submit button and
   surfaces a validation message) and shows a gasless deposit hint row
   under the destination mirroring DepositToVaultForm's Fuel-icon line.

https://claude.ai/code/session_01TDpHy9uTrVX3PTRp9xS9S5
@vercel

vercel Bot commented Apr 20, 2026

Copy link
Copy Markdown

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

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
solid-app Ignored Ignored Apr 20, 2026 1:00pm
solid-app-staging Ignored Ignored Apr 20, 2026 1:00pm

Request Review

@MusabShakeel576
MusabShakeel576 merged commit c4b857d into qa Apr 20, 2026
4 of 5 checks passed
@MusabShakeel576
MusabShakeel576 deleted the claude/deposit-card-all-chains-earUz branch April 20, 2026 13:00
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