fix: big number subtraction
This commit is contained in:
parent
f45ba41b14
commit
ef7dae5497
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ function balance (account, cryptoCode) {
|
||||||
|
|
||||||
const pendingBalance = address => {
|
const pendingBalance = address => {
|
||||||
const promises = [_balance(true, address), _balance(false, address)]
|
const promises = [_balance(true, address), _balance(false, address)]
|
||||||
return Promise.all(promises).then(([pending, confirmed]) => pending - confirmed)
|
return Promise.all(promises).then(([pending, confirmed]) => pending.minus(confirmed))
|
||||||
}
|
}
|
||||||
const confirmedBalance = address => _balance(false, address)
|
const confirmedBalance = address => _balance(false, address)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue