From ad5355957ae1da447e64b7154d06889399c45bba Mon Sep 17 00:00:00 2001 From: Bobo Date: Fri, 25 Oct 2024 07:33:45 +0200 Subject: [PATCH] Remove staked contracts check (#1400) --- src/i18n/en-US/index.ts | 1 - src/staking-v3/hooks/useDappStaking.ts | 9 --------- 2 files changed, 10 deletions(-) diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts index 8f6679403..37b9dfa6f 100644 --- a/src/i18n/en-US/index.ts +++ b/src/i18n/en-US/index.ts @@ -763,7 +763,6 @@ export default { NotOperatedDApp: 'dApp is part of dApp staking but is not active anymore.', PeriodEndsNextEra: 'Period ends in the next era. It is not possible to stake in the last era of a period.', - TooManyStakedContracts: 'There are too many contract stake entries for the account.', TooManyUnlockingChunks: 'Contract has too many unlocking chunks. Withdraw the existing chunks if possible or wait for current chunks to complete unlocking process to withdraw them.', UnavailableStakeFunds: diff --git a/src/staking-v3/hooks/useDappStaking.ts b/src/staking-v3/hooks/useDappStaking.ts index 4127dad5f..ec068e863 100644 --- a/src/staking-v3/hooks/useDappStaking.ts +++ b/src/staking-v3/hooks/useDappStaking.ts @@ -445,15 +445,6 @@ export function useDappStaking() { return [false, t('stakingV3.dappStaking.WrongNetworkZkEvm'), '']; } else if (stake.amount <= 0) { return [false, t('stakingV3.dappStaking.ZeroAmount'), '']; - } else if ( - constants.value && - (ledger.value?.contractStakeCount ?? 0) >= constants.value.maxNumberOfStakedContracts - ) { - return [ - false, - t('stakingV3.dappStaking.TooManyStakedContracts'), - docsUrl.dappStakingStaked16Dapps, - ]; } else if ( constants.value?.minStakeAmountToken && stake.amount < constants.value.minStakeAmountToken &&