Skip to content

[etherscan] Filter tiny movements to avoid TSN validation errors#952

Merged
skvav merged 2 commits intozenmoney:masterfrom
Cr0WD:etherscan-fix-tsn-min-amount
Mar 2, 2026
Merged

[etherscan] Filter tiny movements to avoid TSN validation errors#952
skvav merged 2 commits intozenmoney:masterfrom
Cr0WD:etherscan-fix-tsn-min-amount

Conversation

@Cr0WD
Copy link
Contributor

@Cr0WD Cr0WD commented Feb 27, 2026

Summary

  • filter out tiny movements below 0.01 in etherscan ETH converter
  • filter out tiny movements below 0.01 in etherscan token converter
  • add regression tests for token conversion threshold behavior

Problem

After merging the previous etherscan fix, sync could still fail with:
[TSN] Invalid transaction ... Income and outcome must be non-negative number >= 0.01.

The root cause was tiny movement amounts passing through conversion and then failing transaction validation.

Validation

  • XDG_CACHE_HOME=/tmp HOME=/tmp yarn test etherscan
  • live Etherscan check on provided wallet list and API key: scrape -> patch -> ZPAPI.addTransaction completed without TSN/TTS validation errors

@Cr0WD Cr0WD force-pushed the etherscan-fix-tsn-min-amount branch from 3b017a0 to 48fa4ad Compare February 27, 2026 18:42
@skvav skvav merged commit d966cc7 into zenmoney:master Mar 2, 2026
1 check passed
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