Sia-UI icon indicating copy to clipboard operation
Sia-UI copied to clipboard

BigNumber() number type has more than 15 significant digits

Open rbj325 opened this issue 6 years ago • 1 comments

The exact error message in the dev tools console is:

error fetching defaults: BigNumber Error: new BigNumber() number type has more than 15 significant digits: 0.7748867277172958

It is being thrown from this line:

https://github.com/NebulousLabs/Sia-UI/blob/6629b14235e4e3391e335892f8904fba4b1a1085/plugins/Hosting/js/sagas/saga.js#L255

I am on v1.3.1 on Windows Server 2016 and hosting space.

rbj325 avatar Feb 26 '18 23:02 rbj325

This used to be related to the way BigNumber handled longer numbers when ERRORS was set to true, however this has changed since March because they removed ERRORS, so if this is still an issue, the call to BigNumber should be new BigNumber(res.conversionrate.toString()) instead.

juan-cortes avatar Aug 06 '18 21:08 juan-cortes