fix: move ETH pending balance fix to wallet
This commit is contained in:
parent
9a074438bd
commit
caf2c83bfb
2 changed files with 5 additions and 4 deletions
|
|
@ -71,7 +71,10 @@ function balance (account, cryptoCode) {
|
|||
.then(() => pendingBalance(defaultAddress(account)))
|
||||
}
|
||||
|
||||
const pendingBalance = address => _balance(true, address)
|
||||
const pendingBalance = address => {
|
||||
const promises = [_balance(true, address), _balance(false, address)]
|
||||
return Promise.all(promises).then(([pending, confirmed]) => pending - confirmed)
|
||||
}
|
||||
const confirmedBalance = address => _balance(false, address)
|
||||
|
||||
function _balance (includePending, address) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue