Skip to content

Commit

Permalink
fix(extension): resolve sdet comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vetalcore committed Feb 27, 2024
1 parent 3ebf507 commit 38611ff
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/browser-extension-wallet/src/lib/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@
"title": "Cost",
"tooltip": "The cost is not directly paid by the delegator; they are deducted from a pool's rewards, consisting of a fixed cost and a variable cost, which fund the pool's operational costs"
},
"ros": {
"apy": {
"title": "ROS",
"tooltip": "An estimation of the potential rewards you will earn per epoch if you delegate the intended amount of stake. The system looks at the pool's parameters and historical performance data to calculate potential rewards, assuming that the pool reaches optimal saturation."
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const StakePoolsTable = ({ scrollableTargetId }: stakePoolsTableProps): R

const tableHeaderTranslations: TranslationsFor<MetricType> = {
ticker: t('cardano.stakePoolTableBrowser.tableHeader.ticker.title'),
apy: t('cardano.stakePoolTableBrowser.tableHeader.ros.title'),
apy: t('cardano.stakePoolTableBrowser.tableHeader.apy.title'),
cost: t('cardano.stakePoolTableBrowser.tableHeader.cost.title'),
saturation: t('cardano.stakePoolTableBrowser.tableHeader.saturation.title'),
margin: t('cardano.stakePoolTableBrowser.tableHeader.margin.title'),
Expand All @@ -73,7 +73,7 @@ export const StakePoolsTable = ({ scrollableTargetId }: stakePoolsTableProps): R
};
const tableHeaderTooltipsTranslations: TranslationsFor<MetricType> = {
ticker: t('cardano.stakePoolTableBrowser.tableHeader.ticker.tooltip'),
apy: t('cardano.stakePoolTableBrowser.tableHeader.ros.tooltip'),
apy: t('cardano.stakePoolTableBrowser.tableHeader.apy.tooltip'),
cost: t('cardano.stakePoolTableBrowser.tableHeader.cost.tooltip'),
saturation: t('cardano.stakePoolTableBrowser.tableHeader.saturation.tooltip'),
margin: t('cardano.stakePoolTableBrowser.tableHeader.margin.tooltip'),
Expand Down
2 changes: 1 addition & 1 deletion packages/staking/src/features/BrowsePools/BrowsePools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const BrowsePools = () => {
const fetchingPools = walletStoreStakePoolSearchResultsStatus === StateStatus.LOADING;

const tableHeaderTranslations = {
apy: t('browsePools.stakePoolTableBrowser.tableHeader.ros.title'),
apy: t('browsePools.stakePoolTableBrowser.tableHeader.apy.title'),
blocks: t('browsePools.stakePoolTableBrowser.tableHeader.blocks.title'),
cost: t('browsePools.stakePoolTableBrowser.tableHeader.cost.title'),
liveStake: t('browsePools.stakePoolTableBrowser.tableHeader.liveStake.title'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const DelegationTooltip = ({
description={
<Box w="$148">
<Flex justifyContent="space-between">
<Box>{t('browsePools.stakePoolTableBrowser.tableHeader.ros.title')}</Box>
<Box>{t('browsePools.stakePoolTableBrowser.tableHeader.apy.title')}</Box>
<Box>{apy ? `${apy}%` : '-'}</Box>
</Flex>
<Flex justifyContent="space-between">
Expand Down
6 changes: 3 additions & 3 deletions packages/staking/src/features/i18n/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export const en: Translations = {
'browsePools.stakePoolTableBrowser.sortByTitle.saturation': 'Saturation',
'browsePools.stakePoolTableBrowser.sortByTitle.ticker': 'Ticker name',
'browsePools.stakePoolTableBrowser.stake': 'Stake',
'browsePools.stakePoolTableBrowser.tableHeader.apy.title': 'ROS',
'browsePools.stakePoolTableBrowser.tableHeader.apy.tooltip':
"An estimation of the potential rewards you will earn per epoch if you delegate the intended amount of stake. The system looks at the pool's parameters and historical performance data to calculate potential rewards, assuming that the pool reaches optimal saturation.",
'browsePools.stakePoolTableBrowser.tableHeader.blocks.title': 'Blocks',
'browsePools.stakePoolTableBrowser.tableHeader.blocks.tooltip': 'Total blocks created by the pool.',
'browsePools.stakePoolTableBrowser.tableHeader.cost.title': 'Cost',
Expand All @@ -49,9 +52,6 @@ export const en: Translations = {
'browsePools.stakePoolTableBrowser.tableHeader.pledge.title': 'Pledge',
'browsePools.stakePoolTableBrowser.tableHeader.pledge.tooltip':
'An amount of self‐bonded assets intended to remain staked to the pool for as long as it operates',
'browsePools.stakePoolTableBrowser.tableHeader.ros.title': 'ROS',
'browsePools.stakePoolTableBrowser.tableHeader.ros.tooltip':
"An estimation of the potential rewards you will earn per epoch if you delegate the intended amount of stake. The system looks at the pool's parameters and historical performance data to calculate potential rewards, assuming that the pool reaches optimal saturation.",
'browsePools.stakePoolTableBrowser.tableHeader.saturation.title': 'Saturation',
'browsePools.stakePoolTableBrowser.tableHeader.saturation.tooltip':
'Once a pool reaches the point of saturation, it will offer diminishing rewards',
Expand Down
2 changes: 1 addition & 1 deletion packages/staking/src/features/i18n/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type KeysStructure = {
title: '';
tooltip: '';
};
ros: {
apy: {
title: '';
tooltip: '';
};
Expand Down

0 comments on commit 38611ff

Please sign in to comment.