Skip to content

Incorrect transaction amount display in history for values with trailing decimal zeros #338

@chudnoffsky

Description

@chudnoffsky

Context

A bug has been identified in the transaction history display where amounts with four trailing zeros after the decimal point (e.g., 0.000097 tgBTC) are shown incorrectly as +0.0

image

Steps to reproduce

  1. Obtain tgBTC from TON Teleport (available on testnet: https://sandbox.teleport.tg). there is also a guide: https://tgbtc.gitbook.io/docs/user-guides/mint-your-first-tgbtc
  2. Go to the transaction history page
  3. Perform a transaction with an amount like 0.000097 tgBTC (or similar)
  4. Check the displayed value in the transaction history

Actual result

The amount is incorrectly displayed as +0.0 tgBTC

Expected result

The amount should be displayed as +0.000097 tgBTC

Example transaction link

https://testnet.tonviewer.com/kQCe8WfatSZFc4vzOYiy_LsP3PVvllPQ6HNQKu2XoiaayD3k

Additional notes

This issue affects the clarity and accuracy of transaction history, potentially confusing users. Fixing this bug will improve the user experience.

Let me know if further details or testing are required. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions