We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fetchUrl
1 parent 1ed486f commit 6c9363bCopy full SHA for 6c9363b
src/adaptors/reservoir/index.js
@@ -1,11 +1,9 @@
1
-const { get } = require('axios');
+const { fetchURL } = require('../../helper/utils');
2
3
const API_URL = 'https://api.reservoir.fi/v1/pairs';
4
5
const getApy = async () => {
6
- const { data: pairs } = await get(API_URL);
7
-
8
- console.log(pairs)
+ const { data: pairs } = await fetchURL(API_URL);
9
10
return pairs.map((pair) => {
11
const symbols = pair.token0.symbol + '-' + pair.token1.symbol
0 commit comments