Use latest balanc3 api for prices

feature/default_network_editable
Dan Finlay 7 years ago
parent a833f02f33
commit 7ec775d614
  1. 2
      app/scripts/controllers/token-rates.js

@ -39,7 +39,7 @@ class TokenRatesController {
*/
async fetchExchangeRate (address) {
try {
const response = await fetch(`https://metamask.dev.balanc3.net/prices?from=${address}&to=ETH&autoConversion=false&summaryOnly=true`)
const response = await fetch(`https://metamask.balanc3.net/prices?from=${address}&to=ETH&autoConversion=false&summaryOnly=true`)
const json = await response.json()
return json && json.length ? json[0].averagePrice : 0
} catch (error) { }

Loading…
Cancel
Save