aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib')
-rw-r--r--app/scripts/lib/pending-balance-calculator.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/scripts/lib/pending-balance-calculator.js b/app/scripts/lib/pending-balance-calculator.js
index 4e1189a65..8564f0134 100644
--- a/app/scripts/lib/pending-balance-calculator.js
+++ b/app/scripts/lib/pending-balance-calculator.js
@@ -15,7 +15,6 @@ class PendingBalanceCalculator {
}
async getBalance() {
- console.log('getting balance')
const results = await Promise.all([
this.getNetworkBalance(),
this.getPendingTransactions(),
@@ -24,23 +23,16 @@ class PendingBalanceCalculator {
const balance = results[0]
const pending = results[1]
- console.dir(pending)
- console.dir(balance.toString())
- console.trace('but why')
-
const pendingValue = pending.reduce((total, tx) => {
return total.add(this.valueFor(tx))
}, new BN(0))
- console.log(`subtracting ${pendingValue.toString()} from ${balance.toString()}`)
-
return `0x${ balance.sub(pendingValue).toString(16) }`
}
valueFor (tx) {
const txValue = tx.txParams.value
const normalized = normalize(txValue).substring(2)
- console.log({ txValue, normalized })
const value = this.hexToBn(txValue)
return value
}