From c507c33d82f62a9d6b3a0246e1c900110933d9c7 Mon Sep 17 00:00:00 2001 From: gmbronco <83549293+gmbronco@users.noreply.github.com> Date: Fri, 6 Dec 2024 06:26:48 +0100 Subject: [PATCH] V3 (#1239) * V3 mainnet and gnosis * V3 jobs on mainnet and gnosis --- .changeset/hungry-fireants-notice.md | 5 +++++ config/gnosis.ts | 9 ++++++--- config/mainnet.ts | 10 ++++++---- modules/network/gnosis.ts | 25 +++++++++++++++++++++++++ modules/network/mainnet.ts | 25 +++++++++++++++++++++++++ 5 files changed, 67 insertions(+), 7 deletions(-) create mode 100644 .changeset/hungry-fireants-notice.md diff --git a/.changeset/hungry-fireants-notice.md b/.changeset/hungry-fireants-notice.md new file mode 100644 index 00000000..a90d0f63 --- /dev/null +++ b/.changeset/hungry-fireants-notice.md @@ -0,0 +1,5 @@ +--- +'backend': minor +--- + +V3 mainnet and gnosis diff --git a/config/gnosis.ts b/config/gnosis.ts index 23f61178..aef24f8d 100644 --- a/config/gnosis.ts +++ b/config/gnosis.ts @@ -15,6 +15,8 @@ export default { balancer: [ `https://gateway-arbitrum.network.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/QmXXSKeLh14DnJgR1ncHhAHciqacfRshcHKXasAGy7LP4Y`, ], + balancerV3: `https://gateway.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/QmSLd8fuWE6eGRMZrYmxjX6ckumZDhG5mcQUBMY5Zfz3oU`, + balancerPoolsV3: `https://gateway.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/QmQpKVgaEhrPygATrgpCTLSMqqmHCLuC3vpdonSC1Z9iqo`, beetsBar: 'https://', blocks: `https://gateway.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/subgraphs/id/FxV6YUix58SpYmLBwc9gEHkwjfkqwe1X5FJQjn8nKPyA`, gauge: `https://gateway-arbitrum.network.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/Qme9hQY1NZ8ReVDSSQb893s2fGpeLkgfwXd3YU5rndACaP`, @@ -57,10 +59,11 @@ export default { balancerQueriesAddress: '0x0f3e0c4218b7b0108a3643cfe9d3ec0d4f57c54e', }, v3: { - vaultAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', - routerAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', + vaultAddress: '0xba1333333333a1ba1108e8412f11850a5c319ba9', + protocolFeeController: '0xa731c23d7c95436baaae9d52782f966e1ed07cc8', + routerAddress: '0x84813aa3e079a665c0b80f944427ee83cba63617', defaultSwapFeePercentage: '0.5', - defaultYieldFeePercentage: '0.5', + defaultYieldFeePercentage: '0.1', }, }, multicall: '0xbb6fab6b627947dae0a75808250d8b2652952cb5', diff --git a/config/mainnet.ts b/config/mainnet.ts index e90387b2..835f2bf6 100644 --- a/config/mainnet.ts +++ b/config/mainnet.ts @@ -26,6 +26,8 @@ export default { balancer: [ `https://gateway-arbitrum.network.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/QmQ5TT2yYBZgoUxsat3bKmNe5Fr9LW9YAtDs8aeuc1BRhj`, ], + balancerV3: `https://gateway.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/QmPoxXQWfZffo454w7aM1fV6jK32zApX4J7VS4Ls4MSLGm`, + balancerPoolsV3: `https://gateway.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/QmVGssjwfVAP8b2buqVVKz5sdb69ryyvxED5qQPGeW8Yk2`, beetsBar: 'https://', blocks: `https://gateway.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/subgraphs/id/9A6bkprqEG2XsZUYJ5B2XXp6ymz9fNcn4tVPxMWDztYC`, gauge: `https://gateway-arbitrum.network.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/QmdmQBHbBtwD6wNypHbuGKB1uKHpHNVuSHbo9FsvrMhXSn`, @@ -76,11 +78,11 @@ export default { balancerQueriesAddress: '0xe39b5e3b6d74016b2f6a9673d7d7493b6df549d5', }, v3: { - vaultAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', - routerAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8', + vaultAddress: '0xba1333333333a1ba1108e8412f11850a5c319ba9', + protocolFeeController: '0xa731c23d7c95436baaae9d52782f966e1ed07cc8', + routerAddress: '0x5c6fb490bdfd3246eb0bb062c168decaf4bd9fdd', defaultSwapFeePercentage: '0.5', - defaultYieldFeePercentage: '0.5', - tokenAdmin: '0xf302f9f50958c5593770fdf4d4812309ff77414f', + defaultYieldFeePercentage: '0.1', }, }, multicall: '0x5ba1e12693dc8f9c48aad8770482f4739beed696', diff --git a/modules/network/gnosis.ts b/modules/network/gnosis.ts index e0957dba..66995232 100644 --- a/modules/network/gnosis.ts +++ b/modules/network/gnosis.ts @@ -149,5 +149,30 @@ export const gnosisNetworkConfig: NetworkConfig = { name: 'update-cow-amm-volume-and-fees', interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(60, 'minutes') : every(20, 'minutes'), }, + // V3 jobs + { + name: 'add-pools-v3', + interval: every(2, 'minutes'), + }, + { + name: 'sync-pools-v3', + interval: every(30, 'seconds'), + }, + { + name: 'sync-join-exits-v3', + interval: every(1, 'minutes'), + }, + { + name: 'sync-swaps-v3', + interval: every(1, 'minutes'), + }, + { + name: 'sync-snapshots-v3', + interval: every(90, 'minutes'), + }, + { + name: 'sync-hook-data', + interval: every(1, 'hours'), + }, ], }; diff --git a/modules/network/mainnet.ts b/modules/network/mainnet.ts index 9713fd9e..77ec1182 100644 --- a/modules/network/mainnet.ts +++ b/modules/network/mainnet.ts @@ -206,5 +206,30 @@ export const mainnetNetworkConfig: NetworkConfig = { name: 'update-cow-amm-volume-and-fees', interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(60, 'minutes') : every(20, 'minutes'), }, + // V3 jobs + { + name: 'add-pools-v3', + interval: every(2, 'minutes'), + }, + { + name: 'sync-pools-v3', + interval: every(30, 'seconds'), + }, + { + name: 'sync-join-exits-v3', + interval: every(1, 'minutes'), + }, + { + name: 'sync-swaps-v3', + interval: every(1, 'minutes'), + }, + { + name: 'sync-snapshots-v3', + interval: every(90, 'minutes'), + }, + { + name: 'sync-hook-data', + interval: every(1, 'hours'), + }, ], };