mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-10-20 18:56:30 +00:00
When an amount had more decimals than the selected unit allows, the function set result to -1 and then overwrote it, so the conversion went on with a negative exponent. BN computes 10 ** -n as 10 ** n: with 12 chain decimals, "1.1234567890" in milli became 13345678900 instead of 1123456789. Such input is now invalid. The decimals were also cut to the chain's decimals, which silently dropped digits of an asset with more decimals than the chain; the cut is removed, and with it the api argument it was the only use of.
@pezkuwi/react-components
WARNING: This is an internal package to pezkuwichain/pezkuwi-apps so is not intended (yet) for broad use.
For the existing sharable components usable in external React-based projects, take a look at the pezkuwichain/pezkuwi-ui documentation