bugfixing

This commit is contained in:
MuslemRahimi 2025-04-06 21:57:34 +02:00
parent a8befdd75e
commit c6a5d8159c

View File

@ -227,7 +227,7 @@
const dataPoints = [];
const xMin = 0;
const xMax = Math.floor(currentStockPrice * 3);
const xMax = Math.floor(Math.max(currentStockPrice, selectedStrike) * 3);
const step = 10;
if (payoffFunctions[scenarioKey]) {