Skip to content

Commit 2a99224

Browse files
authored
chore: improve text around sgho (#2542)
1 parent 1d06111 commit 2a99224

File tree

9 files changed

+36
-47
lines changed

9 files changed

+36
-47
lines changed

src/hooks/useMeritIncentives.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ProtocolAction } from '@aave/contract-helpers';
22
import { ReserveIncentiveResponse } from '@aave/math-utils/dist/esm/formatters/incentive/calculate-reserve-incentives';
33
import {
4+
AaveSafetyModule,
45
AaveV3Arbitrum,
56
AaveV3Avalanche,
67
AaveV3Base,
@@ -123,8 +124,8 @@ const MERIT_DATA_MAP: Record<string, Record<string, MeritReserveIncentiveData[]>
123124
GHO: [
124125
{
125126
action: MeritAction.ETHEREUM_SGHO,
126-
rewardTokenAddress: AaveV3Ethereum.ASSETS.GHO.UNDERLYING,
127-
rewardTokenSymbol: 'GHO',
127+
rewardTokenAddress: AaveSafetyModule.STK_GHO,
128+
rewardTokenSymbol: 'sGHO',
128129
customForumLink:
129130
'https://governance.aave.com/t/arfc-merit-a-new-aave-alignment-user-reward-system/16646',
130131
},

src/locales/el/messages.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/locales/en/messages.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/locales/en/messages.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2214,6 +2214,10 @@ msgstr "Borrowing is unavailable because you’ve enabled Efficiency Mode (E-Mod
22142214
msgid "Something went wrong fetching bridge message, please try again later."
22152215
msgstr "Something went wrong fetching bridge message, please try again later."
22162216

2217+
#: src/modules/staking/StakingPanelNoWallet.tsx
2218+
msgid "Incentives APR"
2219+
msgstr "Incentives APR"
2220+
22172221
#: src/modules/governance/VotingPowerInfoPanel.tsx
22182222
msgid "To submit a proposal for minor changes to the protocol, you'll need at least 80.00K power. If you want to change the core code base, you'll need 320k power.<0>Learn more.</0>"
22192223
msgstr "To submit a proposal for minor changes to the protocol, you'll need at least 80.00K power. If you want to change the core code base, you'll need 320k power.<0>Learn more.</0>"
@@ -2966,7 +2970,6 @@ msgid "Target liquidity"
29662970
msgstr "Target liquidity"
29672971

29682972
#: src/modules/staking/StakingPanel.tsx
2969-
#: src/modules/staking/StakingPanelNoWallet.tsx
29702973
msgid "The current incentives period, decided on by the Aave community, has ended. Governance is in the process on renewing, check for updates. <0>Learn more</0>."
29712974
msgstr "The current incentives period, decided on by the Aave community, has ended. Governance is in the process on renewing, check for updates. <0>Learn more</0>."
29722975

src/locales/es/messages.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/locales/fr/messages.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modules/reserve-overview/Gho/SavingsGho.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const SavingsGho = () => {
6161
<Stack direction="column" gap={4}>
6262
<Typography gutterBottom>
6363
Stake GHO is now Savings GHO. With no risk of slashing and immediate withdraws available,
64-
earn up to {aprFormatted}%.
64+
earn up to {aprFormatted}% APR and claim rewards weekly.
6565
</Typography>
6666
<Stack direction="row">
6767
<Stack direction="row" alignItems="center" gap={1}>

src/modules/staking/GhoStakingPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export const GhoStakingPanel: React.FC<GhoStakingPanelProps> = ({
254254
variant={xsm ? 'subheader2' : 'description'}
255255
color={xsm ? 'text.secondary' : 'text.primary'}
256256
>
257-
<Trans>Deposit APR</Trans>
257+
<Trans>Deposit APR </Trans>
258258
</Typography>
259259
</Stack>
260260
<Stack direction="row" alignItems="center">

src/modules/staking/StakingPanelNoWallet.tsx

Lines changed: 23 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { Box, Stack, Typography } from '@mui/material';
33
import React from 'react';
44
import { MeritIncentivesButton } from 'src/components/incentives/IncentivesButton';
55
import { FormattedNumber } from 'src/components/primitives/FormattedNumber';
6-
import { Link } from 'src/components/primitives/Link';
76
import { TokenIcon } from 'src/components/primitives/TokenIcon';
8-
import { TextWithTooltip } from 'src/components/TextWithTooltip';
97
import { StakeTokenFormatted, useGeneralStakeUiData } from 'src/hooks/stake/useGeneralStakeUiData';
108
import { useRootStore } from 'src/store/root';
119
import { CustomMarket } from 'src/ui-config/marketsConfig';
@@ -39,8 +37,6 @@ export const StakingPanelNoWallet: React.FC<StakingPanelNoWalletProps> = ({
3937
if (stakedToken == 'GHO') stakingAPY = stkGho?.stakeApy || '0';
4038
if (stakedToken == 'ABPT V2') stakingAPY = stkBptV2?.stakeApy || '0';
4139

42-
const distributionEnded = Date.now() / 1000 > Number(stkGho?.distributionEnd);
43-
4440
return (
4541
<Box
4642
sx={(theme) => ({
@@ -79,11 +75,6 @@ export const StakingPanelNoWallet: React.FC<StakingPanelNoWalletProps> = ({
7975
<Typography variant="subheader1" color="text.primary" ml={2}>
8076
{stakedToken}
8177
</Typography>
82-
{stakedToken === 'GHO' && (
83-
<Box sx={{ mx: 2 }}>
84-
<MeritIncentivesButton symbol={stakedToken} market={CustomMarket.proto_mainnet_v3} />
85-
</Box>
86-
)}
8778
</Stack>
8879
</Box>
8980
<Box
@@ -94,36 +85,30 @@ export const StakingPanelNoWallet: React.FC<StakingPanelNoWalletProps> = ({
9485
alignItems: 'center',
9586
}}
9687
>
97-
<Box display={'flex'} alignItems={'center'}>
98-
<Typography variant="subheader2" color="text.secondary">
99-
<Trans>Staking APR</Trans>
100-
</Typography>
101-
102-
{distributionEnded && stakedToken === 'GHO' && (
103-
<TextWithTooltip wrapperProps={{ marginBottom: '1px' }} iconColor="warning.main">
104-
<Trans>
105-
The current incentives period, decided on by the Aave community, has ended.
106-
Governance is in the process on renewing, check for updates.{' '}
107-
<Link
108-
href="https://governance.aave.com"
109-
sx={{ textDecoration: 'underline' }}
110-
variant="caption"
111-
color="text.secondary"
112-
>
113-
Learn more
114-
</Link>
115-
.
116-
</Trans>
117-
</TextWithTooltip>
118-
)}
119-
</Box>
88+
{stakedToken !== 'GHO' && (
89+
<Box display={'flex'} alignItems={'center'}>
90+
<Typography variant="subheader2" color="text.secondary">
91+
<Trans>Staking APR</Trans>
92+
</Typography>
93+
</Box>
94+
)}
95+
{stakedToken !== 'GHO' && (
96+
<FormattedNumber
97+
value={parseFloat(stakingAPY || '0') / 10000}
98+
percent
99+
variant="secondary14"
100+
color="text.primary"
101+
/>
102+
)}
120103

121-
<FormattedNumber
122-
value={parseFloat(stakingAPY || '0') / 10000}
123-
percent
124-
variant="secondary14"
125-
color="text.primary"
126-
/>
104+
{stakedToken === 'GHO' && (
105+
<Box mt={1} display={'flex'} alignItems={'center'} flexDirection={'column'}>
106+
<Typography variant="subheader2" color="text.secondary">
107+
<Trans>Incentives APR</Trans>
108+
</Typography>
109+
<MeritIncentivesButton symbol={stakedToken} market={CustomMarket.proto_mainnet_v3} />
110+
</Box>
111+
)}
127112
</Box>
128113
</Box>
129114
);

0 commit comments

Comments
 (0)