use getprecisiondigits instead of getdecimalscount

This commit is contained in:
saml33 2022-03-16 10:16:14 +11:00
parent a25570c384
commit edaa723872
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import ManualRefresh from './ManualRefresh'
import useOraclePrice from '../hooks/useOraclePrice'
import DayHighLow from './DayHighLow'
import {
getDecimalCount,
getPrecisionDigits,
patchInternalMarketName,
roundPerpSize,
usdFormatter,
@ -190,10 +190,10 @@ const MarketDetails = () => {
<div className="text-th-fgd-1 md:text-xs">
{oraclePrice && selectedMarket
? oraclePrice.toNumber().toLocaleString(undefined, {
minimumFractionDigits: getDecimalCount(
minimumFractionDigits: getPrecisionDigits(
selectedMarket.tickSize
),
maximumFractionDigits: getDecimalCount(
maximumFractionDigits: getPrecisionDigits(
selectedMarket.tickSize
),
})