Skip to content

Commit

Permalink
feat: update price lookups comments + remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Space-Bean committed Sep 7, 2024
1 parent eb860b6 commit aabe888
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions projects/dex-ui/src/utils/price/priceLookups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const WBTC = async (sdk: BeanstalkSDK) => {

const PRICE_EXPIRY_TIMEOUT = 60 * 5; // 5 minute cache

// cache should automatically update when sdk instance is updated
export const PriceLookups: Record<string, (sdk: BeanstalkSDK) => Promise<TokenValue>> = {
BEAN: memoize(BEAN, PRICE_EXPIRY_TIMEOUT),
ETH: memoize(chainlinkLookup("ETH_USD")),
Expand Down
1 change: 0 additions & 1 deletion projects/dex-ui/src/utils/price/useTokenPrices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export const useTokenPrices = <K = AddressMap<TokenValue>>(
return prev;
}, {});

console.log("pricesResult: ", addressToPriceMap);
/// set the cache for all token prices
setQueryData(queryKeys.tokenPricesAll, (oldData: TokenPricesAllCache) => {
if (!oldData) return { ...addressToPriceMap };
Expand Down

0 comments on commit aabe888

Please sign in to comment.