From 8cc461accfc7e9bd97d90a6d1a71e57d811f8974 Mon Sep 17 00:00:00 2001 From: Peiman <25097709+Rickk137@users.noreply.github.com> Date: Wed, 26 Jun 2024 11:23:50 +0330 Subject: [PATCH] fix: collateral prices (#336) --- .../lib/useCollateralPriceUpdates/useCollateralPriceUpdates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidity/lib/useCollateralPriceUpdates/useCollateralPriceUpdates.ts b/liquidity/lib/useCollateralPriceUpdates/useCollateralPriceUpdates.ts index 59daac841..992e427d4 100644 --- a/liquidity/lib/useCollateralPriceUpdates/useCollateralPriceUpdates.ts +++ b/liquidity/lib/useCollateralPriceUpdates/useCollateralPriceUpdates.ts @@ -60,7 +60,7 @@ async function getPythFeedIdsFromCollateralList(collateralList: string[]) { if (collateral === 'WETH') { symbol = 'ETH'; } - const id = deduped.find((x) => x.symbol === symbol); + const id = deduped.find((x) => x.symbol?.toUpperCase() === symbol.toUpperCase()); return { collateral, priceId: id?.priceId,