From d5e86bbba6723db6102530237a44438f246a9d2e Mon Sep 17 00:00:00 2001 From: gmbronco <83549293+gmbronco@users.noreply.github.com> Date: Tue, 3 Sep 2024 21:53:27 +0200 Subject: [PATCH] cow amm on arbitrum --- .changeset/lovely-taxis-heal.md | 5 +++++ config/arbitrum.ts | 1 + modules/network/arbitrum.ts | 21 +++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 .changeset/lovely-taxis-heal.md diff --git a/.changeset/lovely-taxis-heal.md b/.changeset/lovely-taxis-heal.md new file mode 100644 index 00000000..ba0d4551 --- /dev/null +++ b/.changeset/lovely-taxis-heal.md @@ -0,0 +1,5 @@ +--- +'backend': minor +--- + +cow amm on arbitrum diff --git a/config/arbitrum.ts b/config/arbitrum.ts index ea57d59b..b732c6c4 100644 --- a/config/arbitrum.ts +++ b/config/arbitrum.ts @@ -13,6 +13,7 @@ export default { subgraphs: { startDate: '2021-08-23', balancer: `https://gateway-arbitrum.network.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/QmPbjY6L1NhPjpBv7wDTfG9EPx5FpCuBqeg1XxByzBTLcs`, + cowAmm: `https://gateway-arbitrum.network.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/QmTSU862YAXb5XMhGsE7JCajuvf5FPiZjrdvC9nnbzd86x`, beetsBar: 'https://', blocks: 'https://api.studio.thegraph.com/query/48427/arbitrum-blocks/version/latest', gauge: `https://gateway-arbitrum.network.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/QmT3h6pogdPkxfWsBxKNtpq7kR9fqKaQ9jGxe7fZx7MUVE`, diff --git a/modules/network/arbitrum.ts b/modules/network/arbitrum.ts index f64fefcb..3d0f5eb2 100644 --- a/modules/network/arbitrum.ts +++ b/modules/network/arbitrum.ts @@ -124,5 +124,26 @@ export const arbitrumNetworkConfig: NetworkConfig = { name: 'sync-swaps-v2', interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(1, 'minutes'), }, + // COW AMM + { name: 'add-new-cow-amm-pools', interval: every(5, 'minutes') }, + { + name: 'sync-cow-amm-pools', + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(2, 'minutes') : every(30, 'seconds'), + alarmEvaluationPeriod: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, + alarmDatapointsToAlarm: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1, + }, + { + name: 'sync-cow-amm-swaps', + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(1, 'minutes'), + }, + { + name: 'sync-cow-amm-join-exits', + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(1, 'minutes'), + }, + { name: 'sync-cow-amm-snapshots', interval: every(90, 'minutes') }, + { + name: 'update-cow-amm-volume-and-fees', + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(60, 'minutes') : every(20, 'minutes'), + }, ], };