From 99c37a0f24b6161be2d0ca24d926f222f94fe5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Mon, 14 Feb 2022 16:42:39 +0000 Subject: [PATCH] fix: XMR balance shifting --- 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 72554db1..68ab4c7c 100644 --- a/lib/plugins/wallet/monerod/monerod.js +++ b/lib/plugins/wallet/monerod/monerod.js @@ -89,7 +89,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).decimalPlaces(0) + return BN(res.unlocked_balance).decimalPlaces(0) }) .catch(err => handleError(err)) }