WIP
This commit is contained in:
parent
259b527214
commit
0a2d2f658e
6 changed files with 90 additions and 61 deletions
|
|
@ -20,11 +20,11 @@ const pids = {}
|
|||
const reboots = {}
|
||||
|
||||
function buildRates (deviceId) {
|
||||
const cryptoCodes = plugins.getcryptoCodes()
|
||||
const cryptoCodes = plugins.getCryptoCodes()
|
||||
const config = plugins.getConfig(deviceId)
|
||||
|
||||
const cashInCommission = config.commissions.cashInCommission
|
||||
const cashOutCommission = config.commissions.cashOutCommission
|
||||
const cashInCommission = new BigNumber(config.commissions.cashInCommission).div(100)
|
||||
const cashOutCommission = new BigNumber(config.commissions.cashOutCommission).div(100)
|
||||
|
||||
const rates = {}
|
||||
cryptoCodes.forEach(cryptoCode => {
|
||||
|
|
@ -42,7 +42,7 @@ function buildRates (deviceId) {
|
|||
}
|
||||
|
||||
function buildBalances () {
|
||||
const cryptoCodes = plugins.getcryptoCodes()
|
||||
const cryptoCodes = plugins.getCryptoCodes()
|
||||
|
||||
const _balances = {}
|
||||
cryptoCodes.forEach(cryptoCode => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue