Skip to content

Commit 6e1f2e1

Browse files
Merge pull request #47 from OpenQDev/peg
Pegged usdc to 1 in coinapi
2 parents a1547a1 + e6b9ab9 commit 6e1f2e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

utils/fetchCoinGeckoPrices.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ async function fetchCoinGeckoPrices(client, tokens, network) {
88
url = `${url}&x_cg_pro_api_key=${process.env.COINGECK_API_KEY}`;
99
}
1010
try {
11-
const { data } = await axios.get(url);
11+
const rawData= await axios.get(url);
1212

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

0 commit comments

Comments
 (0)