aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/pending-balance-calculator.js
blob: 5b30354a21acd41fbee98359941f42004ce20348 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const BN = require('ethereumjs-util').BN
const EthQuery = require('ethjs-query')

class PendingBalanceCalculator {

  constructor ({ getBalance, getPendingTransactions }) {
    this.getPendingTransactions = getPendingTransactions
    this.getBalance = getBalance
  }

  async getBalance() {
    const balance = await this.getBalance
    return balance
  }

}

module.exports = PendingBalanceCalculator