Skip to content

web-wallet: slashDecimals should receive a number as a parameter #516

@kieranhall

Description

@kieranhall

I see this as a bit too risky as a string representation of a number could contain thousands separator, a currency symbol, etc.
Maybe it should only receive a number as a parameter instead?

(edit: I see now that you have some logic about it in the truncateDecimals function)

Originally posted by @ascartabelli in dusk-network/rusk#3896 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:enhancementIssues concerning code or feature improvement (performance, refactoring, etc)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions