Skip to content

Deduplicate Stellar addresses case-insensitively in recipientDeduplicator #743

Description

@Kingsman-99

Description

recipientDeduplicator uses strict string equality to detect duplicate recipients. Because Stellar account IDs are case-sensitive by spec but users sometimes supply mixed-case variations, duplicates slip through and cause double-payment.

Acceptance Criteria

  • Deduplication normalises addresses to uppercase before comparison
  • The original casing of the first occurrence is preserved in the output
  • Subsequent duplicates (regardless of case) are removed and reported in the dedup summary
  • Unit tests pass

Context

  • Target file: src/validators/recipientDeduplicator.ts
  • Stellar G-addresses are base32 and uppercase by convention; normalise to uppercase

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions