Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/locales/el/messages.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/locales/en/messages.js

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -627,10 +627,6 @@ msgstr "Data couldn't be fetched, please reload graph."
msgid "Dashboard"
msgstr "Dashboard"

#: src/modules/stkGho/StkGhoCard.tsx
msgid "Rewards for legacy Savings GHO have ended. Migrate to continue earning."
msgstr "Rewards for legacy Savings GHO have ended. Migrate to continue earning."

#: src/modules/dashboard/lists/BorrowAssetsList/BorrowAssetsList.tsx
msgid "Be careful - You are very close to liquidation. Consider depositing more collateral or paying down some of your borrowed positions"
msgstr "Be careful - You are very close to liquidation. Consider depositing more collateral or paying down some of your borrowed positions"
Expand Down Expand Up @@ -3992,6 +3988,10 @@ msgstr "Current APR"
msgid "Cancel order"
msgstr "Cancel order"

#: src/modules/stkGho/StkGhoCard.tsx
msgid "Rewards for legacy Savings GHO have ended. Withdraw and deposit to continue earning."
msgstr "Rewards for legacy Savings GHO have ended. Withdraw and deposit to continue earning."

#: src/components/ConnectWalletPaperStaking.tsx
msgid "Please, connect your wallet"
msgstr "Please, connect your wallet"
Expand Down Expand Up @@ -4314,7 +4314,6 @@ msgstr "Flashloan is disabled for this asset, hence this position cannot be migr

#: src/components/transactions/MigrateV3/MigrateV3Actions.tsx
#: src/components/transactions/StakingMigrate/StakingMigrateActions.tsx
#: src/modules/stkGho/StkGhoDepositRow.tsx
msgid "Migrate"
msgstr "Migrate"

Expand Down
2 changes: 1 addition & 1 deletion src/locales/es/messages.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/locales/fr/messages.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/modules/stkGho/StkGhoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export const StkGhoCard = () => {
</Box>

<Alert severity="warning" sx={{ width: '100%', mb: 4 }}>
<Trans>Rewards for legacy Savings GHO have ended. Migrate to continue earning.</Trans>
<Trans>
Rewards for legacy Savings GHO have ended. Withdraw and deposit to continue earning.
</Trans>
</Alert>

<StkGhoDepositPanel
Expand Down
10 changes: 5 additions & 5 deletions src/modules/stkGho/StkGhoDepositRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface StkGhoDepositRowProps {
export const StkGhoDepositRow = ({
availableToStake,
onDeposit,
onMigrate,
// onMigrate,
hasLegacyPosition = false,
stakedToken,
}: StkGhoDepositRowProps) => {
Expand All @@ -48,7 +48,7 @@ export const StkGhoDepositRow = ({
// When the user holds a legacy position, migration is the primary action:
// invert the emphasis so Migrate is contained and Deposit/Get GHO is outlined.
const depositVariant = hasLegacyPosition ? 'tertiary' : 'contained';
const migrateVariant = hasLegacyPosition ? 'contained' : 'tertiary';
// const migrateVariant = hasLegacyPosition ? 'contained' : 'tertiary';

const handleGetGho = () => {
openSwitch('', targetChainId);
Expand Down Expand Up @@ -121,16 +121,16 @@ export const StkGhoDepositRow = ({
>
{hasGho ? <Trans>Deposit</Trans> : <Trans>Get GHO</Trans>}
</Button>

<Button
{/*HotFix: Hide migrate button until contract is ready back*/}
{/* <Button
variant={migrateVariant}
onClick={onMigrate}
disabled={!hasLegacyPosition}
sx={depositRowActionSx}
data-cy={`migrateBtn_${stakedToken.toUpperCase()}`}
>
<Trans>Migrate</Trans>
</Button>
</Button> */}
</Box>
</Box>
</Box>
Expand Down
Loading