Skip to content

Commit

Permalink
chore: Add pool migration notices (dm) (#3810)
Browse files Browse the repository at this point in the history
* fix: Exact out handler (#3793)

* fix: Don't use swap exit if 1st level pool token

* fix: buildExitExactTokensOut needs to have the bpt removed from tokenslist

* 1.115.1

* Feat: Avalanche Support (#3487)

* Feat: Avalanche Support

* Add Initial contract addresses and settings for Avalanche

* Add subgraphs and token addresses

* Use a different public RPC. Add multicall address

* Fix websocket URL, wallet enum and allowlist pools I created

* Add trust wallet network for gauges and icons

* Add avalanche network icon

* Use new BAL token

* Hide Avalanche in UI

* whitelist initial boosted pools

* Add pool factories. Remove pool with old BAL token from allowlist

* Load ComposableStable and FX pool types

* Add gyro to included pool types

* Fix pools protocol features after refactor

---------

Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Alberto Gualis <[email protected]>

* 1.115.2

* fix: Catch metadata error setting (#3794)

* 1.115.3

* Update SDK

* 1.115.4

* fix: Selected token in add liquidity form (#3788)

* 1.115.5

* update weekly gauges and whitelist for migration (#3796)

* 1.115.6

* Update `pools.ts` (#3786)

Co-authored-by: Gareth Fuller <[email protected]>

* 1.115.7

* fix: Wait for approvals in lock actions (#3802)

* 1.115.8

* fix: Only set single asset exit default to wrapped if swaps possible (#3803)

* 1.115.9

* fix: Multiple minor fixes (#3804)

* fix: Prevent any kind of negative input in TokenInput

* chore: Minor style fix in TokenSelectInput

* fix: Prevent pool creation before approval actions have loaded

* fix: Prevent pool creation if wallet on wrong network

* 1.115.10

* chore: Add deprecated pools data for Arbitrum pools

* fix: Revert previous fix

---------

Co-authored-by: Alberto Gualis <[email protected]>
Co-authored-by: Automated Version Bump <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Tim Robinson <[email protected]>
Co-authored-by: Max Korolev <[email protected]>
  • Loading branch information
7 people committed Jul 26, 2023
1 parent c66205a commit f3a1401
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 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.115.8",
"version": "1.115.10",
"engines": {
"node": "=16",
"npm": ">=8"
Expand Down
3 changes: 1 addition & 2 deletions src/components/inputs/TokenInput/TokenInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ const decimalLimit = computed<number>(() => token.value?.decimals || 18);
* METHODS
*/
function handleAmountChange(amount: InputValue) {
let safeAmount = overflowProtected(amount, decimalLimit.value);
safeAmount = bnum(safeAmount).abs().toString(); // Prevent any negative values
const safeAmount = overflowProtected(amount, decimalLimit.value);
emit('update:amount', safeAmount);
}
Expand Down
25 changes: 20 additions & 5 deletions src/lib/config/arbitrum/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,26 @@ const pools: Pools = {
'0x00fcd3d55085e998e291a0005cedecf58ac14c4000020000000000000000047f', // 50STG-50bbaUSD
],
Deprecated: {
// '0x178e029173417b1f9c8bc16dcec6f697bc323746000200000000000000000158': {
// newPool:
// '0x9fb7d6dcac7b6aa20108bad226c35b85a9e31b63000200000000000000000412 ',
// description: 'deprecatedPool.gaugeKilledReason',
// },
'0xcba9ff45cfb9ce238afde32b0148eb82cbe635620000000000000000000003fd': {
newPool:
'0xbe0f30217be1e981add883848d0773a86d2d2cd4000000000000000000000471',
description: 'deprecatedPool.hasNewPool.description',
},
'0xee02583596aee94cccb7e8ccd3921d955f17982a00000000000000000000040a': {
newPool:
'0xc6eee8cb7643ec2f05f46d569e9ec8ef8b41b389000000000000000000000475',
description: 'deprecatedPool.hasNewPool.description',
},
'0x5a7f39435fd9c381e4932fa2047c9a5136a5e3e7000000000000000000000400': {
newPool:
'0x45c4d1376943ab28802b995acffc04903eb5223f000000000000000000000470',
description: 'deprecatedPool.hasNewPool.description',
},
'0x567ecfcb22205d279bb8eed3e066989902bf03d5000000000000000000000452': {
newPool:
'0xbbf9d705b75f408cfcaee91da32966124d2c6f7d00000000000000000000047e',
description: 'deprecatedPool.hasNewPool.description',
},
},
GaugeMigration: {},
BoostedApr: [],
Expand Down
2 changes: 1 addition & 1 deletion src/locales/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@
"tooltip": "This pool has been deprecated. If you're a Liquidity Provider, please migrate to the new upgraded pool.",
"hasNewPool": {
"title": "Move your liquidity for future BAL incentives",
"description": "Liquidity mining incentives are being phased out for this pool, since the upgraded pool is now live. LPs are encouraged to unstake existing positions, withdraw their liquidity and add it to the"
"description": "Liquidity mining incentives are being phased out for this pool, since the upgraded pool is now live. LPs are encouraged to unstake existing positions, withdraw their liquidity and add it to the newly incentivized pool."
},
"generic": {
"title": "Move your liquidity for future BAL incentives",
Expand Down

1 comment on commit f3a1401

@vercel
Copy link

@vercel vercel bot commented on f3a1401 Jul 26, 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.