Skip to content

Commit 54a94ed

Browse files
committed
update to axios
1 parent 412d89e commit 54a94ed

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)