smartcontract_log_parser.go
The GetTxInItem function uses the amtConverter to convert token amounts using Big Integers but does not correctly apply the tokens decimal configuration during the conversion. This omission can result in financial inaccuracies when token amounts are represented in the user interface or calculations, leading to either underestimation or overestimation of token values based on the decimals not being accounted for in the conversion process.
Code snippet:
Expected Behavior: The amount conversion should factor in the tokens decimal places, ensuring that all financial operations correctly reflect the value as intended in the broader financial ecosystem of the cryptocurrency involved.
Expected Behavior code snippet:
Logic:
Actual Behavior: The function ignores the decimals of the asset during conversion, leading to potential financial errors where the represented value in transactions does not match the actual value of the asset as per its decimal definition.
Actual Behavior code snippet:
Logic:
