Skip to content

Commit

Permalink
V3 (#1239)
Browse files Browse the repository at this point in the history
* V3 mainnet and gnosis

* V3 jobs on mainnet and gnosis
  • Loading branch information
gmbronco authored Dec 6, 2024
1 parent ceebe28 commit c507c33
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-fireants-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'backend': minor
---

V3 mainnet and gnosis
9 changes: 6 additions & 3 deletions config/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export default <NetworkData>{
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`,
Expand Down Expand Up @@ -57,10 +59,11 @@ export default <NetworkData>{
balancerQueriesAddress: '0x0f3e0c4218b7b0108a3643cfe9d3ec0d4f57c54e',
},
v3: {
vaultAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8',
routerAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8',
vaultAddress: '0xba1333333333a1ba1108e8412f11850a5c319ba9',
protocolFeeController: '0xa731c23d7c95436baaae9d52782f966e1ed07cc8',
routerAddress: '0x84813aa3e079a665c0b80f944427ee83cba63617',
defaultSwapFeePercentage: '0.5',
defaultYieldFeePercentage: '0.5',
defaultYieldFeePercentage: '0.1',
},
},
multicall: '0xbb6fab6b627947dae0a75808250d8b2652952cb5',
Expand Down
10 changes: 6 additions & 4 deletions config/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export default <NetworkData>{
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`,
Expand Down Expand Up @@ -76,11 +78,11 @@ export default <NetworkData>{
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',
Expand Down
25 changes: 25 additions & 0 deletions modules/network/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
},
],
};
25 changes: 25 additions & 0 deletions modules/network/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
},
],
};

0 comments on commit c507c33

Please sign in to comment.