Skip to content

Commit

Permalink
Merge pull request #3546 from balancer/hf/migrate-liquidity
Browse files Browse the repository at this point in the history
Hf/migrate liquidity (DM)
  • Loading branch information
timjrobinson authored Jun 16, 2023
2 parents 06c4f71 + 725642e commit 6f937d2
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@balancer/frontend-v2",
"version": "1.107.3",
"version": "1.107.6",
"engines": {
"node": "=16",
"npm": ">=8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ const description = computed(() => {
return t('migrateCard.description');
});
const title = computed(() => {
const cardTitle = migrationInfo.value?.title;
if (cardTitle) {
return t(cardTitle);
}
return t('migrateCard.title');
});
</script>

<template>
Expand All @@ -104,7 +113,7 @@ const description = computed(() => {
<div class="flex flex-col items-center text-white">
<div class="container pt-5">
<div class="mb-2 text-3xl font-bold text-opacity-90">
{{ $t('migrateCard.title') }}
{{ title }}
</div>
<div class="mb-3 text-sm font-medium text-opacity-80">
{{ description }}
Expand Down
12 changes: 12 additions & 0 deletions src/lib/config/mainnet/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,18 @@ const pools: Pools = {
'0x04248aabca09e9a1a3d5129a7ba05b7f17de768400000000000000000000050e',
description: 'deprecatedPool.gaugeKilledReason',
},
'0x32296969ef14eb0c6d29669c550d4a0449130230000200000000000000000080': {
newPool:
'0xe0fcbf4d98f0ad982db260f86cf28b49845403c5000000000000000000000504',
description: 'deprecatedPool.newVersion',
title: 'announcement',
},
'0x9c6d47ff73e0f5e51be5fd53236e3f595c5793f200020000000000000000042c': {
newPool:
'0x9001cbbd96f54a658ff4e6e65ab564ded76a543100000000000000000000050a',
description: 'deprecatedPool.newVersion',
title: 'announcement',
},
},
GaugeMigration: {},
BrandedRedirect: {
Expand Down
4 changes: 3 additions & 1 deletion src/locales/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"account": "Account",
"action": "Action",
"actions": "Actions",
"announcement": "Announcement",
"actionSteps": {
"approve": {
"loadingLabel": "Confirm approval in wallet",
Expand Down Expand Up @@ -472,7 +473,8 @@
"title": "Move your liquidity for future BAL incentives",
"description": "Liquidity mining incentives are being phased out for this pool, since upgraded pools are now live. LPs are encouraged to unstake existing positions, withdraw their liquidity and add it to the newly incentivized pools."
},
"gaugeKilledReason": "This pool's gauge will soon be killed. A new version of this pool has been created that uses Aave v3."
"gaugeKilledReason": "This pool's gauge will soon be killed. A new version of this pool has been created that uses Aave v3.",
"newVersion": "A new version of this pool has been created that uses Aave v3"
},
"highPriceImpact": "High price impact",
"highPriceImpactDetailed": "This swap is significantly moving the market price.",
Expand Down
1 change: 1 addition & 0 deletions src/types/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export type DeprecatedDetails = {
newPool?: string;
suggestedPools?: string[];
description?: string;
title?: string;
};

export enum PoolMigrationType {
Expand Down

1 comment on commit 6f937d2

@vercel
Copy link

@vercel vercel bot commented on 6f937d2 Jun 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.