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

Format Amount #3

Closed
Walledgarden opened this issue Apr 21, 2023 · 0 comments · Fixed by #19
Closed

Format Amount #3

Walledgarden opened this issue Apr 21, 2023 · 0 comments · Fixed by #19
Labels
enhancement New feature or request

Comments

@Walledgarden
Copy link
Collaborator

This feature would give library users the option to format a tip in the currently know tip.cc format by calling a function in the amount class. Preferably, at client initalization there is a new option, which allows to pass a currencies-emojis map to the client, which would be used for this feature too (ex. BTC => <BTC:12312312312312312>...). The format for tips would be as follows

<#Amount>.toString(withUsd defaults to true)

<emojiName:emojiId> currencyAmount currencySymbol (≈ $usdValue)
currencyAmount would represent the this.humanValue.toFixed(currency.format.scale)

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

Successfully merging a pull request may close this issue.

1 participant