Skip to content

Commit

Permalink
🚸 add APR description
Browse files Browse the repository at this point in the history
  • Loading branch information
franm91 committed Sep 10, 2024
1 parent 60fe6d3 commit 10b334d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
18 changes: 17 additions & 1 deletion components/staking/StakedEXASummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useEXAPrice } from 'hooks/useEXA';
import useAccountData from 'hooks/useAccountData';
import formatNumber from 'utils/formatNumber';
import { calculateStakingRewardsAPR, calculateTotalStakingRewardsAPR } from 'utils/calculateStakingAPR';
import { InfoOutlined } from '@mui/icons-material';

function StakedEXASummary() {
const { t } = useTranslation();
Expand Down Expand Up @@ -41,7 +42,22 @@ function StakedEXASummary() {
</Box>
</Box>
<Box>
<Typography variant="h6">{t('Estimated APR')}</Typography>
<Box display="flex" gap={1}>
<Typography variant="h6">{t('Estimated APR')}</Typography>
<Tooltip
title={
<Typography sx={{ fontSize: '11.5px', fontWeight: '400' }}>
{t(
"The 'Estimated APR' is equal to 50% of last week's treasury fees from the USDC market (annualized) divided by the total EXA Staked (in $).",
)}
</Typography>
}
placement="top"
arrow
>
<InfoOutlined sx={{ fontSize: '19px', my: 'auto', color: 'figma.grey.500', cursor: 'pointer' }} />
</Tooltip>
</Box>
<Box display="flex" gap={1}>
{totalRewardsAPR === undefined ? (
<Skeleton variant="text" width={100} height={45} />
Expand Down
11 changes: 3 additions & 8 deletions i18n/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -657,13 +657,6 @@
"Started": "Iniciado",
"Ends": "Finaliza",
"Claim rewards to date": "Reclamar recompensas hasta la fecha",
"Staking progress": "Progreso de Staking",
"Started on": "Iniciado el",
"Rewards to date": "Recompensas hasta la fecha",
"Claimed: ": "Reclamado: ",
"penalty": "penalización",
"Total rewards": "Recompensas totales",
"By staking end on ": "Al finalizar el staking el ",
"Staking Program": "Programa de Staking",
"Earn a portion of the Protocol’s treasury fees by staking your EXA over a twelve-month period.": "Gana una parte de las tarifas del tesoro del Protocolo stakeando tu EXA durante un período de doce meses.",
"Your Rewards": "Tus Recompensas",
Expand All @@ -675,5 +668,7 @@
"Step 1: Stake your EXA": "Paso 1: Stakea tu EXA",
"Step 2: Start receiving rewards from the protocol’s treasury fees.": "Paso 2: Comienza a recibir recompensas de las tarifas del tesoro del protocolo.",
"Start staking now": "Comienza a stakear ahora",
"Stake EXA and Claim rewards": "Stakea EXA y Reclama recompensas"
"Stake EXA and Claim rewards": "Stakea EXA y Reclama recompensas",
"The 'Estimated APR' is equal to 50% of last week's treasury fees from the USDC market (annualized) divided by the total EXA Staked (in $).": "La 'TNA Estimada' es igual al 50% de las tarifas del tesoro de la semana pasada del mercado USDC (anualizado) dividido por el total de EXA Stakeado (en $).",
"Available to claim": "Disponible para reclamar"
}

0 comments on commit 10b334d

Please sign in to comment.