Skip to content

Commit

Permalink
hotfix: Add warning to FX pools (dm) (#4612)
Browse files Browse the repository at this point in the history
* chore: Add STARV2-MAI/Arbitrage/StarSeeds_Protocol pool to polygon allowlist (#4588)

Co-authored-by: balopco <[email protected]>

* 1.132.1

* chore: Add STARV2-Tetu/Arbitrage/StarSeeds_Protocol pool to polygon allowlist (#4590)

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

* 1.132.2

* chore: Add 33wstETH-33tetuBAL-BALWETH-33STARV2 pool to polygon allowlist (#4591)

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

* 1.132.3

* chore: Add JARVIS-ETH 8020 pool to polygon allowlist (#4587)

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

* 1.132.4

* chore: Add 80OETH/20WETH pool to ethereum allowlist (#4592)

Co-authored-by: balopco <[email protected]>

* 1.132.5

* chore: Add STARV3/FeeV2/StarSeeds_Protocol pool to polygon allowlist (#4604)

Co-authored-by: balopco <[email protected]>

* 1.132.6

* chore: Add STARV3-TETUQI/17-83/StarSeeds_Protocol pool to polygon allowlist (#4601)

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

* 1.132.7

* chore: Add STARV3-MAI/50-50/StarSeeds_Protocol pool to polygon allowlist (#4598)

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

* 1.132.8

* chore: Add STARV3-TETU/50-50/StarSeeds_Protocol pool to polygon allowlist (#4602)

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

* 1.132.9

* chore: Add 1WMATIC-99waWMATIC pool to polygon allowlist (#4597)

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

* 1.132.10

* Allowlist STARV3-LINK/65-35/StarSeeds_Protocol pool (#4599)

* chore: Add STARV3-LINK/65-35/StarSeeds_Protocol pool to polygon allowlist

* Init mocked dependencies in unit tests

* Clean unit tests

* init default dependencies in test

* init default dependencies in test

---------

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

* 1.132.11

* chore: Add STARV3-STARV2/9-91/StarSeeds_Protocol pool to polygon allowlist (#4603)

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

* 1.132.12

* chore: Add STARV3-XTETUBAL-BALWETH-USDC/Arbitrage/StarSeeds_Protocol pool to polygon allowlist (#4606)

Co-authored-by: balopco <[email protected]>

* 1.132.13

* chore: Add STARV3-TETUBAL-TETUBAL-BALWETH-XTETUBAL-MIMATIC-WMATIC pool to polygon allowlist (#4605)

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

* 1.132.14

* chore: Add STARV3-STARV2/3-97/StarSeeds_Protocol pool to polygon allowlist (#4600)

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

* 1.132.15

* chore: Add STARV3-WETH/65-35/StarSeeds_Protocol pool to polygon allowlist (#4596)

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

* 1.132.16

* chore: Add 2CLP-TVaDAIv2-DAI pool to polygon allowlist (#4586)

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

* 1.132.17

* chore: Add STARV3-WETH/65-35/StarSeeds_Protocol pool to polygon allowlist (#4595)

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

* 1.132.18

* chore: Add STARV3-WBTC/65-35/StarSeeds_Protocol  pool to polygon allowlist (#4594)

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

* 1.132.19

* chore: Add STARV3-WMATIC/80-20/StarSeeds_Protocol pool to polygon allowlist (#4593)

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

* 1.132.20

* chore: Add STARV3-XTETUBAL-BALWETH/Arbitrage/StarSeeds_Protocol pool to polygon allowlist (#4608)

Co-authored-by: balopco <[email protected]>

* 1.132.21

* chore: Add 50fireEP-50ICHI_Vault_LP pool to polygon allowlist (#4609)

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

* 1.132.22

* chore: Add warning to FX pools

* chore: Add link to tweet

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: balopco <[email protected]>
Co-authored-by: Automated Version Bump <[email protected]>
Co-authored-by: Alberto Gualis <[email protected]>
Co-authored-by: ZeKraken <[email protected]>
Co-authored-by: Alberto Gualis <[email protected]>
  • Loading branch information
7 people authored Nov 16, 2023
1 parent 1c83bf8 commit b7db50e
Show file tree
Hide file tree
Showing 26 changed files with 441 additions and 376 deletions.
675 changes: 336 additions & 339 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@balancer/frontend-v2",
"version": "1.132.0",
"version": "1.132.22",
"engines": {
"node": "=16",
"npm": ">=8"
Expand Down Expand Up @@ -152,7 +152,7 @@
"vite-plugin-imagemin": "^0.6.1",
"vite-plugin-node-polyfills": "^0.7.0",
"vite-plugin-sentry": "^1.1.6",
"vitest": "^0.31.4",
"vitest": "^0.34.6",
"vitest-mock-extended": "^1.1.0",
"vue": "^3.3.4",
"vue-echarts": "^6.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { GqlChain } from '@/services/api/graphql/generated/api-types';
import { LocationQuery, createRouter, createWebHistory } from 'vue-router';
import { aVotingPool } from '../../MultiVoting/voting-pool.builders';
import { useLMVotingFilters } from './useLMVotingFilters';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';

initDependenciesWithDefaultMocks();

function buildRouterMock() {
const router = createRouter({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
UseVotingActionParams,
} from './useVotingActions';
import { TransactionResponse } from '@ethersproject/abstract-provider';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';

silenceConsoleLog(vi, message => message.startsWith('Voting'));

Expand Down Expand Up @@ -70,6 +71,8 @@ function createVotingActions(
return votingActions;
}

initDependenciesWithDefaultMocks();

describe('Action label', () => {
test('when there is only one expired pool selected', () => {
const request = [expiredGaugeVote];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
import { VotingPool } from '@/composables/queries/useVotingPoolsQuery';
import { oneDayInMs, toUnixTimestamp } from '@/composables/useTime';
import { POOLS } from '@/constants/pools';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';
import { mountComposableWithDefaultTokensProvider as mountComposable } from '@tests/mount-helpers';
import { useVotingWarnings } from './useVotingWarnings';

Expand All @@ -13,6 +14,8 @@ function mountVotingWarnings(votingPool: VotingPool) {
return result;
}

initDependenciesWithDefaultMocks();

describe('lpVoteOverLimitWarning', () => {
test('when next LP period votes are lesser than current gauge votes', () => {
const votingPool = aVotingPool({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
import { randomAddress } from '@tests/unit/builders/address';
import { mockVotingPools } from '@/composables/queries/__mocks__/useVotingPoolsQuery';
import { aVotingPool } from '../MultiVoting/voting-pool.builders';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';

async function mountVoting() {
// Reset global state before each test
Expand All @@ -18,6 +19,8 @@ async function mountVoting() {
return result;
}

initDependenciesWithDefaultMocks();

vi.mock('@/composables/queries/useExpiredGaugesQuery');
vi.mock('@/composables/queries/useVotingPoolsQuery');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { initBalancerSdkWithDefaultMocks } from '@/dependencies/balancer-sdk.mocks';
import { initEthersContractWithDefaultMocks } from '@/dependencies/EthersContract.mocks';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';
import {
AmountIn,
provideJoinPool,
Expand All @@ -13,8 +12,7 @@ import { groAddress, wethAddress } from '@tests/unit/builders/address';
import { anAmountIn } from '@tests/unit/builders/join-exit.builders';
import { useAddLiquidityTotals } from './useAddLiquidityTotals';

initBalancerSdkWithDefaultMocks();
initEthersContractWithDefaultMocks();
initDependenciesWithDefaultMocks();

async function mountAddLiquidityTotals(pool: Pool, amountsIn: AmountIn[] = []) {
const { result } = await mountComposable(() => useAddLiquidityTotals(pool), {
Expand Down
4 changes: 2 additions & 2 deletions src/composables/approvals/useTokenApprovalActions.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import useTokenApprovalActions from '@/composables/approvals/useTokenApprovalActions';
import { initMulticallWithDefaultMocks } from '@/dependencies/multicall.mocks';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';
import { vaultAddress } from '@/services/contracts/vault.service.mocks';
import { mountComposableWithFakeTokensProvider } from '@tests/mount-helpers';
import { daiAddress } from '@tests/unit/builders/address';
import { ApprovalAction } from './types';

initMulticallWithDefaultMocks();
initDependenciesWithDefaultMocks();

const amountsToApprove = [
{ address: daiAddress, amount: '3' },
Expand Down
3 changes: 3 additions & 0 deletions src/composables/queries/useAllowancesQuery.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';
import { initMulticall } from '@/dependencies/multicall';
import { generateMulticallMock } from '@/dependencies/multicall.mocks';
import { TokenInfoMap } from '@/types/TokenList';
Expand All @@ -11,6 +12,8 @@ import {
import { Ref, ref } from 'vue';
import useAllowancesQuery from './useAllowancesQuery';

initDependenciesWithDefaultMocks();

test('Returns token allowances from balancer SDK', async () => {
const tokens: Ref<TokenInfoMap> = ref({
[nativeAssetAddress]: aTokenInfo({ address: nativeAssetAddress }),
Expand Down
3 changes: 3 additions & 0 deletions src/composables/queries/usePoolGaugesQuery.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import {
mountComposableWithDefaultTokensProvider as mountComposable,
waitForQueryData,
} from '@tests/mount-helpers';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';

initDependenciesWithDefaultMocks();

test('Returns pool gauges', async () => {
const pool = aWeightedPool();
Expand Down
6 changes: 2 additions & 4 deletions src/composables/queries/usePoolsQuery.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { initMulticallWithDefaultMocks } from '@/dependencies/multicall.mocks';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';
import { initPoolsFallbackRepository } from '@/dependencies/PoolsFallbackRepository';
import {
defaultPool1,
defaultPool2,
initPoolsFallbackRepositoryWithDefaultMocks,
} from '@/dependencies/PoolsFallbackRepository.mocks';
import {
mountComposableWithFakeTokensProvider as mountComposable,
Expand All @@ -12,8 +11,7 @@ import {
import { anAprBreakdown } from '@tests/unit/builders/sdk-pool.builders';
import usePoolsQuery from './usePoolsQuery';

initPoolsFallbackRepositoryWithDefaultMocks();
initMulticallWithDefaultMocks();
initDependenciesWithDefaultMocks();

async function mountPoolsQuery(poolsSortField = '') {
const filterOptions = computed(() => ({ sortField: poolsSortField }));
Expand Down
8 changes: 3 additions & 5 deletions src/composables/swap/useJoinExit.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { BigNumber, parseFixed } from '@ethersproject/bignumber';
import { computed, ref } from 'vue';

import { initBalancerSdkWithDefaultMocks } from '@/dependencies/balancer-sdk.mocks';
import useJoinExit from '@/composables/swap/useJoinExit';
import { noop } from 'lodash';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';
import { mountComposableWithFakeTokensProvider as mountComposable } from '@tests/mount-helpers';
import { initEthersContractWithDefaultMocks } from '@/dependencies/EthersContract.mocks';
import { noop } from 'lodash';

initBalancerSdkWithDefaultMocks();
initEthersContractWithDefaultMocks();
initDependenciesWithDefaultMocks();

const mockAmount = BigNumber.from(10);
vi.mock('@/lib/balancer.sdk', () => {
Expand Down
3 changes: 3 additions & 0 deletions src/composables/swap/useSor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { SorManager } from '@/lib/utils/balancer/helpers/sor/sorManager';
import { configService } from '@/services/config/config.service';
import { rpcProviderService } from '@/services/rpc-provider/rpc-provider.service';
import { SwapType } from '@balancer-labs/sdk';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';

initDependenciesWithDefaultMocks();

vi.mock('@/lib/utils/balancer/helpers/sor/sorManager');

Expand Down
3 changes: 3 additions & 0 deletions src/composables/swap/useSwapAssets.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';
import { mountComposable } from '@tests/mount-helpers';
import { useSwapAssets } from './useSwapAssets';

const defaultOutputAddress = '0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb';
const balAddress = '0x9a71012b13ca4d3d0cdc72a177df3ef03b0e76a3';

initDependenciesWithDefaultMocks();

test('Initializes local storage with default assets', async () => {
const { result } = mountComposable(() => useSwapAssets());

Expand Down
12 changes: 5 additions & 7 deletions src/composables/swap/useSwapping.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,22 @@ import useSwapping from '@/composables/swap/useSwapping';

import * as useSor from '@/composables/swap/useSor';
import { initBalancerSDK } from '@/dependencies/balancer-sdk';
import { initEthersContractWithDefaultMocks } from '@/dependencies/EthersContract.mocks';
import { initOldMulticallerWithDefaultMocks } from '@/dependencies/OldMulticaller.mocks';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';
import { provideTokenLists } from '@/providers/token-lists.provider';
import { TokensResponse } from '@/providers/tokens.provider';
import {
UserSettingsProviderSymbol,
UserSettingsResponse,
} from '@/providers/user-settings.provider';
import { BalancerSDK, SwapInfo } from '@balancer-labs/sdk';
import { BigNumber } from '@ethersproject/bignumber';
import { mountComposableWithFakeTokensProvider as mountComposable } from '@tests/mount-helpers';
import { wethAddress } from '@tests/unit/builders/address';
import { DeepPartial } from '@tests/unit/types';
import { mock, mockDeep } from 'vitest-mock-extended';
import mockSorOutput from './__mocks__/mockSorOutput';
import { TokensResponse } from '@/providers/tokens.provider';
import { DeepPartial } from '@tests/unit/types';
import { wethAddress } from '@tests/unit/builders/address';

initOldMulticallerWithDefaultMocks();
initEthersContractWithDefaultMocks();
initDependenciesWithDefaultMocks();

const mockTokenInfoIn = {
chainId: 5,
Expand Down
3 changes: 3 additions & 0 deletions src/composables/usePoolRisks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import {
reaperBoostedPoolId,
tetuBoostedPoolId,
} from '@/lib/config/goerli/pools';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';

initDependenciesWithDefaultMocks();

function withGoerli() {
networkId.value = Network.GOERLI;
Expand Down
3 changes: 3 additions & 0 deletions src/composables/useVeBAL.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { mountComposableWithDefaultTokensProvider as mountComposable } from '@te
import useVeBal from './useVeBAL';
import { networkId } from './useNetwork';
import { Network } from '@/lib/config/types';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';

initDependenciesWithDefaultMocks();

function mountUseVeBAL() {
const { result } = mountComposable(() => useVeBal());
Expand Down
3 changes: 3 additions & 0 deletions src/composables/useVotingPools.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';
import { mount } from '@tests/mount-composable-tester';

import useVotingPools from './useVotingPools';

initDependenciesWithDefaultMocks();

vi.mock('@/composables/queries/useVotingPoolsQuery');
vi.mock('@/services/web3/useWeb3');

Expand Down
5 changes: 5 additions & 0 deletions src/lib/config/avalanche/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ const pools: Pools = {
},
Issues: {
[PoolWarning.CspPoolVulnWarning]: CSP_ISSUE_POOL_IDS[Network.AVALANCHE],
[PoolWarning.FxPoolVulnWarning]: [
'0x55bec22f8f6c69137ceaf284d9b441db1b9bfedc000200000000000000000011',
'0x66bb9d104c55861feb3ec3559433f01f6373c96600020000000000000000002a',
'0xad0e5e0778cac28f1ff459602b31351871b5754a000200000000000000000029',
],
},
};

Expand Down
6 changes: 6 additions & 0 deletions src/lib/config/mainnet/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ const pools: Pools = {
'0xcf7b51ce5755513d4be016b0e28d6edeffa1d52a000200000000000000000617', // RDNT-WETH
'0x5b3b589b45531a2f0ae203d5044782ba46aefc4c00010000000000000000061a', // 17DNT-17CVC-17OCEAN-17POLY-17USDC-17ENJ
'0x58b645fa247b60f2cb896991fd8956146c9fcb4a00020000000000000000061d', // 80mevETH/20FOLD
'0x7056c8dfa8182859ed0d4fb0ef0886fdf3d2edcf000200000000000000000623', // 80OETH/20WETH
],
},
Factories: {
Expand Down Expand Up @@ -647,6 +648,11 @@ const pools: Pools = {
'0x4fd4687ec38220f805b6363c3c1e52d0df3b5023000200000000000000000473',
],
[PoolWarning.CspPoolVulnWarning]: CSP_ISSUE_POOL_IDS[Network.MAINNET],
[PoolWarning.FxPoolVulnWarning]: [
'0x55bec22f8f6c69137ceaf284d9b441db1b9bfedc0002000000000000000003cd',
'0x66bb9d104c55861feb3ec3559433f01f6373c9660002000000000000000003cf',
'0xad0e5e0778cac28f1ff459602b31351871b5754a0002000000000000000003ce',
],
},
};

Expand Down
32 changes: 32 additions & 0 deletions src/lib/config/polygon/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,26 @@ const pools: Pools = {
'0x2e7f4db55bf11e0d8c25b0007728dfb2d138f904000100000000000000000c72', // STARV2-APR-FARM-V1-StarSeeds_Protocol
'0xd6e5704d4b43d79f1ea597a9c36105baf2dea993000100000000000000000c70', // Big-Three-V2-StarSeeds-Protocol
'0xf8c6f6223ee9d7fa55a508ef96f951f92f412612000200000000000000000c77', // 20WMATIC-80EAC
'0xed6850f0400c111e49ee3f4bea44d19b438b4611000200000000000000000c79', // 2CLP-TVaDAIv2-DAI
'0xa5b7c3e5fdd26bb99a50a5dcb32b16bfa5060595000200000000000000000c7a', // JARVIS-ETH 8020
'0x99d32658012027ff500a1446c35a8e5419ba45c0000100000000000000000c7e', // 33wstETH-33tetuBAL-BALWETH-33STARV2
'0xdc8787134cf477f1e70c5b0ae402e57ea198dbd0000200000000000000000c7d', // STARV2-Tetu/Arbitrage/StarSeeds_Protocol
'0xd04ad53b5d81bd9d129aaef7731eee1843c8dae0000200000000000000000c7b', // STARV2-MAI/Arbitrage/StarSeeds_Protocol
'0x3443e3942053fc44ee07b7ad62a04276dd52b4a9000200000000000000000c7f', // STARV3-WMATIC/80-20/StarSeeds_Protocol
'0x5367e1f7f691c6be07a16ded1c9b05f3cf38b217000200000000000000000c80', // STARV3-WBTC/65-35/StarSeeds_Protocol
'0x140bec9e5749dfd6ea04c8587a87027617c381d2000200000000000000000c81', // STARV3-WETH/65-35/StarSeeds_Protocol
'0x3f33dc5e2e6dd9c3619ba3aed37f8c5568161ab9000200000000000000000c85', // STARV3-STARV2/3-97/StarSeeds_Protocol
'0x376bb22376e0c57b4dd50efee1bd3c986978a490000200000000000000000c88', // STARV3-STARV2/9-91/StarSeeds_Protocol
'0x2dc47abce2a3d5644139c663493c2bb825d2b103000200000000000000000c84', // STARV3-LINK/65-35/StarSeeds_Protocol
'0x2122186d224a586246a534577aa14c8c77a7a5f2000200000000000000000c82', // 1WMATIC-99waWMATIC
'0x84ff1ba4faf7d74bc8e66693b2d3905424b93327000200000000000000000c87', // STARV3-TETU/50-50/StarSeeds_Protocol
'0x41682f67b30d011fcb045550d572655b22040985000200000000000000000c83', // STARV3-MAI/50-50/StarSeeds_Protocol
'0x122c69609ea77758694050d6aca03dc95cbc6c30000200000000000000000c86', // STARV3-TETUQI/17-83/StarSeeds_Protocol
'0x432d58fe7a40c5cf159c229ee5874f1f0ce44c91000100000000000000000c89', // STARV3/FeeV2/StarSeeds_Protocol
'0x5cd533140618743be9b2bcbf91f50238f3479578000100000000000000000c8a', // STARV3-TETUBAL-TETUBAL-BALWETH-XTETUBAL-MIMATIC-WMATIC
'0x0d8573d0b4542797be945f741cb8e6b7117dc751000100000000000000000c8b', // STARV3-XTETUBAL-BALWETH-USDC/Arbitrage/StarSeeds_Protocol
'0x2d753d4ebf91b137b161b69bdb8638cf4b80c4a5000200000000000000000c8d', // 50fireEP-50ICHI_Vault_LP
'0x0abc5370a1bced0e78222dba60ca69189aad7ed9000200000000000000000c8c', // STARV3-XTETUBAL-BALWETH/Arbitrage/StarSeeds_Protocol
],
},
Factories: {
Expand Down Expand Up @@ -413,6 +433,18 @@ const pools: Pools = {
'0xb4670d1389c758e4380c4211bcbc85342688b9c50002000000000000000003d8',
],
[PoolWarning.CspPoolVulnWarning]: CSP_ISSUE_POOL_IDS[Network.POLYGON],
[PoolWarning.FxPoolVulnWarning]: [
'0x216b176513c500dbe1d677939103e350a9373a390002000000000000000008da',
'0x726e324c29a1e49309672b244bdc4ff62a270407000200000000000000000702',
'0x7e8c6d9db2d1b522f32d050257df0dc524593a07000200000000000000000c4e',
'0x835ec7212c6075b85730d504c8a19a7116db81b3000200000000000000000703',
'0x8630bd161689403aea635f830e9ef5496e7e0bc1000200000000000000000c35',
'0x882c7a84231484b3e9f3fd45ac04b1eb5d35b076000200000000000000000a91',
'0x8a8275eda88a6f4cc2fa6a41837c1b5dc7a3b095000200000000000000000c36',
'0xe5093fa1f24619eb16c704a808fad66fb65a1305000200000000000000000c50',
'0xe93f9dd10b0ba38831cba4d5a9d092e22db130ec000200000000000000000c44',
'0xfd24afa5416c8de94fdbaf344840f524155a4dd00002000000000000000008db',
],
},
};

Expand Down
4 changes: 4 additions & 0 deletions src/locales/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,10 @@
"title": "A vulnerability has been discovered that affects this pool. Existing liquidity providers should remove liquidity immediately. <a href=\"https://forum.balancer.fi/t/vulnerability-found-in-some-pools/5102/1\" target=\"blank\" rel=\"noreferrer\" class=\"underline\">Read more</a>",
"tooltip": "A vulnerability has been discovered that affects this pool. Existing liquidity providers should remove liquidity immediately.",
"generalTitle": "A vulnerability has been discovered that affects a number of pools. Existing liquidity providers should remove liquidity immediately."
},
"fxPoolVulnWarning": {
"title": "Xave's FXPools are potentially affected by a bug. Xave recommends that LPs temporarily remove liquidity from this pool. <a href=\"https://twitter.com/XaveFinance/status/1725089131330756628\" target=\"blank\" rel=\"noreferrer\" class=\"underline\">Read more</a>",
"tooltip": "Xave's FXPools are potentially affected by a bug. Xave recommends that LPs temporarily remove liquidity from this pool"
}
},
"popularBases": "Popular",
Expand Down
8 changes: 2 additions & 6 deletions src/providers/local/exit-pool.provider.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { initBalancerSdkWithDefaultMocks } from '@/dependencies/balancer-sdk.mocks';
import { initEthersContractWithDefaultMocks } from '@/dependencies/EthersContract.mocks';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';
import { hasFetchedPoolsForSor } from '@/lib/balancer.sdk';
import { poolIdThatRequiresInternalBalanceExit } from '@/lib/config/goerli/pools';
import { ExactInExitHandler } from '@/services/balancer/pools/exits/handlers/exact-in-exit.handler';
Expand All @@ -11,11 +10,8 @@ import { mountComposableWithFakeTokensProvider as mountComposable } from '@tests
import { groAddress, wethAddress } from '@tests/unit/builders/address';
import waitForExpect from 'wait-for-expect';
import { exitPoolProvider } from './exit-pool.provider';
import { initContractConcernWithDefaultMocks } from '@/dependencies/contract.concern.mocks';

initEthersContractWithDefaultMocks();
initBalancerSdkWithDefaultMocks();
initContractConcernWithDefaultMocks();
initDependenciesWithDefaultMocks();

async function mountExitPoolProvider(pool: Pool) {
// Pretend that pools for SOR were fetched
Expand Down
10 changes: 3 additions & 7 deletions src/providers/local/join-pool.provider.spec.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import { initEthersContractWithDefaultMocks } from '@/dependencies/EthersContract.mocks';
import { initBalancerSdkWithDefaultMocks } from '@/dependencies/balancer-sdk.mocks';
import { initDependenciesWithDefaultMocks } from '@/dependencies/default-mocks';
import { Pool } from '@/services/pool/types';
import { aWeightedPool } from '@/__mocks__/weighted-pool';
import { mountComposableWithFakeTokensProvider as mountComposable } from '@tests/mount-helpers';
import { groAddress, wethAddress } from '@tests/unit/builders/address';
import { anAmountIn } from '@tests/unit/builders/join-exit.builders';
import waitForExpect from 'wait-for-expect';
import { joinPoolProvider } from './join-pool.provider';
import { groAddress, wethAddress } from '@tests/unit/builders/address';
import { initContractConcernWithDefaultMocks } from '@/dependencies/contract.concern.mocks';

initEthersContractWithDefaultMocks();
initBalancerSdkWithDefaultMocks();
initContractConcernWithDefaultMocks();
initDependenciesWithDefaultMocks();

async function mountJoinPoolProvider(pool: Pool) {
const { result } = await mountComposable(() => joinPoolProvider(ref(pool)));
Expand Down
Loading

0 comments on commit b7db50e

Please sign in to comment.