From 2241e3587d743c2f6d1014df2a1cf9ee12b2ff20 Mon Sep 17 00:00:00 2001 From: xieqian Date: Mon, 5 Feb 2024 21:58:38 +0800 Subject: [PATCH] update price --- store/helper.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/store/helper.ts b/store/helper.ts index 2ceac340..76fc66d3 100644 --- a/store/helper.ts +++ b/store/helper.ts @@ -69,7 +69,6 @@ const getPythPrices = async () => { logicContract, ViewMethodsLogic[ViewMethodsLogic.get_all_token_pyth_infos], ); - debugger; try { const array_coins = Object.entries(COINList) as any[]; const allRequest = array_coins.map(([, coin]) => { @@ -90,7 +89,7 @@ const getPythPrices = async () => { if (coin[1].default_price) { return { asset_id: coin[0], - price: coin[1].default_price, + price: coin[1].default_price as IPrice, }; } return { @@ -172,7 +171,7 @@ const getPythPrices = async () => { }; } return { - prices: Object.values(format_price_map), + prices: Object.values(format_price_map) as IAssetPrice[], recency_duration_sec: 0, timestamp: "0", };