fix: properly detect relevant incoming token transfers

Fixes #13132
This commit is contained in:
Dario Gabriel Lipicar 2024-01-10 15:11:09 -03:00 committed by dlipicar
parent 3c4fcaa2ed
commit d4f4d47cdb
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ func (d *ERC20TransfersDownloader) blocksFromLogs(parent context.Context, logs [
// Double check provider returned the correct log
if slices.Contains(d.accounts, from) {
address = from
} else if !slices.Contains(d.accounts, to) {
} else if slices.Contains(d.accounts, to) {
address = to
} else {
log.Error("from/to address mismatch", "log", l, "addresses", d.accounts)