Skip to content

Commit

Permalink
update price
Browse files Browse the repository at this point in the history
  • Loading branch information
xieqian committed Feb 5, 2024
1 parent b0086b1 commit 2241e35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions store/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]) => {
Expand All @@ -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 {
Expand Down Expand Up @@ -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",
};
Expand Down

0 comments on commit 2241e35

Please sign in to comment.