From 0eba0f26ca47a65844502ad680d1baaf4fd5fba3 Mon Sep 17 00:00:00 2001 From: Igor Stricevic Date: Wed, 3 Jul 2024 18:03:32 +0200 Subject: [PATCH] Valid in range checks --- apps/web/src/state/mint/v3/hooks.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/state/mint/v3/hooks.tsx b/apps/web/src/state/mint/v3/hooks.tsx index 6c89499e225..d2d079a1dcb 100644 --- a/apps/web/src/state/mint/v3/hooks.tsx +++ b/apps/web/src/state/mint/v3/hooks.tsx @@ -377,10 +377,10 @@ export function useV3DerivedMintInfo( // single deposit only if price is out of range const deposit0Disabled = Boolean( - typeof tickUpper === 'number' && poolForPosition && poolForPosition.tickCurrent >= tickUpper, + typeof tickUpper === 'number' && poolForPosition && poolForPosition.tickCurrent > tickUpper, ) const deposit1Disabled = Boolean( - typeof tickLower === 'number' && poolForPosition && poolForPosition.tickCurrent <= tickLower, + typeof tickLower === 'number' && poolForPosition && poolForPosition.tickCurrent < tickLower, ) // sorted for token order