aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-30 08:11:15 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-30 08:11:15 +0800
commit2ad2644b6bcb3c1f4da5891d79856af46e808eab (patch)
tree506297dc35f9cc30bbcb2690f38e08f47bb4d0a3 /packages/instant/src/util
parent30454fe46746b8c1caf47cb35f39b46d0749a224 (diff)
downloaddexon-sol-tools-2ad2644b6bcb3c1f4da5891d79856af46e808eab.tar
dexon-sol-tools-2ad2644b6bcb3c1f4da5891d79856af46e808eab.tar.gz
dexon-sol-tools-2ad2644b6bcb3c1f4da5891d79856af46e808eab.tar.bz2
dexon-sol-tools-2ad2644b6bcb3c1f4da5891d79856af46e808eab.tar.lz
dexon-sol-tools-2ad2644b6bcb3c1f4da5891d79856af46e808eab.tar.xz
dexon-sol-tools-2ad2644b6bcb3c1f4da5891d79856af46e808eab.tar.zst
dexon-sol-tools-2ad2644b6bcb3c1f4da5891d79856af46e808eab.zip
Use polyfilled fetch from utils
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r--packages/instant/src/util/coinbase_api.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/util/coinbase_api.ts b/packages/instant/src/util/coinbase_api.ts
index 32401e423..faac8d82d 100644
--- a/packages/instant/src/util/coinbase_api.ts
+++ b/packages/instant/src/util/coinbase_api.ts
@@ -1,10 +1,10 @@
-import { BigNumber } from '@0x/utils';
+import { BigNumber, fetchAsync } from '@0x/utils';
import { COINBASE_API_BASE_URL } from '../constants';
export const coinbaseApi = {
getEthUsdPrice: async (): Promise<BigNumber> => {
- const res = await fetch(`${COINBASE_API_BASE_URL}/prices/ETH-USD/buy`);
+ const res = await fetchAsync(`${COINBASE_API_BASE_URL}/prices/ETH-USD/buy`);
const resJson = await res.json();
return new BigNumber(resJson.data.amount);
},