Telegram: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
backend/src/services/remittanceService.ts (around line 42) defines a private isValidStellarAddress that is a byte-for-byte duplicate of the canonical one already exported from backend/src/utils/stellar.ts. Duplicated validators drift over time (the util copy already disagrees on its regex), so a single source of truth prevents bugs and reduces maintenance.
Acceptance criteria
Files to touch
backend/src/services/remittanceService.ts
backend/src/utils/stellar.ts (import only)
Out of scope
- Sharing the validator across the frontend package (different package boundary)
Telegram: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
backend/src/services/remittanceService.ts(around line 42) defines a privateisValidStellarAddressthat is a byte-for-byte duplicate of the canonical one already exported frombackend/src/utils/stellar.ts. Duplicated validators drift over time (the util copy already disagrees on its regex), so a single source of truth prevents bugs and reduces maintenance.Acceptance criteria
isValidStellarAddressfrom../utils/stellar.jsinremittanceService.tsremittanceService.test.tssuite to confirm no regressionFiles to touch
backend/src/services/remittanceService.tsbackend/src/utils/stellar.ts(import only)Out of scope