From 21571abcc38fb431479c818c1db95cf2dfbb78c5 Mon Sep 17 00:00:00 2001 From: Adrian Date: Mon, 27 Nov 2023 21:29:25 +0100 Subject: [PATCH] fix min range --- .../NewPosition/RangeSelector/RangeSelector.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/NewPosition/RangeSelector/RangeSelector.tsx b/src/components/NewPosition/RangeSelector/RangeSelector.tsx index 7b52ceebf..471fd8ead 100644 --- a/src/components/NewPosition/RangeSelector/RangeSelector.tsx +++ b/src/components/NewPosition/RangeSelector/RangeSelector.tsx @@ -170,7 +170,7 @@ export const RangeSelector: React.FC = ({ const { leftRange, rightRange } = calculateConcentrationRange( tickSpacing, concentrationArray[0], - 1, + 2, midPrice.index, isXtoY ) @@ -257,7 +257,7 @@ export const RangeSelector: React.FC = ({ } const concentrationArray = useMemo( - () => getConcentrationArray(tickSpacing, 1, midPrice.index).sort((a, b) => a - b), + () => getConcentrationArray(tickSpacing, 2, midPrice.index).sort((a, b) => a - b), [tickSpacing, midPrice.index] ) @@ -268,7 +268,7 @@ export const RangeSelector: React.FC = ({ const { leftRange, rightRange } = calculateConcentrationRange( tickSpacing, concentrationArray[0], - 1, + 2, midPrice.index, isXtoY ) @@ -288,7 +288,7 @@ export const RangeSelector: React.FC = ({ const { leftRange, rightRange } = calculateConcentrationRange( tickSpacing, concentrationArray[index], - 1, + 2, midPrice.index, isXtoY ) @@ -470,7 +470,7 @@ export const RangeSelector: React.FC = ({ const { leftRange, rightRange } = calculateConcentrationRange( tickSpacing, concentrationArray[value], - 1, + 2, midPrice.index, isXtoY )