Skip to content

Commit

Permalink
fix: index price in market decimals (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptianSparkles authored Nov 6, 2024
1 parent 7423abc commit 1624a25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const MarketHeaderPerp = ({ market }: MarketHeaderPerpProps) => {
<Stats.FundingRateStat marketId={market.id} />
<Stats.IndexPriceStat
marketId={market.id}
assetDecimals={asset.decimals}
decimalPlaces={market.decimalPlaces}
markPriceConfiguration={market.markPriceConfiguration}
/>
</>
Expand Down
6 changes: 3 additions & 3 deletions apps/trading/components/market-header/stats/index-price.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import { useT } from '../../../lib/use-t';

export const IndexPriceStat = ({
marketId,
assetDecimals,
decimalPlaces,
markPriceConfiguration,
}: {
marketId: string;
assetDecimals: number;
decimalPlaces: number;
markPriceConfiguration: MarketFieldsFragment['markPriceConfiguration'];
}) => {
const { VEGA_EXPLORER_URL } = useEnvironment();
Expand Down Expand Up @@ -57,7 +57,7 @@ export const IndexPriceStat = ({
}
data-testid="index-price"
>
<IndexPrice marketId={marketId} decimalPlaces={assetDecimals} />
<IndexPrice marketId={marketId} decimalPlaces={decimalPlaces} />
</HeaderStat>
);
};
Expand Down

0 comments on commit 1624a25

Please sign in to comment.