From c94f1094afa9d764bc844f536d858c061b0dde4a Mon Sep 17 00:00:00 2001 From: martines3000 Date: Fri, 20 Dec 2024 12:55:10 +0100 Subject: [PATCH] chore: resolve display issue on markets page --- .../MarketsView/MarketCollateralsTable.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/apps/frontend/src/components/MarketsView/MarketCollateralsTable.tsx b/apps/frontend/src/components/MarketsView/MarketCollateralsTable.tsx index 41cfeb76..644f4a1d 100644 --- a/apps/frontend/src/components/MarketsView/MarketCollateralsTable.tsx +++ b/apps/frontend/src/components/MarketsView/MarketCollateralsTable.tsx @@ -28,10 +28,7 @@ import { InfoIcon } from '../InfoIcon'; type TableRowProps = { assetId: string; - baseAsset: { - symbol: string; - decimals: number; - }; + symbol: string; decimals: number; totalSupply: BigNumber | undefined; @@ -43,7 +40,6 @@ type TableRowProps = { const MarketCollateralsTableRow = ({ assetId, - baseAsset, symbol, decimals, totalSupply, @@ -78,7 +74,7 @@ const MarketCollateralsTableRow = ({ {getFormattedPrice( - formatUnits(reserves ?? BigNumber(0), baseAsset.decimals) + formatUnits(reserves ?? BigNumber(0), decimals).times(price) )} @@ -169,10 +165,6 @@ export const MarketCollateralsTable = ({