-
Notifications
You must be signed in to change notification settings - Fork 221
Description
This transaction: https://etherscan.io/tx/0x506e7978ba52886681b75797e4403579ba703b5f9df576a34602ada1709085fb
Does not reconcile. Reproduce with:
chifra export 0x054993ab0f2b1acc0fdc65405ee203b4271bebe6 --accounting --statements --ether --fmt json --first_block 15549161 --last_block 15549163 --asset 0xf5b2c59f6db42ffcdfc1625999c81fdf17953384
The reason this happens can be called a 'misleading airdrop.'
The smart contract generates events, but there is no change in any of the ERC20 balances.
We've been told this is method that people fish for private keys. "Hey, you got an airdrop, visit this website..."
This is a less expensive way to do this (they would have to pay for state changes otherwise).
We can delete these automatically by doing this:
1) Does the reconciliation not balance?
2) Is the transfer a token transfer?
3) Does the transaction contain more than some number (100?) of Transfer events?
4) Does the account balance at the previous block == account balance at end of the block? (no state change)
If yes -- ignore the event.
Covered by test case acctExport_failed_statement_2572_1.txt