Skip to content

Format balance based on decimals #35

@stojanov-igor

Description

@stojanov-igor

OnHold for substrate development first

Currently, we are displaying all the decimals in the balance. In substrate, there is a way to properly format the balance.

See the issue below on how to do that.

https://stackoverflow.com/questions/64210673/how-do-you-format-balances-with-the-polkadot-js-api

@slaveatanasov FYI: We are currently pulling the balances from the profile, but we will probably refactor so that you can pull it from based on AccountID as in the issue below. The reason for this is that we don't want to duplicate data.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions