Merge pull request #766 from josepfo/feat/crypto-units-selector
feat: advanced wallet settings
This commit is contained in:
commit
0881d00594
9 changed files with 222 additions and 47 deletions
|
|
@ -206,6 +206,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,
|
||||
|
|
@ -214,13 +215,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