Files
pezkuwi-apps/packages/react-components/src
Satoshi Qazi Muhammed e2c83baac9 InputNumber: reject decimals the unit cannot carry
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.
2026-10-10 02:06:12 +04:00
..
2026-01-08 00:30:05 +03:00
2026-01-08 00:30:05 +03:00
2026-01-08 00:30:05 +03:00
2026-01-08 00:30:05 +03:00
2026-01-08 00:30:05 +03:00
2026-01-08 00:30:05 +03:00
2026-01-08 00:30:05 +03:00
2026-01-08 00:30:05 +03:00
2026-01-08 00:30:05 +03:00
2026-01-08 00:30:05 +03:00
2026-01-08 00:30:05 +03:00
2026-01-08 00:30:05 +03:00