Skip to content

Commit 6c9363b

Browse files
committed
fix: rm console log and use fetchUrl
1 parent 1ed486f commit 6c9363b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/adaptors/reservoir/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
const { get } = require('axios');
1+
const { fetchURL } = require('../../helper/utils');
22

33
const API_URL = 'https://api.reservoir.fi/v1/pairs';
44

55
const getApy = async () => {
6-
const { data: pairs } = await get(API_URL);
7-
8-
console.log(pairs)
6+
const { data: pairs } = await fetchURL(API_URL);
97

108
return pairs.map((pair) => {
119
const symbols = pair.token0.symbol + '-' + pair.token1.symbol

0 commit comments

Comments
 (0)