Open
tjayrush
opened this issue 2 years ago
•
0 comments
Use withdrawals as a minted value in reconcilations.
We store <bn.txid> in our index. When we spin through that list, we sometimes encounter <bn.99995> as one of the transactions which means the address took a withdrawal in that block -- but -- in many cases the address takes more than one withdrawal in the same block. We don't have that ability since we handle one transaction at a time, so only one withdrawal gets reported.
https://etherscan.io/block/0xc53e758397b782b8306ed19e6f42c9f074192595f5f1f3ee3ca9f9a8fa398afc This tx doesn't balance. We caluclate the right amount incoming, but we don't remove the burnt fees?
We can make a new category of token income/outflow by assuming that a transfer in with sender == 0x0 or a transfer out with the sender == 0x0 is either a mint or burn, respectivly. Also, we can select a few of the more common ways to mint or burn to decode and parse the data. A small set of functions is better than nothing probably.