Better Token Accounting
Information about how we account for tokens
Eth accounting is identical Token accounting is improved in these ways:
- Intra block token accounting
- Account for every Transfer event
- If a balance is incorrect, do one of three things:
- If the transaction contains a “large” input, and the event says something transferred, but the balances don’t change, lable probably-spam and add a field called removal of phony transfer in
- If the function is one of a very small number of common mint functions, assign to knownMint field
- If the function is one of a very small number of common burn methods, assign to a knownBurn field
- If the balance goes up - label the transation as implied-mint and add to a feild called impliedMint
- If the balance goes down - label the reconciliation as impied-burn and add to a field called impliedBurn
Bugs fixed: In previous code, if a token transacted multple times in a single block the entire net transfer was assigned to the first transfer. In new code, each individual inter-block transfer is accounting for. Show a picture
tags: [ Trueblocks ]