diff --git a/packages/suite-desktop-core/src/config.ts b/packages/suite-desktop-core/src/config.ts
index 40ddd452eb4b..7b380eeebee5 100644
--- a/packages/suite-desktop-core/src/config.ts
+++ b/packages/suite-desktop-core/src/config.ts
@@ -25,9 +25,6 @@ export const allowedDomains = [
'trezor-cardano-mainnet.blockfrost.io',
'trezor-cardano-preview.blockfrost.io',
'blockfrost.dev',
- 'eth-goerli.public.blastapi.io',
- 'ethereum-holesky.publicnode.com',
- 'mainnet.infura.io',
'eth-api-b2c-stage.everstake.one',
'eth-api-b2c.everstake.one',
];
diff --git a/packages/suite/package.json b/packages/suite/package.json
index 3a62a670e49b..029defc8806b 100644
--- a/packages/suite/package.json
+++ b/packages/suite/package.json
@@ -19,7 +19,7 @@
"test-unit:watch": "yarn g:jest -o --watch"
},
"dependencies": {
- "@everstake/wallet-sdk": "^0.3.39",
+ "@everstake/wallet-sdk": "^0.3.40",
"@formatjs/intl": "2.10.0",
"@hookform/resolvers": "3.3.4",
"@mobily/ts-belt": "^3.13.1",
diff --git a/packages/suite/src/actions/wallet/stake/stakeFormEthereumActions.ts b/packages/suite/src/actions/wallet/stake/stakeFormEthereumActions.ts
index 4445e0cc0b83..389348d43a3b 100644
--- a/packages/suite/src/actions/wallet/stake/stakeFormEthereumActions.ts
+++ b/packages/suite/src/actions/wallet/stake/stakeFormEthereumActions.ts
@@ -33,12 +33,14 @@ import {
// @ts-expect-error
import { Ethereum } from '@everstake/wallet-sdk';
import { MIN_ETH_FOR_WITHDRAWALS } from 'src/constants/suite/ethStaking';
+import { NetworkSymbol } from '@suite-common/wallet-config';
const calculate = (
availableBalance: string,
output: ExternalOutput,
feeLevel: FeeLevel,
compareWithAmount = true,
+ symbol: NetworkSymbol,
): PrecomposedTransaction => {
const feeInSatoshi = calculateEthFee(
toWei(feeLevel.feePerUnit, 'gwei'),
@@ -64,10 +66,14 @@ const calculate = (
new BigNumber(feeInSatoshi).gt(availableBalance) ||
(compareWithAmount && totalSpent.isGreaterThan(availableBalance))
) {
- const error = 'AMOUNT_IS_NOT_ENOUGH';
+ const error = 'TR_STAKE_NOT_ENOUGH_FUNDS';
// errorMessage declared later
- return { type: 'error', error, errorMessage: { id: error } } as const;
+ return {
+ type: 'error',
+ error,
+ errorMessage: { id: error, values: { symbol: symbol.toUpperCase() } },
+ } as const;
}
const payloadData = {
@@ -152,7 +158,7 @@ export const composeTransaction =
const wrappedResponse: PrecomposedLevels = {};
const compareWithAmount = formValues.ethereumStakeType === 'stake';
const response = predefinedLevels.map(level =>
- calculate(availableBalance, output, level, compareWithAmount),
+ calculate(availableBalance, output, level, compareWithAmount, account.symbol),
);
response.forEach((tx, index) => {
const feeLabel = predefinedLevels[index].label as FeeLevel['label'];
diff --git a/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/ClaimModal/ClaimEthForm.tsx b/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/ClaimModal/ClaimEthForm.tsx
index 9f4c2d0b6b54..b133df2c30ff 100644
--- a/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/ClaimModal/ClaimEthForm.tsx
+++ b/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/ClaimModal/ClaimEthForm.tsx
@@ -27,7 +27,7 @@ const GreenTxt = styled.span`
`;
const StyledWarning = styled(Warning)`
- margin-top: ${spacingsPx.sm};
+ margin: ${spacingsPx.sm} 0 ${spacingsPx.sm} 0;
justify-content: flex-start;
`;
@@ -83,16 +83,16 @@ export const ClaimEthForm = () => {
+ {errors[CRYPTO_INPUT] && (
+ {errors[CRYPTO_INPUT]?.message}
+ )}
+
}
/>
- {errors[CRYPTO_INPUT] && (
- {errors[CRYPTO_INPUT]?.message}
- )}
-
diff --git a/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/UnstakeModal/UnstakeEthForm/UnstakeEthForm.tsx b/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/UnstakeModal/UnstakeEthForm/UnstakeEthForm.tsx
index 92d1edd7bf42..8d793a175f98 100644
--- a/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/UnstakeModal/UnstakeEthForm/UnstakeEthForm.tsx
+++ b/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/UnstakeModal/UnstakeEthForm/UnstakeEthForm.tsx
@@ -70,8 +70,29 @@ export const UnstakeEthForm = () => {
return (