Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
RAMTO committed Jan 9, 2024
2 parents e83c74a + a97a318 commit 60a9549
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/SingleSidedStakingActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="col-md-5 mt-4 mt-md-0">
<div className="container-blue-neutral-900 rounded p-4 p-lg-5 height-100 d-flex flex-column">
Expand Down Expand Up @@ -514,7 +517,7 @@ const FarmActions = ({
) : null}

<Button
disabled={getInsufficientTokenBalance() || !lpApproved}
disabled={getInsufficientTokenBalance() || !lpApproved || !canStake}
loading={loadingStake}
onClick={() => setShowDepositModal(true)}
>
Expand Down

0 comments on commit 60a9549

Please sign in to comment.