Skip to content

Commit

Permalink
chore: resolve display issue on markets page
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 committed Dec 20, 2024
1 parent 360cbc5 commit c94f109
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ import { InfoIcon } from '../InfoIcon';

type TableRowProps = {
assetId: string;
baseAsset: {
symbol: string;
decimals: number;
};

symbol: string;
decimals: number;
totalSupply: BigNumber | undefined;
Expand All @@ -43,7 +40,6 @@ type TableRowProps = {

const MarketCollateralsTableRow = ({
assetId,
baseAsset,
symbol,
decimals,
totalSupply,
Expand Down Expand Up @@ -78,7 +74,7 @@ const MarketCollateralsTableRow = ({
</TableCell>
<TableCell className="text-lavender font-medium">
{getFormattedPrice(
formatUnits(reserves ?? BigNumber(0), baseAsset.decimals)
formatUnits(reserves ?? BigNumber(0), decimals).times(price)
)}
</TableCell>
<TableCell className="text-lavender font-medium">
Expand Down Expand Up @@ -169,10 +165,6 @@ export const MarketCollateralsTable = ({
<MarketCollateralsTableRow
key={collateral.asset_id.bits}
assetId={collateral.asset_id.bits}
baseAsset={{
symbol: appConfig.assets[marketConfiguration?.baseToken.bits!],
decimals: marketConfiguration?.baseTokenDecimals ?? 6,
}}
symbol={appConfig.assets[collateral.asset_id.bits]}
decimals={collateral.decimals}
totalSupply={totalCollateral?.get(collateral.asset_id.bits)}
Expand Down

0 comments on commit c94f109

Please sign in to comment.