function formatRangePrice(price) { if (!price) return null const priceAsFloat = parseFloat(price) if (priceAsFloat > 1000) { return priceAsFloat.toFixed(0) } else if (priceAsFloat > 1) { return priceAsFloat.toFixed(2) } else { return priceAsFloat.toFixed(4) } } const DayHighLow = ({ high, low, latest }) => { let rangePercent = 0 if (high?.baseOraclePrice) { rangePercent = (parseFloat(latest?.baseOraclePrice) / parseFloat(high?.baseOraclePrice)) * 100 } return (