Use spendable amount for balance

This commit is contained in:
Rafael Taranto 2018-12-03 13:18:58 -02:00
parent fa652b8e74
commit f674f64f58

View file

@ -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) {