Skip to content

Commit

Permalink
Merge pull request #4584 from balancer/release/1.132.0
Browse files Browse the repository at this point in the history
Release 1.132.0 (dm)
  • Loading branch information
garethfuller authored Nov 13, 2023
2 parents 4e76aaf + aadebc6 commit 1c83bf8
Show file tree
Hide file tree
Showing 20 changed files with 99 additions and 17 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.131.6",
"version": "1.132.0",
"engines": {
"node": "=16",
"npm": ">=8"
Expand Down
2 changes: 1 addition & 1 deletion src/components/navs/AppNav/AppSidebar/SidebarContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const ecosystemLinks = [
{ label: t('blog'), url: 'https://medium.com/balancer-protocol' },
{ label: t('docs'), url: 'https://docs.balancer.fi/' },
{ label: t('governance'), url: 'https://vote.balancer.fi/#/' },
{ label: t('analytics'), url: 'https://dune.xyz/balancerlabs' },
{ label: t('analytics'), url: 'https://dune.com/balancer' },
{ label: t('forum'), url: 'https://forum.balancer.fi/' },
{
label: t('grants'),
Expand Down
2 changes: 1 addition & 1 deletion src/constants/links.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const EXTERNAL_LINKS = {
Balancer: {
Home: 'https://balancer.fi',
Analytics: 'https://dune.xyz/balancerlabs',
Analytics: 'https://dune.com/balancer',
BalForGas:
'https://docs.balancer.finance/core-concepts/bal-balancer-governance-token/bal-for-gas',
BugBounty: 'https://immunefi.com/bounty/balancer/',
Expand Down
8 changes: 8 additions & 0 deletions src/lib/config/arbitrum/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const pools: Pools = {
'Investment',
'StablePhantom',
'ComposableStable',
'GyroE',
],
Stable: {
AllowList: [
Expand Down Expand Up @@ -68,6 +69,8 @@ const pools: Pools = {
'0x6b9f3f6b9054a45702d3f2c6e3d32a60204934cb0000000000000000000004a7', // USDF/USDC
'0xead7e0163e3b33bf0065c9325fc8fb9b18cc82130000000000000000000004a9', // STAR/USDC-BPT
'0x3f09c77b19ad8bb527355ec32d5ce98421fec2e30000000000000000000004b2', // axlBAL/BAL
'0xe6d48f62a7d87e6bd13c283ca55068f0a73e6a5f0000000000000000000004cc', // USDV/FRAX
'0xe6fcb0ac7e05196b0870ae2aeb80dc9079ee1a250000000000000000000004cb', // USDV/USDC
],
},
Investment: {
Expand Down Expand Up @@ -127,6 +130,10 @@ const pools: Pools = {
'0x051ddfbd30bea7326646bd027a8a7ac0c3626f3c0002000000000000000004c4', // 50wstETH-50WETH
'0x7435e7250238e65d8ccb1b6398f402f7cb550d480002000000000000000004c7', // 80WBTC-20USDC
'0x8f97c6ddf16f75eefca0faf44864fc1f8fc9a1310002000000000000000004c8', // 50WBTC-50LINK
'0xd1882ca6a22f3df54cd675b300b815864de67b200001000000000000000004c9', // Savvy TriCrypto Pool
'0x32b1d14c6c31dff0407058586a01614da686dfcc0001000000000000000004ce', // 10BAL-20CRV-20SUSHI-25UNI-25GMX
'0xb52bd7459cb4754ec30e5b0691574159fb0812170002000000000000000004cd', // 50USDC-50USDT
'0x965353ce4d898e5367d0cdfefb5df1f0dca726690001000000000000000004ca', // 67BAL-29WBTC-4wstETH
],
},
Factories: {
Expand All @@ -146,6 +153,7 @@ const pools: Pools = {
'0xc7e5ed1054a24ef31d827e6f86caa58b3bc168d7': 'weightedPool', // weighted pool v4
'0x2498a2b0d6462d2260eac50ae1c3e03f4829ba95': 'composableStablePool', // ComposableStable V4
'0xa8920455934da4d853faac1f94fe7bef72943ef1': 'composableStablePool', // ComposableStable V5
'0xdca5f1f0d7994a32bc511e7dba0259946653eaf6': 'gyroE',
},
Stakable: {
VotingGaugePools: [
Expand Down
3 changes: 2 additions & 1 deletion src/lib/config/arbitrum/rateProviders.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { convertKeysToLowerCase } from '@/lib/utils/objects';
import { RateProviders } from '../types';

const rateProviders: RateProviders = {
Expand All @@ -15,4 +16,4 @@ const rateProviders: RateProviders = {
},
};

export default rateProviders;
export default convertKeysToLowerCase(rateProviders);
3 changes: 2 additions & 1 deletion src/lib/config/avalanche/rateProviders.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { convertKeysToLowerCase } from '@/lib/utils/objects';
import { RateProviders } from '../types';

const rateProviders: RateProviders = {
Expand All @@ -6,4 +7,4 @@ const rateProviders: RateProviders = {
},
};

export default rateProviders;
export default convertKeysToLowerCase(rateProviders);
5 changes: 5 additions & 0 deletions src/lib/config/base/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ const pools: Pools = {
'0x08ecc11058efd2acfd8d351ecda17bf46b5dea350002000000000000000000a9', // 50WETH-50USDbC
'0xa8ddab0f23e5be61e6857af78fcf61d1c0ea00590002000000000000000000ac', // 50USDbC-50STG
'0x4d8c33e4acaa3877511e5af6c36334dfe236e5c00001000000000000000000ad', // 33BAL-33USDC-33USDbC
'0x990a0f03c3ee397cafda61cad277de18280751fd0002000000000000000000b6', // 50WETH-50TAG
'0x031e96f4cebfef8829c2dabf3e45bc4886b771860002000000000000000000b7', // 50WETH-50USDbC
'0xee94d8df3ecf9158d1cd3d752c7b61fc4fd46b120002000000000000000000b8', // 50WETH-50USDbC
'0xa1d5264a2d3e2652756993c29729e092ca91d0d40001000000000000000000b9', // 40cbETH-40WETH-20rETH
'0x06eaace423af9a6bf6268d0421ac0e0b94c879460002000000000000000000ba', // 20WETH-80TAG
],
},
Factories: {
Expand Down
3 changes: 2 additions & 1 deletion src/lib/config/base/rateProviders.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { convertKeysToLowerCase } from '@/lib/utils/objects';
import { RateProviders } from '../types';

const rateProviders: RateProviders = {
Expand All @@ -6,4 +7,4 @@ const rateProviders: RateProviders = {
},
};

export default rateProviders;
export default convertKeysToLowerCase(rateProviders);
3 changes: 2 additions & 1 deletion src/lib/config/gnosis-chain/rateProviders.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { convertKeysToLowerCase } from '@/lib/utils/objects';
import { RateProviders } from '../types';

const rateProviders: RateProviders = {
Expand All @@ -6,4 +7,4 @@ const rateProviders: RateProviders = {
},
};

export default rateProviders;
export default convertKeysToLowerCase(rateProviders);
3 changes: 2 additions & 1 deletion src/lib/config/goerli/rateProviders.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { convertKeysToLowerCase } from '@/lib/utils/objects';
import { RateProviders } from '../types';

const rateProviders: RateProviders = {
Expand Down Expand Up @@ -30,4 +31,4 @@ const rateProviders: RateProviders = {
},
};

export default rateProviders;
export default convertKeysToLowerCase(rateProviders);
7 changes: 5 additions & 2 deletions src/lib/config/mainnet/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ const pools: Pools = {
'0x74e5e53056526b2609d82e85486005ef2a2db001000000000000000000000604', // TruMATIC-MATIC
'0x35c5c8c7b77942f9d44b535fa590d8b503b2b00c00000000000000000000060d', // DUSD/sDAI
'0xdd36fda7329291db8666540186cb36fcf0e36eac000000000000000000000612', // sDAI/DOLA
'0x3de1b8854ec4f1a6e45fc56b8008abb14eb103fb00000000000000000000061f', // USDV/sDAI
'0x9ca0ffcbae87a66a8f4604bfec724da04e2474ae000000000000000000000621', // USDV/USDC
],
},
Investment: {
Expand Down Expand Up @@ -227,6 +229,7 @@ const pools: Pools = {
'0x271d57ce059780462f89800141a089008ca78d4a000200000000000000000616', // 80PRTC-20WETH
'0xcf7b51ce5755513d4be016b0e28d6edeffa1d52a000200000000000000000617', // RDNT-WETH
'0x5b3b589b45531a2f0ae203d5044782ba46aefc4c00010000000000000000061a', // 17DNT-17CVC-17OCEAN-17POLY-17USDC-17ENJ
'0x58b645fa247b60f2cb896991fd8956146c9fcb4a00020000000000000000061d', // 80mevETH/20FOLD
],
},
Factories: {
Expand Down Expand Up @@ -441,10 +444,10 @@ const pools: Pools = {
'0xcf7b51ce5755513d4be016b0e28d6edeffa1d52a000200000000000000000617',
'0xb3b675a9a3cb0df8f66caf08549371bfb76a9867000200000000000000000611',
'0x01536b22ea06e4a315e3daaf05a12683ed4dc14c0000000000000000000005fc',
'0x39eb558131e5ebeb9f76a6cbf6898f6e6dce5e4e0002000000000000000005c8',
],
AllowList: [
'0x54ca50ee86616379420cc56718e12566aa75abbe000200000000000000000610', //wusdm/wsteth
'0x54ca50ee86616379420cc56718e12566aa75abbe000200000000000000000610', // wusdm/wsteth
'0x9ca0ffcbae87a66a8f4604bfec724da04e2474ae000000000000000000000621', // usdv/usdc
],
},
Metadata: {},
Expand Down
6 changes: 5 additions & 1 deletion src/lib/config/mainnet/rateProviders.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { convertKeysToLowerCase } from '@/lib/utils/objects';
import { RateProviders } from '../types';

const rateProviders: RateProviders = {
Expand All @@ -13,6 +14,9 @@ const rateProviders: RateProviders = {
'0xa13a9247ea42d743238089903570127dda72fe44': {
'0xa13a9247ea42d743238089903570127dda72fe44': true,
},
'0x24ae2da0f361aa4be46b48eb19c91e02c5e4f27e': {
'0xf518f2ebea5df8ca2b5e9c7996a2a25e8010014b': true,
},
};

export default rateProviders;
export default convertKeysToLowerCase(rateProviders);
6 changes: 5 additions & 1 deletion src/lib/config/optimism/rateProviders.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { convertKeysToLowerCase } from '@/lib/utils/objects';
import { RateProviders } from '../types';

const rateProviders: RateProviders = {
'*': {
'0x0000000000000000000000000000000000000000': true,
},
'0x9Bcef72be871e61ED4fBbc7630889beE758eb81D': {
'0x658843BB859B7b85cEAb5cF77167e3F0a78dFE7f': true,
},
};

export default rateProviders;
export default convertKeysToLowerCase(rateProviders);
13 changes: 13 additions & 0 deletions src/lib/config/polygon/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,19 @@ const pools: Pools = {
'0x1b82799aefc5049ea30a88b89171702b3cacfa74000200000000000000000c65', // 5020WETH-80BAL-50tetuBAL
'0x02db2baa9a2b90b931416703ee83a11943d5c571000200000000000000000c66', // 50wstETH-50MaticX
'0x7666f4daca9f9243a796aa429a7f43c77060470a000200000000000000000c68', // 10USDC-90SPHERE
'0xaecbdbeb6f4c1e4ee5b65e397249a49691b538fc000100000000000000000c6a', // 20USDC-50PAXG-10DAI-20USDT
'0x9105c470449921fb7061efceb318e30662d14621000100000000000000000c6c', // MATIC-ETH-BTC-MAI/StarSeeds-Protocol
'0x559abdfcde5d1970dc1c98992742e0beb7441c00000100000000000000000c6b', // TetuQI-VQi-Matic/StarSeeds-Protocol
'0xe603104baf3743ce615cce88f08f229f9620c924000200000000000000000c6d', // STARV2-StarSeeds-Protocol
'0xafb5d11629f3fe66ff2d2595180c1ed83a5e7b55000100000000000000000c6f', // money-machine-v1-starseeds-protocol
'0x1bc9a8f8855ca78896eee5d1d573fb5cbca2ce75000100000000000000000c6e', // LP-Test-StarSeeds-Protocol
'0x4a818e84e67866484abbf0003da1bed9cc2bbafc000100000000000000000c71', // TetuBal-BalwETH-Matic-StarSeeds_Protocol
'0x11ff73fa7ffa63d3de1d2e1afb77894274259d88000200000000000000000c75', // STARV2-Link/ArbitrageLP/StarSeedsProtocol
'0x17abb6ffe47e4ab120aa57de5e1c7fc6fe307633000200000000000000000c74', // STARV2-wstETH/ArbitrageLP/StarSeeds_Protocol
'0xb56ff8104cf3e42065b1613b4549aab12fa91646000200000000000000000c73', // STARV2-WBTC-arbitrage/StarSeeds-Protocol
'0x2e7f4db55bf11e0d8c25b0007728dfb2d138f904000100000000000000000c72', // STARV2-APR-FARM-V1-StarSeeds_Protocol
'0xd6e5704d4b43d79f1ea597a9c36105baf2dea993000100000000000000000c70', // Big-Three-V2-StarSeeds-Protocol
'0xf8c6f6223ee9d7fa55a508ef96f951f92f412612000200000000000000000c77', // 20WMATIC-80EAC
],
},
Factories: {
Expand Down
3 changes: 2 additions & 1 deletion src/lib/config/polygon/rateProviders.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { convertKeysToLowerCase } from '@/lib/utils/objects';
import { RateProviders } from '../types';

const rateProviders: RateProviders = {
Expand All @@ -12,4 +13,4 @@ const rateProviders: RateProviders = {
},
};

export default rateProviders;
export default convertKeysToLowerCase(rateProviders);
3 changes: 2 additions & 1 deletion src/lib/config/sepolia/rateProviders.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { convertKeysToLowerCase } from '@/lib/utils/objects';
import { RateProviders } from '../types';

const rateProviders: RateProviders = {
Expand All @@ -6,4 +7,4 @@ const rateProviders: RateProviders = {
},
};

export default rateProviders;
export default convertKeysToLowerCase(rateProviders);
3 changes: 2 additions & 1 deletion src/lib/config/zkevm/rateProviders.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { convertKeysToLowerCase } from '@/lib/utils/objects';
import { RateProviders } from '../types';

const rateProviders: RateProviders = {
Expand All @@ -6,4 +7,4 @@ const rateProviders: RateProviders = {
},
};

export default rateProviders;
export default convertKeysToLowerCase(rateProviders);
7 changes: 7 additions & 0 deletions src/lib/utils/objects.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { convertKeysToLowerCase } from './objects';

it('convertKeysToLowerCase', () => {
expect(convertKeysToLowerCase({ Address1: { ADDRESS2: true } })).toEqual({
address1: { address2: true },
});
});
30 changes: 30 additions & 0 deletions src/lib/utils/objects.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* Given an object like:
*
* const obj = { Address1: { ADDRESS2: true } }
*
* converts all its keys to lowercase:
*
* { address1: { address2: true } }
*
* User by config files to enable non-case-sensitive lookups.
*/
export function convertKeysToLowerCase(obj: any): any {
if (typeof obj !== 'object' || obj === null) {
return obj;
}

if (Array.isArray(obj)) {
return obj.map(item => convertKeysToLowerCase(item));
}

const newObj: { [key: string]: any } = {};
for (const key in obj) {
// eslint-disable-next-line no-prototype-builtins
if (obj.hasOwnProperty(key)) {
const newKey = key.toLowerCase();
newObj[newKey] = convertKeysToLowerCase(obj[key]);
}
}
return newObj;
}

1 comment on commit 1c83bf8

@vercel
Copy link

@vercel vercel bot commented on 1c83bf8 Nov 13, 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.