Skip to content

fix: skip outgoing transfers when scanning ICP native deposits#3335

Merged
bernd2022 merged 1 commit intodevelopfrom
fix/icp-skip-outgoing-native-transfers
Mar 3, 2026
Merged

fix: skip outgoing transfers when scanning ICP native deposits#3335
bernd2022 merged 1 commit intodevelopfrom
fix/icp-skip-outgoing-native-transfers

Conversation

@bernd2022
Copy link
Collaborator

Summary

  • Rosetta /search/transactions returns all transactions for an address — both incoming and outgoing
  • Forward transactions (deposit address → DEX wallet) were incorrectly registered as new deposits
  • Fix: only accept transfers where transfer.to === accountId (incoming only)

Test plan

  • Send ICP to a deposit address
  • Verify only one crypto_input entry is created (the deposit)
  • Verify the forward transaction does not create a second crypto_input

Rosetta /search/transactions returns all transactions for an address,
including outgoing ones. Forward transactions from the deposit address
to the DEX wallet were incorrectly registered as new deposits.

Only accept incoming transfers where transfer.to === deposit address.
@bernd2022 bernd2022 merged commit b1d8151 into develop Mar 3, 2026
8 checks passed
@bernd2022 bernd2022 deleted the fix/icp-skip-outgoing-native-transfers branch March 3, 2026 12:18
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.

2 participants