[Bug] BalanceString comes roundedSee original GitHub issue
I just noticed this issue in my dev environment, and I haven’t been able to see where the problem is. I suspect in the backend.
- Node Version: 10
- BitGoJS Version: N/A (the call to get wallets https://api.bitgo.com/docs/#operation/v2.wallet.get does not touch the sdk. as per https://github.com/andreujuanc/BitGoJS/blob/master/modules/express/src/clientRoutes.ts#L869
- BitGo Environment: testnet
balance: 58584981, confirmedBalance: 58584981, spendableBalance: 58584981, balanceString: '0.58584981', confirmedBalanceString: '58584981', spendableBalanceString: '58584981',
balance: 58584981, confirmedBalance: 58584981, spendableBalance: 58584981, balanceString: '0.585850', <- HERE 😢 confirmedBalanceString: '58584981', spendableBalanceString: '58584981',
It is documented that the balance string should return native, in this case satoshis, and it also shuold never lose precision. And it’s doing the opposite.
Steps to Reproduce
https://api.bitgo.com/docs/#operation/v2.wallet.get Testnet Address: 2MzBEeH3xMfJwb2ycZfmgJdHUfuKLfcszLw Wallet Label: 4ee87039-ce80-46db-b97f-95345b47c074
Ill keep trying to see if it’s a problem on my side. Help is appreciated it none the less.
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Yeah, this looks like a rounding issue in our backend. We’ll look into it - thanks 👍
I’ll close this ticket, as I think we have a resolution here and there’s no evidence of issues on our end.