nimiq / vue-components

Vue component library for Nimiq ecosystem apps.
https://nimiq.github.io/vue-components/
Apache License 2.0
17 stars 4 forks source link

Fiat amount max relative deviation #80

Closed danimoh closed 4 years ago

danimoh commented 4 years ago

Add support for setting a maximum allowed rounding error for fiat amounts. This can be used to avoid that very small values get rendered as 0. By default, a deviation of 10% is allowed. Feel free to suggest an alternative default value or a different prop name.

Also contains a little change in the (crypto) Amount component which lets it accept native bigint values.