aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/currency.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/controllers/currency.js')
-rw-r--r--app/scripts/controllers/currency.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/controllers/currency.js b/app/scripts/controllers/currency.js
index ebefe6ba..6ce86476 100644
--- a/app/scripts/controllers/currency.js
+++ b/app/scripts/controllers/currency.js
@@ -29,7 +29,7 @@ class CurrencyController {
currentCurrency: 'usd',
conversionRate: 0,
conversionDate: 'N/A',
- nativeCurrency: 'DEX',
+ nativeCurrency: 'DXN',
}, opts.initState)
this.store = new ObservableStore(initState)
}
@@ -135,7 +135,7 @@ class CurrencyController {
nativeCurrency = this.getNativeCurrency()
// select api
let apiUrl
- if (nativeCurrency === 'DEX') {
+ if (nativeCurrency === 'DXN') {
// DEX
apiUrl = `https://api.infura.io/v1/ticker/eth${currentCurrency.toLowerCase()}`
} else {
@@ -161,7 +161,7 @@ class CurrencyController {
return
}
// set conversion rate
- if (nativeCurrency === 'DEX') {
+ if (nativeCurrency === 'DXN') {
// DEX
this.setConversionRate(Number(parsedResponse.bid))
this.setConversionDate(Number(parsedResponse.timestamp))