Skip to content

fix(ramp): unblock SPEI ramp with separate flag, i18n migration, dead code cleanup (#312)#313

Open
GBOYEE wants to merge 1 commit into
Micopay:mainfrom
GBOYEE:gf-312-spei-ramp-cleanup
Open

fix(ramp): unblock SPEI ramp with separate flag, i18n migration, dead code cleanup (#312)#313
GBOYEE wants to merge 1 commit into
Micopay:mainfrom
GBOYEE:gf-312-spei-ramp-cleanup

Conversation

@GBOYEE

@GBOYEE GBOYEE commented Jul 17, 2026

Copy link
Copy Markdown

Closes #312

Changes

  1. Flag split — VITE_ENABLE_DEFI_TRADING now controls only DEX buy/sell + Blend (simulated). New VITE_ENABLE_SPEI_RAMP controls SPEI KYC + onramp + offramp (real funds). Both can be set independently.

  2. i18n migration — KYCScreen.tsx no longer has hardcoded strings. All text moved to i18n/en.json and i18n/es.json under the kyc key, using useTranslation() like every other screen.

  3. Dead code removed — The no-op if (CapApp && (CapApp as any)) {} block deleted. The real CapApp.addListener('appStateChange') polling loop is preserved.

  4. registerBankAccount marked @deprecated — Backend route was removed June 30. CLABE is now captured inside the hosted Etherfuse KYC flow. Zero callers in the codebase.

Testing

  • KYCScreen now uses i18n — strings render from translation files in both en/es
  • CETES card in Explore shows when either showDefi OR showSpeiRamp is true
  • Blend card stays gated behind showDefi only
  • Setting only VITE_ENABLE_SPEI_RAMP=true unlocks SPEI flows without exposing simulated DEX

… code cleanup (Micopay#312)

- Split VITE_ENABLE_DEFI_TRADING into two flags: showDefi (DEX/Blend) and
  showSpeiRamp (SPEI KYC + on/offramp), independently enableable
- Migrated KYCScreen hardcoded strings to i18n (en/es) via react-i18next
- Removed dead no-op CapApp block from KYCScreen
- Marked registerBankAccount as @deprecated (backend route removed June 30)
- Updated Explore.tsx to show CETES card when either flag is true

Closes Micopay#312.
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.

Unblock and clean up the existing SPEI ramp (KYC + on/offramp)

1 participant