diff --git a/config/fantom.ts b/config/fantom.ts index 45e1015d7..e57040ef3 100644 --- a/config/fantom.ts +++ b/config/fantom.ts @@ -77,8 +77,8 @@ export default { balancerQueriesAddress: '0x1b0a42663df1edea171cd8732d288a81efff6d23', }, v3: { - vaultAddress: '0x20dd72ed959b6147912c2e529f0a0c651c33c9ce', - routerAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', + vaultAddress: '', + routerAddress: '', defaultSwapFeePercentage: '0.25', defaultYieldFeePercentage: '0.25', }, diff --git a/config/fraxtal.ts b/config/fraxtal.ts index 40d8eeced..f22ec7d49 100644 --- a/config/fraxtal.ts +++ b/config/fraxtal.ts @@ -51,8 +51,8 @@ export default { balancerQueriesAddress: '0x4132f7acc9db7a6cf7be2dd3a9dc8b30c7e6e6c8', }, v3: { - vaultAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', - routerAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', + vaultAddress: '', + routerAddress: '', defaultSwapFeePercentage: '0.5', defaultYieldFeePercentage: '0.5', }, diff --git a/config/mode.ts b/config/mode.ts index 65627343c..09221168c 100644 --- a/config/mode.ts +++ b/config/mode.ts @@ -50,8 +50,8 @@ export default { balancerQueriesAddress: '0x36cac20dd805d128c1a6dd16eea845c574b5a17c', }, v3: { - vaultAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', - routerAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', + vaultAddress: '', + routerAddress: '', defaultSwapFeePercentage: '0.5', defaultYieldFeePercentage: '0.5', }, diff --git a/config/polygon.ts b/config/polygon.ts index 22fe3b4c4..1973ebe99 100644 --- a/config/polygon.ts +++ b/config/polygon.ts @@ -57,8 +57,8 @@ export default { balancerQueriesAddress: '0xe39b5e3b6d74016b2f6a9673d7d7493b6df549d5', }, v3: { - vaultAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', - routerAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', + vaultAddress: '', + routerAddress: '', defaultSwapFeePercentage: '0.5', defaultYieldFeePercentage: '0.5', }, diff --git a/config/xlayer.ts b/config/xlayer.ts index b83a78a46..3e12fcf4b 100644 --- a/config/xlayer.ts +++ b/config/xlayer.ts @@ -37,7 +37,7 @@ export default { excludedTokenAddresses: [], }, rpcUrl: 'https://rpc.xlayer.tech', - rpcMaxBlockRange: 1000, + rpcMaxBlockRange: 100, acceptableSGLag: 30, // ~1min protocolToken: 'bal', balancer: { diff --git a/config/zkevm.ts b/config/zkevm.ts index 65816345c..0fbfaa57e 100644 --- a/config/zkevm.ts +++ b/config/zkevm.ts @@ -51,8 +51,8 @@ export default { balancerQueriesAddress: '0x809b79b53f18e9bc08a961ed4678b901ac93213a', }, v3: { - vaultAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', - routerAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', + vaultAddress: '', + routerAddress: '', defaultSwapFeePercentage: '0.5', defaultYieldFeePercentage: '0.5', }, diff --git a/modules/user/user-balances-controller.ts b/modules/user/user-balances-controller.ts index 4a74e431d..22f13749a 100644 --- a/modules/user/user-balances-controller.ts +++ b/modules/user/user-balances-controller.ts @@ -14,9 +14,11 @@ export function UserBalancesController() { // Run all syncs in parallel await Promise.all([ - syncBptBalancesV2(chain, balancer), - syncBptBalancesV3(chain, balancerV3), - syncBptBalancesCowAmm(chain, cowAmm), + config[chain].balancer.v2.vaultAddress !== '' ? syncBptBalancesV2(chain, balancer) : Promise.resolve(), + config[chain].balancer.v3.vaultAddress !== '' + ? syncBptBalancesV3(chain, balancerV3) + : Promise.resolve(), + cowAmm ? syncBptBalancesCowAmm(chain, cowAmm) : Promise.resolve(), ]); return true;