Repository navigation
feat(card): offer EURC on Base in the Wirex Fund your card flow - #2667
Merged
Merged
Conversation
Wirex cardholders get a EURC row beside USDC and USDT. It hands out the same card deposit address; the backend delivers EURC to the Safe on Base, where the Base spend-module instance sells it for euro purchases. - EURC_TOKENS kept out of BRIDGE_TOKENS, which every other deposit surface offers from (savings, external-wallet add funds, wallet address screen). - Base only for now; Ethereum waits on a backend EURC float. - Rain cardholders are not offered EURC: it would land in the Safe, not on the Rain card. - Fee notice: EURC card deposits are free on Base, charged elsewhere. - EURC icon for the rows and activity. - CardFundOptions test mocks useTransfiCountryAvailability, whose MMKV import kept the suite from loading under jest (broken on master too). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Wirex cardholders now see a EURC row under Stablecoins in "Fund your card", after USDC and USDT. Choosing it offers Base only, then shows the same card deposit address. The backend delivers the EURC to the user's Safe on Base, where the Base spend-module instance sells it for euro purchases.
Depends on Solid-Money/solid-backend#1947. Without it, EURC sent to the card address is dropped and left stranded.
Scope
EURC_TOKENS; the address is recorded in the comment there.BRIDGE_TOKENS. Every other deposit surface reads that map: the old savings "Deposit directly" flow, external-wallet "Add funds", and the wallet address screen. Adding EURC there would offer it where it can't be delivered, so it gets its ownEURC_TOKENStable, which only the card fund flow reads.Changes
constants/bridge.ts:EURC_TOKENS(Base, 6 decimals).lib/utils/cardFunding.ts:CARD_FUND_EURC_SYMBOL. Chains for EURC come fromEURC_TOKENS. The tooltip gives EURC its own clause ("EURC only on Base").CardFund/constants.tsandCardFundOptions: atokensprop that defaults to the dollar rows.WirexCardFundModalpassesWIREX_CARD_FUND_TOKENS, which adds EURC.lib/utils/depositFee.ts: EURC card deposits are free on Base and charged elsewhere, whatever the issuer.assets/images/eurc.png, registered inlib/assets.ts), also used for activity rows viagetTokenIcon.Tests
Ran each of these individually; all pass:
lib/utils/__tests__/cardFunding.test.ts(21)lib/utils/__tests__/depositFee.test.ts(42)components/Card/__tests__/CardFundOptions.test.tsx(6)CardFundOptions.test.tsxfailed to load on master as well:useTransfiCountryAvailabilityimports MMKV, whose native module jest can't load. The test now mocks that hook.tscshows no new errors; the 10 existing errors are the same on master.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.