From a3b4c1823d23d0c104768917d6f1a5cddf9625e7 Mon Sep 17 00:00:00 2001 From: Martin Dobrev Date: Tue, 9 Jan 2024 09:54:15 +0200 Subject: [PATCH] Check for staking added --- src/components/SingleSidedStakingActions.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/SingleSidedStakingActions.tsx b/src/components/SingleSidedStakingActions.tsx index c4fe8806..38fbc2c9 100644 --- a/src/components/SingleSidedStakingActions.tsx +++ b/src/components/SingleSidedStakingActions.tsx @@ -408,6 +408,9 @@ const FarmActions = ({ return 'Stake'; }; + // Prevent user from unstaking if he locked and the lock limit will be reached + const canStake = hasUserLockedTokens ? (canLock ? true : false) : true; + return (
@@ -514,7 +517,7 @@ const FarmActions = ({ ) : null}