Skip to content

Display precision issue #919

@WingsDevelopment

Description

@WingsDevelopment

For all locations where we display values we should ensure we do not accidentally truncate values and show 0 to users. For example:

Image

In this case the user has 0.004 weETH but UI is showing 0. This may not be the only place this is happening, this ticket should look to salve it in other places as well

24.6.2025 - Srdjan

Added new library for formatting numbers - d3-format (lightweight formatting lib) and refactored our formatter utils. also changed default decimals to meet better our needs. So this problem is now solved globally, I have tested the application to make sure nothing is weird or broken and everything seems okay to me.

Example how things look now (still can be overrided in some cases):

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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