From 293320fc2abf18bf875b858e42029e53be2270b2 Mon Sep 17 00:00:00 2001 From: ns212 Date: Wed, 3 Jan 2024 12:39:55 +0000 Subject: [PATCH] api: add dia fair price feed --- api/market_data.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/market_data.js b/api/market_data.js index 3ee12b874..9fe7fae94 100644 --- a/api/market_data.js +++ b/api/market_data.js @@ -59,10 +59,9 @@ const fetchDiaAsset = async (asset) => { } if (asset in dia_xlsd) { const prices = await fetchDiaXLSD(); - const name = dia_xlsd[asset] return { - [name]: { - 'usd': prices.get(name).FairPrice + [asset]: { + 'usd': prices.get(dia_xlsd[asset]).FairPrice } } }