From 43da3b94e2b4af449955920ebd3a3cee332f477e Mon Sep 17 00:00:00 2001 From: Vinay Singh Date: Mon, 6 May 2024 16:59:17 +0530 Subject: [PATCH] not change range when high price is infinity --- src/state/mint/v3/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/mint/v3/hooks.tsx b/src/state/mint/v3/hooks.tsx index bd8205ff..0c4fa64b 100644 --- a/src/state/mint/v3/hooks.tsx +++ b/src/state/mint/v3/hooks.tsx @@ -250,7 +250,7 @@ export function useV3DerivedMintInfo( [Bound.LOWER]: typeof existingPosition?.tickLower === 'number' ? existingPosition.tickLower - : (invertPrice && typeof rightRangeTypedValue === 'boolean') || + : (invertPrice && (typeof rightRangeTypedValue === 'boolean' || rightRangeTypedValue === '∞')) || (!invertPrice && typeof leftRangeTypedValue === 'boolean') ? tickSpaceLimits[Bound.LOWER] : invertPrice