Skip to content

Commit

Permalink
fix(suite): fix copy in eth staking banner
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavProchazka authored and komret committed Jul 31, 2024
1 parent ac7601a commit 556b412
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/suite-data/files/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@
"TR_SPEND_TRANS_ID": "Trans. ID:",
"TR_STAKE_ACKNOWLEDGE_ENTRY_PERIOD": "I acknowledge the above entry period",
"TR_STAKE_ADDING_TO_POOL": "Adding to staking pool",
"TR_STAKE_ANY_AMOUNT_ETH": "Stake any amount and watch that sweet {symbol} roll in. With our current APY rate of {apyPercent}%, your rewards earn too!",
"TR_STAKE_ANY_AMOUNT_ETH": "Stake a minimum amount of {amount} {symbol} and start earning rewards. With our current APY rate of {apyPercent}%, your rewards earn too!",
"TR_STAKE_APY": "Annual Percentage Yield",
"TR_STAKE_APY_DESC": "*Annual Percentage Yield",
"TR_STAKE_AVAILABLE": "Available",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { selectSuiteFlags } from '../../../../reducers/suite/suiteReducer';
import { Account } from '@suite-common/wallet-types';
import { selectPoolStatsApyData } from '@suite-common/wallet-core';
import { isSupportedEthStakingNetworkSymbol } from '@suite-common/wallet-core';
import { MIN_ETH_AMOUNT_FOR_STAKING } from 'src/constants/suite/ethStaking';

const StyledCard = styled(Card)`
padding: ${spacingsPx.lg} ${spacingsPx.xxl} ${spacingsPx.lg} ${spacingsPx.md};
Expand Down Expand Up @@ -94,6 +95,7 @@ export const StakeEthBanner = ({ account }: StakeEthBannerProps) => {
values={{
apyPercent: ethApy,
symbol: account?.symbol.toUpperCase(),
amount: MIN_ETH_AMOUNT_FOR_STAKING.toString(),
}}
/>
</Paragraph>
Expand Down
2 changes: 1 addition & 1 deletion packages/suite/src/support/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8642,7 +8642,7 @@ export default defineMessages({
TR_STAKE_ANY_AMOUNT_ETH: {
id: 'TR_STAKE_ANY_AMOUNT_ETH',
defaultMessage:
'Stake any amount and watch that sweet {symbol} roll in. With our current APY rate of {apyPercent}%, your rewards earn too!',
'Stake a minimum amount of {amount} {symbol} and start earning rewards. With our current APY rate of {apyPercent}%, your rewards earn too!',
},
TR_STAKE_LEARN_MORE: {
id: 'TR_STAKE_LEARN_MORE',
Expand Down

0 comments on commit 556b412

Please sign in to comment.