import { formatUsdValue } from '../utils' import { MarketDataLoader } from './MarketHeader' 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) ) : ( )}
{high?.baseOraclePrice ? ( formatUsdValue(high.baseOraclePrice) ) : ( )}
) } export default DayHighLow