Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom decimal sizes for custom assets #868

Closed
luizstacio opened this issue Sep 16, 2023 · 0 comments · Fixed by #894
Closed

Add custom decimal sizes for custom assets #868

luizstacio opened this issue Sep 16, 2023 · 0 comments · Fixed by #894

Comments

@luizstacio
Copy link
Member

luizstacio commented Sep 16, 2023

Motivation

When working with custom Assets, having different decimal sizes is typical. Right now, the wallet only supports 9 decimals.

Usage example

A custom token with 3 decimals, or a custom token with a 10 decimals.

Possible implementations

To do;

  • Add a decimal field on the Asset on the Create Custom Asset form.
  • Add the new decimal format on the inputs and places where we display amounts. If a component does not exist to abstract this, we should create it to avoid formatting it at all places.
  • Add tests to cover this on Transfer and TX History.

Ref: https://forum.fuel.network/t/imposible-to-change-decinals-of-asset-in-the-wallet/3084/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant