diff --git a/frontend/src/pages/StrategyBuilder.tsx b/frontend/src/pages/StrategyBuilder.tsx index 9941907..b978517 100644 --- a/frontend/src/pages/StrategyBuilder.tsx +++ b/frontend/src/pages/StrategyBuilder.tsx @@ -57,12 +57,17 @@ function PayoffChart({ priced, spot, scenarioSpot }: { priced: PriceCombo; spot: expiry: p.pnl, scenario: priced.at_scenario[i]?.pnl, })) + // Decimals scale with the underlying's own magnitude — an equity at ~740 reads fine + // rounded to the unit, but an FX rate at ~1.15 needs several decimals or every tick + // collapses to the same rounded label. + const decimals = spot < 5 ? 4 : spot < 50 ? 2 : 0 return ( - v.toFixed(0)} /> + v.toFixed(decimals)} /> `${v}`} />