diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts index ed25970e7..32ebbe561 100644 --- a/src/i18n/en-US/index.ts +++ b/src/i18n/en-US/index.ts @@ -445,7 +445,7 @@ export default { 'All funds will be transferred because the min. staking amount is {minStakingAmount} {symbol}', invalidBalance: 'Insufficient transferrable balance to complete the transaction', warningLeaveMinAmount: - 'Account must hold greater than {amount}{symbol} in transferrable when you stake.', + 'Account must hold amount greater than {amount}{symbol} in transferrable after you stake.', }, maintenance: { switching: 'Switching to', @@ -704,7 +704,8 @@ export default { NoExpiredEntries: 'There are no expired entries to clean up.', NoStakingInfo: 'Account has no staking information for the contract', NotOperatedDApp: 'dApp is part of dApp staking but is not active anymore.', - PeriodEndsNextEra: 'Period ends in the next era.', + 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. This can be cleaned up by either unstaking or cleaning expired entries.', TooManyUnlockingChunks: @@ -717,6 +718,7 @@ export default { UnstakeFromPastPeriod: 'Unstaking is rejected since the period in which past stake was active has passed.', ZeroAmount: 'Amount must be greater than 0.', + LockedAmountBelowThreshold: 'Minimum staking amount is {amount} tokens per dApp.', }, successfullyStaked: 'You successfully staked to {contractAddress}', voteTitle: 'Vote!', @@ -826,6 +828,8 @@ export default { startStakingNow: 'Start Staking Now', noEntry: 'No entry', burn: 'Burn', + willUnstakeAll: + 'The operation will unstake all of your staked tokens because the minimum staking amount is {amount} tokens.', }, bridge: { bridge: 'Bridge', diff --git a/src/staking-v3/components/Dapps.vue b/src/staking-v3/components/Dapps.vue index 1f70241fa..31381af64 100644 --- a/src/staking-v3/components/Dapps.vue +++ b/src/staking-v3/components/Dapps.vue @@ -19,7 +19,7 @@ }" > -
+
icon @@ -36,7 +36,7 @@
-
+
@@ -48,8 +48,6 @@ import { defineComponent, computed } from 'vue'; import { useDappStaking, useDappStakingNavigation, useDapps } from '../hooks'; import TokenBalanceNative from 'src/components/common/TokenBalanceNative.vue'; import { CombinedDappInfo } from '../logic'; - -// Import Swiper import { Swiper, SwiperSlide } from 'swiper/vue'; import 'swiper/css'; @@ -72,7 +70,7 @@ export default defineComponent({ setup(props) { const { registeredDapps } = useDapps(); const { getDappTier } = useDappStaking(); - const { navigateDappPage } = useDappStakingNavigation(); + const { getDappPageUrl } = useDappStakingNavigation(); const filteredDapps = computed(() => { const dapps = registeredDapps.value.filter( @@ -90,7 +88,7 @@ export default defineComponent({ return result; }); - return { filteredDapps, getDappTier, navigateDappPage }; + return { filteredDapps, getDappTier, getDappPageUrl }; }, }); diff --git a/src/staking-v3/components/ErrorPanel.vue b/src/staking-v3/components/ErrorPanel.vue new file mode 100644 index 000000000..22753656c --- /dev/null +++ b/src/staking-v3/components/ErrorPanel.vue @@ -0,0 +1,29 @@ + + + + + \ No newline at end of file diff --git a/src/staking-v3/components/Owner.vue b/src/staking-v3/components/Owner.vue index e0f67e1c9..92ee21055 100644 --- a/src/staking-v3/components/Owner.vue +++ b/src/staking-v3/components/Owner.vue @@ -32,7 +32,7 @@ diff --git a/src/staking-v3/components/dapp/DappBackground.vue b/src/staking-v3/components/dapp/DappBackground.vue index f71ab9fef..6112e2fed 100644 --- a/src/staking-v3/components/dapp/DappBackground.vue +++ b/src/staking-v3/components/dapp/DappBackground.vue @@ -1,6 +1,6 @@