From c5db4ecb89ef3a556bae9884abf5b604b99b18c4 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 4 May 2026 08:50:10 +0000 Subject: [PATCH] fix(card-deposit): remove gasless minimum deposit requirement Allow card deposits below the sponsor threshold to proceed gaslessly. Drops the minimum-amount validation in useDepositFromSolidUsdc when the category is CARD, and removes the related warning UI in the deposit-to-card modal so the gasless badge is shown unconditionally. https://claude.ai/code/session_019ajaJ3Dc3VrjYR4nQvZKQG --- components/Card/CardDepositInternalForm.tsx | 24 +++------------------ hooks/useDepositFromSolidUsdc.ts | 2 +- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/components/Card/CardDepositInternalForm.tsx b/components/Card/CardDepositInternalForm.tsx index 3f8b3186..0a37eb4e 100644 --- a/components/Card/CardDepositInternalForm.tsx +++ b/components/Card/CardDepositInternalForm.tsx @@ -738,15 +738,6 @@ export default function CardDepositInternalForm() { const isWalletSourceGaslessGated = isProduction && watchedFrom === CardDepositSource.WALLET; - const cardDepositMinimumAmount = EXPO_PUBLIC_MINIMUM_SPONSOR_AMOUNT; - const isCardDepositSponsor = isWalletSourceGaslessGated - ? Number(watchedAmount || 0) >= Number(cardDepositMinimumAmount) - : true; - const isBelowMinimumDeposit = - isWalletSourceGaslessGated && - !!watchedAmount && - Number(watchedAmount) > 0 && - Number(watchedAmount) < Number(cardDepositMinimumAmount); const schema = useMemo(() => { return z.object({ @@ -1393,18 +1384,9 @@ export default function CardDepositInternalForm() { {isWalletSourceGaslessGated && ( - - - {isCardDepositSponsor - ? 'Gasless deposit' - : `Gasless deposit - Please deposit above $${cardDepositMinimumAmount} USDC so we can cover your fees`} + + + Gasless deposit )} diff --git a/hooks/useDepositFromSolidUsdc.ts b/hooks/useDepositFromSolidUsdc.ts index 75e49d32..615b3490 100644 --- a/hooks/useDepositFromSolidUsdc.ts +++ b/hooks/useDepositFromSolidUsdc.ts @@ -134,7 +134,7 @@ const useDepositFromSolidUsdc = ( const isSponsor = Number(amount) >= Number(minimumAmount); - if (!isSponsor) { + if (!isCard && !isSponsor) { throw new Error(`Minimum deposit amount is $${minimumAmount}`); }