Following this topic, in the last reply there is a way to calculate the tokens transferred within the transaction but the last step is incomprehensible. How did he calculate the value of the tokens and what is the math behind it?
0x54ca7578dcf8bb7aa0 = 1.5641152016500001e+21
decimalsis a function in the ERC20 abi that returns the numbers of decimals used by the token. Most tokens have set it to 18, but there are some that have less that 6. – Ismael Dec 09 '21 at 17:49