From f674f64f58b00c75fbf53080a5e60c04d7ed284a Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Mon, 3 Dec 2018 13:18:58 -0200 Subject: [PATCH] Use spendable amount for balance --- lib/plugins/wallet/bitgo/bitgo.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/plugins/wallet/bitgo/bitgo.js b/lib/plugins/wallet/bitgo/bitgo.js index cfc2a152..0565ffea 100644 --- a/lib/plugins/wallet/bitgo/bitgo.js +++ b/lib/plugins/wallet/bitgo/bitgo.js @@ -52,8 +52,7 @@ function sendCoins (account, address, cryptoAtoms, cryptoCode) { function balance (account, cryptoCode) { return checkCryptoCode(cryptoCode) .then(() => getWallet(account)) - // TODO This was previously spendableConfirmedBalance, what happened to it on v2? - .then(wallet => BN(wallet._wallet.confirmedBalanceString)) + .then(wallet => BN(wallet._wallet.spendableBalanceString)) } function newAddress (account, info) {