Skip to content

Travel Rule records are created with permanently empty originator/beneficiary data #391

Description

@Abidoyesimze

src/compliance/travelRule.ts always creates a TravelRuleRecord with the originator/beneficiary fields hardcoded empty:

originator: {}, // pull from KycProfile
beneficiary: {},
...
status: 'PENDING_DATA',

Nothing in src/ currently reads from KycProfile to fill these in, and nothing ever transitions status away from PENDING_DATA. So every Travel Rule record created above the $1000 threshold is written and then permanently incomplete — the compliance data this table exists to capture never actually gets recorded.

Task

  • Look up the counterparty's KycProfile (and the local user's) at the point detectTravelRule is called and populate originator/beneficiary with the required VASP + customer fields.
  • Transition status once the record has real data (vs. still-pending if a lookup is missing).
  • Add unit coverage for both the populated and the still-missing-data paths.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions