import { formatUsdValue } from '../utils' const DayHighLow = ({ high, low, latest }) => { let rangePercent = 0 if (high?.baseOraclePrice) { rangePercent = ((parseFloat(latest?.baseOraclePrice) - parseFloat(low?.baseOraclePrice)) * 100) / (parseFloat(high?.baseOraclePrice) - parseFloat(low?.baseOraclePrice)) } return (
24h Range
{low?.baseOraclePrice ? formatUsdValue(low.baseOraclePrice) : null}
{high?.baseOraclePrice ? formatUsdValue(high.baseOraclePrice) : null}
) } export default DayHighLow