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}`); }