Skip to content

Commit 5836458

Browse files
committed
update axios
1 parent 412d89e commit 5836458

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/adaptors/btcfi-cdp/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
const axios = require('axios');
12
const utils = require('../utils');
23

34
const API_URL =
45
'https://boost-gateway.btcfi.one/v1/products/5534c4c2-9cb4-4514-99f5-4c79a7030b27';
56
const PROJECT_NAME = 'btcfi-cdp';
67

78
const apy = async () => {
8-
const data = await utils.getData(API_URL);
9+
const response = await axios.get(API_URL);
10+
const data = response.data;
911

1012
const cbBTCPool = {
1113
pool: `0x4F7aB59b5AC112970F5dD66D8a7ac505c8E5e08B-base`.toLowerCase(),

0 commit comments

Comments
 (0)