From 046798e5441c004f3812870e3ec62ed33698e5ba Mon Sep 17 00:00:00 2001 From: Gareth Fuller Date: Thu, 27 Jun 2024 13:59:24 +0100 Subject: [PATCH] feat: add fraxtal and mode networks (dm) (#5872) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 1.144.28 * 1.144.29 * Update pools.ts (#5660) * 1.144.30 * chore: Init (#5661) * 1.144.31 * chore: Add 50USDC-50USDT pool to polygon allowlist * 1.144.32 * chore: Add 33WMATIC-33WETH-33PORIGON pool to polygon allowlist (#5665) Co-authored-by: balopco * 1.144.33 * chore: Add 33WETH-33$KABOSUCHAN-33DOG pool to base allowlist * 1.144.34 * chore: Add 50GNO-50GNOBBY pool to gnosis-chain allowlist (#5669) Co-authored-by: Xeonus * 1.144.35 * weekly gauges (#5670) * weekly gauges * Update pools.ts * Update pools.ts * 1.144.36 * chore: Add 50USDC-50USDT pool to polygon allowlist * chore: Add 33GOLD-33USDC-33WETH pool to ethereum allowlist * 1.144.37 * chore: Add 50DOG-50USDbC pool to base allowlist * 1.144.38 * 1.144.39 * chore: Add 10WMATIC-10WBTC-10GHST-30STARV4-40STAR-L/StarSeeds_Protocol pool to polygon allowlist * chore: Add 50EAV-50USDT pool to polygon allowlist * Update pools.ts (#5678) * Update pools.ts * Update pools.ts * 1.144.40 * chore: Add 24WMATIC-8GHST-SS-16USDC-16GHST-8USD-SS-8STARV4-12WETH-8MATIC-SS/StarSeeds_Protocol pool to polygon allowlist * chore: Add 12WMATIC-10AIMX-10BONSAI-12USD-SS-18STARV4-12WETH-16STAR-L-10OM/StarSeeds_Protocol pool to polygon allowlist * chore: Add 15WMATIC-15GHST-SS-12AI-15USDC-15STARV4-10BULL-10STAR-L-8SFL/StarSeeds_Protocol pool to polygon allowlist * chore: Add 51WETH-49USDC pool to base allowlist * chore: Add 50WETH-50USDC pool to base allowlist * chore: Add 45DAI-55USDC pool to base allowlist * chore: Add 45WETH-55USDC pool to base allowlist * chore: Add 43WETH-57DAI pool to base allowlist * chore: Add 47WETH-53USDC pool to base allowlist * 1.144.41 * 1.144.42 * 1.144.43 * 1.144.44 * chore: Add 56WETH-44USDC pool to base allowlist * 1.144.45 * 1.144.46 * 1.144.47 * 1.144.48 * 1.144.49 * 1.144.50 * 1.144.51 * 1.144.52 * chore: Add 51WETH-49USDC pool to base allowlist * 1.144.53 * chore: Add 46WETH-54USDC pool to base allowlist * chore: Add 40WETH-60DAI pool to base allowlist * 1.144.54 * 1.144.55 * chore: Add 40WMATIC-8GHST-SS-8USD-SS-12STARV4-8STAR-L-8MATIC-SS-8BTC-SS-8ETH-SS/StarSeeds_Protocol pool to polygon allowlist * chore: Add 8GHST-SS-8USD-SS-12STARV4-8STAR-L-8MATIC-SS-8BTC-SS-8ETH-SS-40SFL/StarSeeds_Protocol pool to polygon allowlist * chore: Add ETHx/wstETH pool to arbitrum allowlist (#5707) Co-authored-by: balopco * 1.144.56 * 1.144.57 * 1.144.58 * chore: Increase Kelp points (#5720) * 1.144.59 * chore: Update points (#5721) * 1.144.60 * chore: update sdk version * chore: Add 8GHST-SS-40USDC-8USD-SS-12STARV4-8STAR-L-8MATIC-SS-8BTC-SS-8ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5698) Co-authored-by: balopco Co-authored-by: Alberto Gualis * 1.144.61 * chore: Add 8GHST-SS-40AIMX-8USD-SS-12STARV4-8STAR-L-8MATIC-SS-8BTC-SS-8ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5705) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.62 * chore: Add 8GHST-SS-8USD-SS-12STARV4-40WETH-8STAR-L-8MATIC-SS-8BTC-SS-8ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5699) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.63 * chore: Add 8GHST-SS-40GHST-8USD-SS-12STARV4-8STAR-L-8MATIC-SS-8BTC-SS-8ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5700) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.64 * chore: Add 8GHST-SS-40BONSAI-8USD-SS-12STARV4-8STAR-L-8MATIC-SS-8BTC-SS-8ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5701) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.65 * chore: Add 8GHST-SS-8USD-SS-12STARV4-8STAR-L-8MATIC-SS-8BTC-SS-40OM-8ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5702) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.66 * chore: Add 8GHST-SS-8USD-SS-12STARV4-40BULL-8STAR-L-8MATIC-SS-8BTC-SS-8ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5704) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.67 * chore: Add 8GHST-SS-40AI-8USD-SS-12STARV4-8STAR-L-8MATIC-SS-8BTC-SS-8ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5703) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.68 * chore: Add Vinu Farm pool to polygon allowlist (#5738) Co-authored-by: balopco * 1.144.69 * chore: Add wBTC/wETH/USDC pool to polygon allowlist (#5739) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.70 * Update pools.ts * 1.144.71 * Update to latest version (beta 19) * 1.144.72 * chore: Add 33USDC-33USDGLO-33SBC pool to polygon allowlist (#5770) Co-authored-by: balopco * 1.144.73 * chore: Add 20WMATIC-10GHST-SS-10USD-SS-15STARV4-15STAR-L-10MATIC-SS-10BTC-SS-10ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5759) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.74 * chore: Add 10GHST-SS-20USDC-10USD-SS-15STARV4-15STAR-L-10MATIC-SS-10BTC-SS-10ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5760) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.75 * chore: Add 10GHST-SS-20GHST-10USD-SS-15STARV4-15STAR-L-10MATIC-SS-10BTC-SS-10ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5761) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.76 * chore: Add 10GHST-SS-10USD-SS-15STARV4-20RAW-15STAR-L-10MATIC-SS-10BTC-SS-10ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5764) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.77 * chore: Add 10GHST-SS-20AI-10USD-SS-15STARV4-15STAR-L-10MATIC-SS-10BTC-SS-10ETH-SS/StarSeeds_Protocol pool to polygon allowlist (#5769) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.78 * chore: Add 20WMATIC-80RAW/StarSeeds_Protocol pool to polygon allowlist (#5765) Co-authored-by: balopco Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> * 1.144.79 * chore: Add RDNT-WETH pool to base allowlist (#5758) Co-authored-by: balopco * 1.144.80 * Update pools.ts * 1.144.81 * chore: Update error message (#5782) * 1.144.82 * chore: Remove pool allowlisting (#5722) * chore: Init * chore: Fix tests * delete: deprecated unit test --------- Co-authored-by: Alberto Gualis * 1.144.83 * chore: Replace TRM with hypernative (#5787) * 1.144.84 * chore: Add 50WBTC-50USDC pool to polygon allowlist * chore: Update points meta (#5793) * 1.144.85 * Polygon-stakable-tripools Making these stakable for direct wMATIC incentives https://app.balancer.fi/#/polygon/pool/0x4b7586a4f49841447150d3d92d9e9e000f766c30000000000000000000000e8a and https://app.balancer.fi/#/polygon/pool/0x1dcea0bfbbe6848f117640d534c9b60f41b9f2a8000100000000000000000ea1 * 1.144.86 * Update rateProviders.ts * 1.144.87 * chore: Update multiples (#5806) * 1.144.88 * 1.144.89 * chore: Add veTHX as ve8020 pool (#5811) * chore: Add veTHX * chore: Add to isVe8020 conditional * chore: Update metadata * 1.144.90 * feat: add fraxtal and mode networks * feat: add icons * arb stakable (#5814) * 1.144.91 * chore: Update multiple (#5848) * 1.144.92 * Update pools.ts * Update pools.ts * Update pools.ts * Update pools.ts * 1.144.93 * feat: add rpc urls * add csp v6 factory (#5852) * 1.144.94 * chore: Add multicalls * fix: Rate providers * chore: Add pool type labels * chore: Fix Frax tokens * chore: Update mode tokens * update graph keys * update balancer and gauges subgraphs * update aave subgraphs * add blocks subgraphs * weekly stakable (#5853) * weekly stakable * Update pools.ts * 1.144.95 * fix: unit test snapshot * 1.144.96 * Update pools.ts * 1.144.97 * fix: old pools charts * Make osETH pool stakable * 1.144.98 * Add weETH/wstETH on Optimsim * Update src/lib/config/optimism/pools.ts * 1.144.99 * 1.144.100 * Update pools.ts * Update pools.ts * Update pools.ts * 1.144.101 * Update pools.ts * Update pools.ts * 1.144.102 * 1.144.103 * add composable v6 to arb * 1.144.104 * update lowercase * fix csp v6 on arbitrum * 1.144.105 * chore: change fraxtal subgraph urls * fix: types * add composable v6 to mainnet * 1.144.106 * add pools to stakable * 1.144.107 * config gyro on gnosis * 1.144.108 * chore: Update points (#5870) * chore: Update points meta * chore: Undo key change * 1.144.109 * weekly stakable * Update pools.ts * Update pools.ts * Update pools.ts * Update pools.ts * 1.144.110 * fix: Tests --------- Co-authored-by: Automated Version Bump Co-authored-by: Alberto Gualis Co-authored-by: Xeonus Co-authored-by: balopco Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Xeonus Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> Co-authored-by: Tritium <11885129+Tritium-VLK@users.noreply.github.com> Co-authored-by: Alberto Gualis Co-authored-by: Zen-Maxi <85650601+Zen-Maxi@users.noreply.github.com> Co-authored-by: jogeorgeou Co-authored-by: Anastasios Co-authored-by: Fábio Mendes <43360747+mendesfabio@users.noreply.github.com> Co-authored-by: mendesfabio Co-authored-by: franzns <93920061+franzns@users.noreply.github.com> Co-authored-by: zekraken-bot --- package-lock.json | 36 +++---- package.json | 4 +- src/assets/data/contracts/fraxtal.json | 29 ++++++ src/assets/data/contracts/mode.json | 27 +++++ src/assets/images/icons/networks/fraxtal.svg | 1 + src/assets/images/icons/networks/mode.svg | 1 + .../contextual/pages/pool/PoolChart.vue | 54 +++++----- .../pages/vebal/LMVoting/GaugesTable.vue | 24 +++-- .../composables/useLMVotingFilters.spec.ts | 4 +- src/components/pool/PoolPageHeader.vue | 20 +--- src/components/web3/SanctionedWalletModal.vue | 2 +- .../web3/ThirdPartyServicesModal.vue | 2 +- .../queries/usePoolSnapshotsQuery.ts | 13 ++- src/composables/useDisabledJoinPool.spec.ts | 99 +------------------ src/composables/useDisabledJoinPool.ts | 40 +------- src/composables/useVotingPools.ts | 1 + src/constants/pool-lists/csp-issue.ts | 4 + src/lib/config/arbitrum/index.ts | 11 +-- src/lib/config/arbitrum/keys.ts | 1 + src/lib/config/arbitrum/pools.ts | 74 +++++++++++++- src/lib/config/avalanche/index.ts | 13 +-- src/lib/config/avalanche/keys.ts | 1 + src/lib/config/avalanche/pools.ts | 5 +- src/lib/config/base/pools.ts | 20 +++- src/lib/config/fraxtal/contracts.ts | 28 ++++++ src/lib/config/fraxtal/index.ts | 76 ++++++++++++++ src/lib/config/fraxtal/pools.ts | 62 ++++++++++++ src/lib/config/fraxtal/rateProviders.ts | 10 ++ src/lib/config/fraxtal/tokenlists.ts | 11 +++ src/lib/config/fraxtal/tokens.ts | 19 ++++ src/lib/config/gnosis-chain/index.ts | 9 +- src/lib/config/gnosis-chain/keys.ts | 7 ++ src/lib/config/gnosis-chain/pools.ts | 19 +++- src/lib/config/gnosis-chain/rateProviders.ts | 3 + src/lib/config/goerli/pools.ts | 3 +- src/lib/config/index.ts | 4 + src/lib/config/mainnet/index.ts | 13 +-- src/lib/config/mainnet/keys.ts | 2 +- src/lib/config/mainnet/pools.ts | 36 +++++-- src/lib/config/mode/contracts.ts | 29 ++++++ src/lib/config/mode/index.ts | 76 ++++++++++++++ src/lib/config/mode/pools.ts | 57 +++++++++++ src/lib/config/mode/rateProviders.ts | 10 ++ src/lib/config/mode/tokenlists.ts | 11 +++ src/lib/config/mode/tokens.ts | 19 ++++ src/lib/config/optimism/index.ts | 12 +-- src/lib/config/optimism/keys.ts | 7 ++ src/lib/config/optimism/pools.ts | 25 ++++- src/lib/config/polygon/index.ts | 12 +-- src/lib/config/polygon/keys.ts | 1 + src/lib/config/polygon/pools.ts | 65 +++++++++++- src/lib/config/sepolia/pools.ts | 3 +- src/lib/config/types.ts | 2 + src/lib/config/zkevm/pools.ts | 51 +++++++++- src/locales/default.json | 3 +- src/pages/privacy-policy.vue | 2 +- .../cross-chain-sync.provider.spec.ts | 12 ++- src/providers/wallet.provider.ts | 2 +- src/types/pools.ts | 1 + 59 files changed, 914 insertions(+), 274 deletions(-) create mode 100644 src/assets/data/contracts/fraxtal.json create mode 100644 src/assets/data/contracts/mode.json create mode 100644 src/assets/images/icons/networks/fraxtal.svg create mode 100644 src/assets/images/icons/networks/mode.svg create mode 100644 src/lib/config/fraxtal/contracts.ts create mode 100644 src/lib/config/fraxtal/index.ts create mode 100644 src/lib/config/fraxtal/pools.ts create mode 100644 src/lib/config/fraxtal/rateProviders.ts create mode 100644 src/lib/config/fraxtal/tokenlists.ts create mode 100644 src/lib/config/fraxtal/tokens.ts create mode 100644 src/lib/config/gnosis-chain/keys.ts create mode 100644 src/lib/config/mode/contracts.ts create mode 100644 src/lib/config/mode/index.ts create mode 100644 src/lib/config/mode/pools.ts create mode 100644 src/lib/config/mode/rateProviders.ts create mode 100644 src/lib/config/mode/tokenlists.ts create mode 100644 src/lib/config/mode/tokens.ts create mode 100644 src/lib/config/optimism/keys.ts diff --git a/package-lock.json b/package-lock.json index b106b713a0..9e81a94a0c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { "name": "@balancer/frontend-v2", - "version": "1.144.0", + "version": "1.144.110", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@balancer/frontend-v2", - "version": "1.144.0", + "version": "1.144.110", "license": "MIT", "devDependencies": { "@aave/protocol-js": "^4.3.0", "@balancer-labs/assets": "github:balancer-labs/assets#master", - "@balancer-labs/sdk": "^1.1.6-beta.14", + "@balancer-labs/sdk": "^1.1.6-beta.20", "@balancer-labs/typechain": "^1.0.0", "@balancer-labs/v2-deployments": "^3.2.0", "@cowprotocol/contracts": "^1.3.1", @@ -1602,12 +1602,12 @@ } }, "node_modules/@balancer-labs/sdk": { - "version": "1.1.6-beta.14", - "resolved": "https://registry.npmjs.org/@balancer-labs/sdk/-/sdk-1.1.6-beta.14.tgz", - "integrity": "sha512-JY5NPNdc/0/ne8xLhO0+IWUWd7ohetwRjQsogil6FA6cEEP0szNZG0u52IXTE4r5uemTmJXr3qGdl11uhBd8hw==", + "version": "1.1.6-beta.22", + "resolved": "https://registry.npmjs.org/@balancer-labs/sdk/-/sdk-1.1.6-beta.22.tgz", + "integrity": "sha512-UI5AQDovsft34cY+mNG0XgQGDeCccJY5q+Xc+xWoUf6GJRXeKfStbG0NtZd2XkXVYpLAjgHoehyTdz1+C/cCWw==", "dev": true, "dependencies": { - "@balancer-labs/sor": "^4.1.1-beta.16", + "@balancer-labs/sor": "^4.1.1-beta.17", "@ethersproject/abi": "^5.4.0", "@ethersproject/abstract-signer": "^5.4.0", "@ethersproject/address": "^5.4.0", @@ -1618,6 +1618,7 @@ "@ethersproject/contracts": "^5.4.0", "@ethersproject/providers": "^5.4.5", "axios": "^0.24.0", + "ethers": "^5", "graphql": "^15.6.1", "graphql-request": "^3.5.0", "json-to-graphql-query": "^2.2.4", @@ -1653,9 +1654,9 @@ } }, "node_modules/@balancer-labs/sor": { - "version": "4.1.1-beta.16", - "resolved": "https://registry.npmjs.org/@balancer-labs/sor/-/sor-4.1.1-beta.16.tgz", - "integrity": "sha512-EKS7J78r5jKDsGqOs2gzIyhOqYyDAmrwp/nY2bSsfymNXSTr7g3YS418UJl1hSQMBEeN4N2MnH0neM1oJxHHoQ==", + "version": "4.1.1-beta.17", + "resolved": "https://registry.npmjs.org/@balancer-labs/sor/-/sor-4.1.1-beta.17.tgz", + "integrity": "sha512-JcX/HeppyoIs+Sa3Z/pdZhqMOBAGajOwVkBkFA8rehd1K2qaU/k/a3OkbIidXjs4lQI9sJE1WO8RauCLtuLQfg==", "dev": true, "dependencies": { "isomorphic-fetch": "^2.2.1" @@ -29762,12 +29763,12 @@ } }, "@balancer-labs/sdk": { - "version": "1.1.6-beta.14", - "resolved": "https://registry.npmjs.org/@balancer-labs/sdk/-/sdk-1.1.6-beta.14.tgz", - "integrity": "sha512-JY5NPNdc/0/ne8xLhO0+IWUWd7ohetwRjQsogil6FA6cEEP0szNZG0u52IXTE4r5uemTmJXr3qGdl11uhBd8hw==", + "version": "1.1.6-beta.22", + "resolved": "https://registry.npmjs.org/@balancer-labs/sdk/-/sdk-1.1.6-beta.22.tgz", + "integrity": "sha512-UI5AQDovsft34cY+mNG0XgQGDeCccJY5q+Xc+xWoUf6GJRXeKfStbG0NtZd2XkXVYpLAjgHoehyTdz1+C/cCWw==", "dev": true, "requires": { - "@balancer-labs/sor": "^4.1.1-beta.16", + "@balancer-labs/sor": "^4.1.1-beta.17", "@ethersproject/abi": "^5.4.0", "@ethersproject/abstract-signer": "^5.4.0", "@ethersproject/address": "^5.4.0", @@ -29778,6 +29779,7 @@ "@ethersproject/contracts": "^5.4.0", "@ethersproject/providers": "^5.4.5", "axios": "^0.24.0", + "ethers": "^5", "graphql": "^15.6.1", "graphql-request": "^3.5.0", "json-to-graphql-query": "^2.2.4", @@ -29805,9 +29807,9 @@ } }, "@balancer-labs/sor": { - "version": "4.1.1-beta.16", - "resolved": "https://registry.npmjs.org/@balancer-labs/sor/-/sor-4.1.1-beta.16.tgz", - "integrity": "sha512-EKS7J78r5jKDsGqOs2gzIyhOqYyDAmrwp/nY2bSsfymNXSTr7g3YS418UJl1hSQMBEeN4N2MnH0neM1oJxHHoQ==", + "version": "4.1.1-beta.17", + "resolved": "https://registry.npmjs.org/@balancer-labs/sor/-/sor-4.1.1-beta.17.tgz", + "integrity": "sha512-JcX/HeppyoIs+Sa3Z/pdZhqMOBAGajOwVkBkFA8rehd1K2qaU/k/a3OkbIidXjs4lQI9sJE1WO8RauCLtuLQfg==", "dev": true, "requires": { "isomorphic-fetch": "^2.2.1" diff --git a/package.json b/package.json index f99b1bfdd5..9c8e68b9a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@balancer/frontend-v2", - "version": "1.144.0", + "version": "1.144.110", "engines": { "node": "=16", "npm": ">=8" @@ -42,7 +42,7 @@ "devDependencies": { "@aave/protocol-js": "^4.3.0", "@balancer-labs/assets": "github:balancer-labs/assets#master", - "@balancer-labs/sdk": "^1.1.6-beta.14", + "@balancer-labs/sdk": "^1.1.6-beta.20", "@balancer-labs/typechain": "^1.0.0", "@balancer-labs/v2-deployments": "^3.2.0", "@cowprotocol/contracts": "^1.3.1", diff --git a/src/assets/data/contracts/fraxtal.json b/src/assets/data/contracts/fraxtal.json new file mode 100644 index 0000000000..2876f7bf65 --- /dev/null +++ b/src/assets/data/contracts/fraxtal.json @@ -0,0 +1,29 @@ +{ + "ComposableStablePoolFactory": "0x4bdCc2fb18AEb9e2d281b0278D946445070EAda7", + "ManagedPoolFactory": "0x7A2535f5fB47b8e44c02Ef5D9990588313fe8F05", + "WeightedPoolFactory": "0x9dA18982a33FD0c7051B19F0d7C76F2d5E7e017c", + "BalancerQueries": "0x4132f7AcC9dB7A6cF7BE2Dd3A9DC8b30C7E6E6c8", + "BalancerRelayer": "0xb541765F540447646A9545E0A4800A0Bacf9E13D", + "BatchRelayerLibrary": "0x662112B8CB18889e81459b92CA0f894a2ef2c1B8", + "ProtocolFeePercentagesProvider": "0xf23b4DB826DbA14c0e857029dfF076b1c0264843", + "Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", + "Authorizer": "0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5", + "AuthorizerAdaptor": "0x36caC20dd805d128c1a6Dd16eeA845C574b5A17C", + "AuthorizerAdaptorEntrypoint": "0xb9F8AB3ED3F3aCBa64Bc6cd2DcA74B7F38fD7B88", + "AuthorizerWithAdaptorValidation": "0x6817149cb753BF529565B4D023d7507eD2ff4Bc0", + "ChildChainGauge": "0x4fb47126Fa83A8734991E41B942Ac29A3266C968", + "ChildChainGaugeFactory": "0xc3ccacE87f6d3A81724075ADcb5ddd85a8A1bB68", + "L2LayerZeroBridgeForwarder": "0xa523f47A933D5020b23629dDf689695AA94612Dc", + "ProtocolFeesCollector": "0xce88686553686DA562CE7Cea497CE749DA109f9F", + "ProtocolFeesWithdrawer": "0x85a80afee867aDf27B50BdB7b76DA70f1E853062", + "VotingEscrowDelegationProxy": "0xE3881627B8DeeBCCF9c23B291430a549Fc0bE5F7", + "BalancerHelpers": "0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9", + "BatchRelayerQueryLibrary": "0x4DdFc173C8F67808AE8F7913DccFfa6bdBFE5b0e", + "ChainlinkRateProviderFactory": "0x3f170631ed9821Ca51A59D996aB095162438DC10", + "GaugeWorkingBalanceHelper": "0x83E443EF4f9963C77bd860f94500075556668cb8", + "L2BalancerPseudoMinter": "0x9805dcfD25e6De36bad8fe9D3Fe2c9b44B764102", + "MockLiquidityBootstrappingPool": "0xaeace3B34BcA1BFe585e4B0Bb303e60e0771F139", + "NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x956CCab09898C0AF2aCa5e6C229c3aD4E93d9288", + "NullVotingEscrow": "0x5cF4928a3205728bd12830E1840F7DB85c62a4B9", + "ProtocolIdRegistry": "0x9dd5Db2d38b50bEF682cE532bCca5DfD203915E1" +} diff --git a/src/assets/data/contracts/mode.json b/src/assets/data/contracts/mode.json new file mode 100644 index 0000000000..084aa04f71 --- /dev/null +++ b/src/assets/data/contracts/mode.json @@ -0,0 +1,27 @@ +{ + "ComposableStablePoolFactory": "0x5DbAd78818D4c8958EfF2d5b95b28385A22113Cd", + "ManagedPoolFactory": "0x043A2daD730d585C44FB79D2614F295D2d625412", + "WeightedPoolFactory": "0xc3ccacE87f6d3A81724075ADcb5ddd85a8A1bB68", + "BalancerQueries": "0x36caC20dd805d128c1a6Dd16eeA845C574b5A17C", + "BalancerRelayer": "0xb541765F540447646A9545E0A4800A0Bacf9E13D", + "BatchRelayerLibrary": "0x662112B8CB18889e81459b92CA0f894a2ef2c1B8", + "ProtocolFeePercentagesProvider": "0x85a80afee867aDf27B50BdB7b76DA70f1E853062", + "Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", + "Authorizer": "0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5", + "AuthorizerAdaptor": "0xf23b4DB826DbA14c0e857029dfF076b1c0264843", + "AuthorizerAdaptorEntrypoint": "0x76578ecf9a141296Ec657847fb45B0585bCDa3a6", + "AuthorizerWithAdaptorValidation": "0x013D4382F291be5688AFBcc741Ee8A24C66B2C92", + "ChildChainGauge": "0xE3881627B8DeeBCCF9c23B291430a549Fc0bE5F7", + "ChildChainGaugeFactory": "0x4fb47126Fa83A8734991E41B942Ac29A3266C968", + "ProtocolFeesCollector": "0xce88686553686DA562CE7Cea497CE749DA109f9F", + "ProtocolFeesWithdrawer": "0x9Ac3E70dB606659Bf32D4BdFbb687AD193FD1F5B", + "VotingEscrowDelegationProxy": "0x9805dcfD25e6De36bad8fe9D3Fe2c9b44B764102", + "BalancerHelpers": "0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9", + "BatchRelayerQueryLibrary": "0x4DdFc173C8F67808AE8F7913DccFfa6bdBFE5b0e", + "ChainlinkRateProviderFactory": "0x96484f2aBF5e58b15176dbF1A799627B53F13B6d", + "L2BalancerPseudoMinter": "0x5cF4928a3205728bd12830E1840F7DB85c62a4B9", + "MockLiquidityBootstrappingPool": "0x197868C915E50cD7eB34EB2F56009E0BF9aa09EB", + "NoProtocolFeeLiquidityBootstrappingPoolFactory": "0xE42FFA682A26EF8F25891db4882932711D42e467", + "NullVotingEscrow": "0x9dd5Db2d38b50bEF682cE532bCca5DfD203915E1", + "ProtocolIdRegistry": "0xb9F8AB3ED3F3aCBa64Bc6cd2DcA74B7F38fD7B88" +} diff --git a/src/assets/images/icons/networks/fraxtal.svg b/src/assets/images/icons/networks/fraxtal.svg new file mode 100644 index 0000000000..215a9e24b9 --- /dev/null +++ b/src/assets/images/icons/networks/fraxtal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/images/icons/networks/mode.svg b/src/assets/images/icons/networks/mode.svg new file mode 100644 index 0000000000..42af10f83a --- /dev/null +++ b/src/assets/images/icons/networks/mode.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/contextual/pages/pool/PoolChart.vue b/src/components/contextual/pages/pool/PoolChart.vue index cec7a10462..57e20d55e2 100644 --- a/src/components/contextual/pages/pool/PoolChart.vue +++ b/src/components/contextual/pages/pool/PoolChart.vue @@ -240,15 +240,19 @@ function getFeesData( isAllTimeSelected: boolean, pariodLastSnapshotIdx: number ) { - const feesValues = periodSnapshots.map( - (snapshot, idx): readonly [string, number] => { + const feesValues = periodSnapshots + .map((snapshot, idx) => { const value = parseFloat(snapshot.swapFees); let prevValue: number; // get value of prev snapshot // if it is last value among all snapshots, then prev value is 0 if (idx === snapshotValues.value.length - 1) { - prevValue = 0; + if (isAllTimeSelected) { + return; + } else { + prevValue = 0; + } } // if it is last value among certain period snapshots, then we get prev value from all snapshots else if (idx === pariodLastSnapshotIdx) { prevValue = parseFloat(snapshotValues.value[idx + 1].swapFees); @@ -261,8 +265,8 @@ function getFeesData( value - prevValue, ]); return result; - } - ); + }) + .filter(Boolean) as (readonly [string, number])[]; // add 0 values in order to show chart properly if (periodSnapshots.length < 30) { @@ -296,23 +300,29 @@ function getVolumeData( isAllTimeSelected: boolean, pariodLastSnapshotIdx: number ): PoolChartData { - const volumeData = periodSnapshots.map((snapshot, idx) => { - const value = parseFloat(snapshot.swapVolume); - let prevValue: number; - - // get value of prev snapshot - if (idx === snapshotValues.value.length - 1) { - prevValue = 0; - } else if (idx === pariodLastSnapshotIdx) { - prevValue = parseFloat(snapshotValues.value[idx + 1].swapVolume); - } else { - prevValue = parseFloat(periodSnapshots[idx + 1].swapVolume); - } - return Object.freeze<[string, number]>([ - timestamps.value[idx], - value - prevValue, - ]); - }); + const volumeData = periodSnapshots + .map((snapshot, idx) => { + const value = parseFloat(snapshot.swapVolume); + let prevValue: number; + + // get value of prev snapshot + if (idx === snapshotValues.value.length - 1) { + if (isAllTimeSelected) { + return; + } else { + prevValue = 0; + } + } else if (idx === pariodLastSnapshotIdx) { + prevValue = parseFloat(snapshotValues.value[idx + 1].swapVolume); + } else { + prevValue = parseFloat(periodSnapshots[idx + 1].swapVolume); + } + return Object.freeze<[string, number]>([ + timestamps.value[idx], + value - prevValue, + ]); + }) + .filter(Boolean) as (readonly [string, number])[]; // add 0 values in order to show chart properly if (periodSnapshots.length < 30) { diff --git a/src/components/contextual/pages/vebal/LMVoting/GaugesTable.vue b/src/components/contextual/pages/vebal/LMVoting/GaugesTable.vue index d9aad09197..6aeeeecf6e 100644 --- a/src/components/contextual/pages/vebal/LMVoting/GaugesTable.vue +++ b/src/components/contextual/pages/vebal/LMVoting/GaugesTable.vue @@ -190,6 +190,14 @@ function getPickedTokens(tokens: VotingPool['tokens']) { ) .map(item => item.address); } + +function voteDisabledFor(pool: VotingPool): boolean { + return ( + hasUserVotes(pool) || + isVotingTimeLocked(pool.lastUserVoteTime) || + props.selectVotesDisabled + ); +}