feat: advanced wallet settings
This commit is contained in:
parent
b99f98982b
commit
9ec7f6f296
6 changed files with 193 additions and 42 deletions
|
|
@ -205,6 +205,7 @@ function plugins (settings, deviceId) {
|
|||
const cashInCommission = new BN(commissions.cashIn)
|
||||
const cashOutCommission = _.isNumber(commissions.cashOut) ? new BN(commissions.cashOut) : null
|
||||
const cryptoRec = coinUtils.getCryptoCurrency(cryptoCode)
|
||||
const cryptoUnits = configManager.getCryptoUnits(cryptoCode, settings.config)
|
||||
|
||||
return {
|
||||
cryptoCode,
|
||||
|
|
@ -213,13 +214,13 @@ function plugins (settings, deviceId) {
|
|||
cashInFee,
|
||||
cashInCommission,
|
||||
cashOutCommission,
|
||||
cryptoNetwork
|
||||
cryptoNetwork,
|
||||
cryptoUnits
|
||||
}
|
||||
}
|
||||
|
||||
function pollQueries (serialNumber, deviceTime, deviceRec, machineVersion, machineModel) {
|
||||
const localeConfig = configManager.getLocale(deviceId, settings.config)
|
||||
|
||||
const fiatCode = localeConfig.fiatCurrency
|
||||
const cryptoCodes = localeConfig.cryptoCurrencies
|
||||
const timezone = localeConfig.timezone.split(':')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue