Skip to content

Commit

Permalink
Merge branch 'release/1.17.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
garethfuller committed Aug 31, 2021
2 parents 2451166 + 9f7e534 commit cad2d9e
Show file tree
Hide file tree
Showing 18 changed files with 307 additions and 24 deletions.
10 changes: 6 additions & 4 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-labs/frontend-v2",
"version": "1.16.2",
"version": "1.17.0",
"engines": {
"node": "14.x",
"npm": ">=7"
Expand Down
184 changes: 184 additions & 0 deletions src/assets/images/icons/networks/arbitrum.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/components/navs/AppNav/AppNavActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ export default defineComponent({
account,
toggleWalletSelectModal,
isMainnet,
isPolygon
isPolygon,
isArbitrum
} = useWeb3();
// COMPUTED
const liquidityMiningSupported = computed(
() => isMainnet.value || isPolygon.value
() => isMainnet.value || isPolygon.value || isArbitrum.value
);
// METHODS
Expand Down
6 changes: 6 additions & 0 deletions src/components/navs/AppNav/AppNavNetworkSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ export default defineComponent({
name: 'Polygon',
subdomain: 'polygon',
key: '137'
},
{
id: 'arbitrum',
name: 'Arbitrum',
subdomain: 'arbitrum',
key: '42161'
}
];
Expand Down
7 changes: 3 additions & 4 deletions src/components/navs/AppNav/AppNavSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ export default defineComponent({
const {
explorerLinks,
account,
chainId,
disconnectWallet,
connector,
isV1Supported,
isEIP1559SupportedNetwork,
userNetworkConfig
userNetworkConfig,
appNetworkConfig
} = useWeb3();
const { ethereumTxType, setEthereumTxType } = useEthereumTxType();
Expand Down Expand Up @@ -262,7 +262,7 @@ export default defineComponent({
const connectorLogo = computed(() => getConnectorLogo(connector.value?.id));
const hideDisconnect = computed(() => connector.value?.id == 'gnosis');
const isGnosisSupportedNetwork = computed(() =>
GP_SUPPORTED_NETWORKS.includes(chainId.value)
GP_SUPPORTED_NETWORKS.includes(appNetworkConfig.chainId)
);
// METHODS
Expand Down Expand Up @@ -292,7 +292,6 @@ export default defineComponent({
// computed
account,
appTradeLiquidity,
chainId,
appTradeInterface,
networkName,
networkColorClass,
Expand Down
4 changes: 4 additions & 0 deletions src/constants/initialTokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@
"137": {
"input": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"output": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"
},
"42161": {
"input": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"output": "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8"
}
}
5 changes: 3 additions & 2 deletions src/constants/network.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
export type NetworkId = 1 | 3 | 4 | 5 | 42 | 137;
export type NetworkId = 1 | 3 | 4 | 5 | 42 | 137 | 42161;

export enum Network {
MAINNET = 1,
ROPSTEN = 3,
RINKEBY = 4,
GÖRLI = 5,
KOVAN = 42,
POLYGON = 137
POLYGON = 137,
ARBITRUM = 42161
}

export const APP_NETWORK_ID = Number(process.env.VUE_APP_NETWORK) as NetworkId;
6 changes: 5 additions & 1 deletion src/constants/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export const POOLS = {
'0xc66ba2b6595d3613ccab350c886ace23866ede24': 'stablePool',
'0x67d27634e44793fe63c467035e31ea8635117cd4': 'stablePool', // Metastable
'0x751dfdace1ad995ff13c927f6f761c6604532c79': 'stablePool', // Kovan
'0x590e544e7ca956bb878f8c873e82e65550d67d2f': 'stablePool' // Kovan Metastable
'0x590e544e7ca956bb878f8c873e82e65550d67d2f': 'stablePool', // Kovan Metastable
'0x7dfdef5f355096603419239ce743bfaf1120312b': 'weightedPool', // Arbitrum Weighted
'0xcf0a32bbef8f064969f21f7e02328fb577382018': 'weightedPool', // Arbitrum WeightedOracle
'0x2433477a10fc5d31b9513c638f19ee85caed53fd': 'stablePool', // Arbitrum Stable
'0xebfd5681977e38af65a7487dc70b8221d089ccad': 'stablePool' // Arbitrum MetaStable
}
};
9 changes: 9 additions & 0 deletions src/constants/tokenlists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,14 @@ export const TOKEN_LIST_MAP: TokenListMapByNetwork = {
External: [
'https://unpkg.com/[email protected]/build/quickswap-default.tokenlist.json'
]
},
'42161': {
Balancer: {
Default:
'https://storageapi.fleek.co/tomafrench-team-bucket/arbitrum.listed.tokenlist.json',
Vetted:
'https://storageapi.fleek.co/tomafrench-team-bucket/arbitrum.vetted.tokenlist.json'
},
External: []
}
};
14 changes: 14 additions & 0 deletions src/constants/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export const TOKENS = {
'137': {
WETH: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
BAL: '0x9a71012b13ca4d3d0cdc72a177df3ef03b0e76a3'
},
'42161': {
WETH: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
BAL: '0x040d1EdC9569d4Bab2D15287Dc5A4F10F56a56B8'
}
},
Prices: {
Expand All @@ -37,6 +41,16 @@ export const TOKENS = {
'0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
'0x04df6e4121c27713ed22341e7c7df330f56f289b':
'0x6b175474e89094c44da98b954eedeac495271d0f'
},
'42161': {
'0x82af49447d8a07e3bd95bd0d56f35241523fbab1':
'0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
'0x040d1edc9569d4bab2d15287dc5a4f10f56a56b8':
'0xba100000625a3754423978a60c9317c58a424e3d',
'0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f':
'0x2260fac5e5542a773aa44fbcfedf7c193bc2c599',
'0xff970a61a04b1ca14834a43f5de4533ebddb5cc8':
'0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
}
},
// TODO - remove once coingecko supports wstETH
Expand Down
Loading

4 comments on commit cad2d9e

@vercel
Copy link

@vercel vercel bot commented on cad2d9e Aug 31, 2021

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

app – ./

pm2.vercel.app
app.balancer.fi
app-git-master-balancer.vercel.app
app-balancer.vercel.app

@vercel
Copy link

@vercel vercel bot commented on cad2d9e Aug 31, 2021

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on cad2d9e Aug 31, 2021

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on cad2d9e Aug 31, 2021

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.