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 thousand separator in token formatter #485

Open
ruuda opened this issue Dec 17, 2021 · 0 comments
Open

Add thousand separator in token formatter #485

ruuda opened this issue Dec 17, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@ruuda
Copy link
Contributor

ruuda commented Dec 17, 2021

In the anchor-integration branch we improve the impl_token! macro so it works for an arbitrary number of decimals, but it still prints amounts as ddddddd.ddddddddd, which is a lot better than printing the number of lamports, but we could still do better by printing it something like d,ddd,ddd.ddd_ddd_ddd.

Once we have this, it would be nice to use it for printing wLDO amounts in the multisig utility.

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

No branches or pull requests

1 participant