diff options
author | Paul Bouchon <mail@bitpshr.net> | 2019-06-01 06:14:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-01 06:14:22 +0800 |
commit | 47024fd9a530c1554cfa74c8e74f6221e00c6135 (patch) | |
tree | 4abdaecc6c3de3f6ab6ff83268bf8b93cdee5e8d /app/scripts/controllers/token-rates.js | |
parent | 44616befc71bc561887569ae7b523831ab470487 (diff) | |
download | tangerine-wallet-browser-47024fd9a530c1554cfa74c8e74f6221e00c6135.tar.gz tangerine-wallet-browser-47024fd9a530c1554cfa74c8e74f6221e00c6135.tar.zst tangerine-wallet-browser-47024fd9a530c1554cfa74c8e74f6221e00c6135.zip |
feature: integrate gaba/CurrencyRateController (#6570)
Diffstat (limited to 'app/scripts/controllers/token-rates.js')
-rw-r--r-- | app/scripts/controllers/token-rates.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/controllers/token-rates.js b/app/scripts/controllers/token-rates.js index 6b6265dba..9b86a9ebf 100644 --- a/app/scripts/controllers/token-rates.js +++ b/app/scripts/controllers/token-rates.js @@ -30,7 +30,7 @@ class TokenRatesController { async updateExchangeRates () { if (!this.isActive) { return } const contractExchangeRates = {} - const nativeCurrency = this.currency ? this.currency.getState().nativeCurrency.toLowerCase() : 'eth' + const nativeCurrency = this.currency ? this.currency.state.nativeCurrency.toLowerCase() : 'eth' const pairs = this._tokens.map(token => token.address).join(',') const query = `contract_addresses=${pairs}&vs_currencies=${nativeCurrency}` if (this._tokens.length > 0) { |