Skip to content

Commit

Permalink
Remove staked contracts check (#1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 authored Oct 25, 2024
1 parent de57cec commit ad53559
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/i18n/en-US/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 0 additions & 9 deletions src/staking-v3/hooks/useDappStaking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit ad53559

Please sign in to comment.