Skip to content

Commit 5f405ae

Browse files
committed
Merge branches 'staging' and 'staging' of https://github.com/OpenQDev/OpenQ-CoinAPI into staging
2 parents 6ebcbb5 + 6e1f2e1 commit 5f405ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/fetchCoinGeckoPrices.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ async function fetchCoinGeckoPrices(client, tokens, network) {
99
}
1010

1111
try {
12-
const { data } = await axios.get(url);
12+
const rawData= await axios.get(url);
1313

14+
const data = { ...rawData.data, '0x2791bca1f2de4661ed88a30c99a7a9449aa84174': { usd: 1 } };
1415
for (const [key, value] of Object.entries(data)) {
1516
client.setex(key, 600, value["usd"]);
1617
}

0 commit comments

Comments
 (0)