From 6dc121bdba9a8fdb4da3c1274c7ae53ad407244d Mon Sep 17 00:00:00 2001 From: eli-d <64763513+eli-d@users.noreply.github.com> Date: Wed, 15 Jan 2025 11:21:01 +1030 Subject: [PATCH] don't set positions to vested when withdrawing if leo is disabled --- web/src/app/stake/pool/confirm-withdraw/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/app/stake/pool/confirm-withdraw/page.tsx b/web/src/app/stake/pool/confirm-withdraw/page.tsx index d19fe104..4ed145ab 100644 --- a/web/src/app/stake/pool/confirm-withdraw/page.tsx +++ b/web/src/app/stake/pool/confirm-withdraw/page.tsx @@ -204,7 +204,7 @@ export default function ConfirmWithdrawLiquidity() { }, lower: tickLower, upper: tickUpper, - isVested: !isDivesting, + isVested: showLeo && !isDivesting, }; getUsdTokenAmountsForPosition( expectedChainId, @@ -231,6 +231,7 @@ export default function ConfirmWithdrawLiquidity() { ); }, [ + showLeo, expectedChainId, isDivesting, token0,