From 1c3c3f84ff08f2f790bf3d04a92a8991b2d2198d Mon Sep 17 00:00:00 2001 From: naconner <7396812+naconner@users.noreply.github.com> Date: Mon, 31 Jan 2022 09:40:29 -0500 Subject: [PATCH] Update lib/plugins/wallet/monerod/monerod.js Co-authored-by: chaotixkilla --- lib/plugins/wallet/monerod/monerod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/wallet/monerod/monerod.js b/lib/plugins/wallet/monerod/monerod.js index afd395a7..3b85088c 100644 --- a/lib/plugins/wallet/monerod/monerod.js +++ b/lib/plugins/wallet/monerod/monerod.js @@ -92,7 +92,7 @@ function accountBalance (cryptoCode) { .then(() => refreshWallet()) .then(() => fetch('get_balance', { account_index: 0, address_indices: [0] })) .then(res => { - return BN(res.unlocked_balance).shiftedBy(unitScale).round() + return BN(res.unlocked_balance).shiftedBy(unitScale).decimalPlaces(0) }) .catch(err => handleError(err)) }