Skip to content

fix: exclude third-party deposits from Scrypt EUR pending balance#3480

Merged
TaprootFreak merged 1 commit intodevelopfrom
fix/scrypt-eur-pending-balance
Mar 20, 2026
Merged

fix: exclude third-party deposits from Scrypt EUR pending balance#3480
TaprootFreak merged 1 commit intodevelopfrom
fix/scrypt-eur-pending-balance

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • Third-party EUR deposits to Scrypt (txId=null) were included in the receiver list of the pending balance calculation
  • This caused toScrypt to go negative (large foreign amounts with no matching sender), which got clamped to 0
  • Result: pending DFX transfers (e.g. 30k EUR bank_tx) were invisible in the FinancialDataLog
  • Fix: filter eurReceiverScryptExchangeTx by txId being present — DFX deposits always have a txId (DEPOSIT-XXXXX), foreign deposits have null

Test plan

  • Verify FinancialDataLog shows correct toScrypt pending amounts for Scrypt/EUR asset
  • Confirm third-party deposits (txId=null) are no longer counted in pending balance
  • Check that toScrypt is no longer clamped to 0 when foreign deposits are present

Third-party EUR deposits to Scrypt (identifiable by txId=null) were
included in the receiver list, causing toScrypt to go negative and
get clamped to 0 — making pending DFX transfers invisible in the
FinancialDataLog.
@TaprootFreak TaprootFreak marked this pull request as ready for review March 20, 2026 10:55
@TaprootFreak TaprootFreak merged commit fa86bd3 into develop Mar 20, 2026
8 checks passed
@TaprootFreak TaprootFreak deleted the fix/scrypt-eur-pending-balance branch March 20, 2026 10:55
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.

1 participant