Skip to content

[Bug]: Incorrect amount displayed on Ledger device for tokens with non-8 decimal places (e.g. USDT shows 0.1 instead of 10) #17302

@apexof

Description

@apexof

Impacted Library name

app-aptos

Impacted Library version

No response

Describe the bug

When sending tokens whose decimal precision differs from 8 (such as USDT and USDC with 6 decimals, or TOMA with 9 decimals), the amount displayed on the Ledger hardware device screen is incorrect. The Ledger Live desktop app shows the correct amount, but the device screen shows a wrong value.

Example:

  • Sending 10 USDT via Ledger Live desktop on the Aptos network
  • Ledger Live UI correctly shows: 10 USDT
  • Ledger device screen shows: 0.1 USDT ❌

Steps to Reproduce

  1. Connect a Ledger device with the Aptos app installed
  2. Open Ledger Live Desktop and initiate a transfer of 10 USDT on Aptos
  3. Review the amount shown on the device screen during signing
Image

Expected behavior

The device screen should display 10 USDT, matching the amount shown in Ledger Live.

Additional context

The bug likely needs to be fixed in the repository https://github.com/LedgerHQ/app-aptos, but there is no Issues section there.

I think the bug occurs because the number of decimal places is hardcoded in the file app-aptos/src/ui/common_display.c and does not depend on the token being transferred.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglibrariesImpacts the LibrariestriageIn need of triage

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions