From 914955a9fad37cdeb587cc93d0338145ee8a9292 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 20 Oct 2020 10:31:42 -0700 Subject: [PATCH] fix(USD price): Switching to tor-friendly USD price lookup --- src/components/admin-lte/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/admin-lte/index.js b/src/components/admin-lte/index.js index 4de76d4..453af65 100644 --- a/src/components/admin-lte/index.js +++ b/src/components/admin-lte/index.js @@ -129,7 +129,7 @@ class AdminLTEPage extends React.Component { const myBalance = await bchWalletLib.getBalance() const bchjs = bchWalletLib.bchjs - const currentRate = await bchjs.Price.current('usd') + const currentRate = await bchjs.Price.getUsd() * 100 _this.setState({ currentRate: currentRate })