Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Token values format #877

@nicosampler

Description

@nicosampler

We are replicating this logic in several places, we should move it to a function and replace all the occurrences.

const humanReadableBalance = (balance, decimals) => BigNumber(balance).times(`1e-${decimals}`).toFixed()

Metadata

Metadata

Assignees

Labels

MajorNeeds to be fixed for immediate next public release.Tech-debt 🚧Technical debt

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions