We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a1547a1 + e6b9ab9 commit 6e1f2e1Copy full SHA for 6e1f2e1
1 file changed
utils/fetchCoinGeckoPrices.js
@@ -8,8 +8,9 @@ async function fetchCoinGeckoPrices(client, tokens, network) {
8
url = `${url}&x_cg_pro_api_key=${process.env.COINGECK_API_KEY}`;
9
}
10
try {
11
- const { data } = await axios.get(url);
+ const rawData= await axios.get(url);
12
13
+ const data = { ...rawData.data, '0x2791bca1f2de4661ed88a30c99a7a9449aa84174': { usd: 1 } };
14
for (const [key, value] of Object.entries(data)) {
15
client.setex(key, 600, value["usd"]);
16
0 commit comments