diff --git a/modules/network/arbitrum.ts b/modules/network/arbitrum.ts index 35a931aee..160bab5f1 100644 --- a/modules/network/arbitrum.ts +++ b/modules/network/arbitrum.ts @@ -7,7 +7,6 @@ import { activeChainWorkerJobsV2, activeChainWorkerJobsV3, cowAmmWorkerJobs, - lbpWorkerJobs, quantAmmWorkerJobs, vebalWorkerJobs, } from './worker-jobs'; @@ -23,7 +22,6 @@ export const arbitrumNetworkConfig: NetworkConfig = { ...activeChainWorkerJobsV3, ...cowAmmWorkerJobs, ...quantAmmWorkerJobs, - ...lbpWorkerJobs, ...vebalWorkerJobs, ], }; diff --git a/modules/network/avalanche.ts b/modules/network/avalanche.ts index fb20b55fc..826af1e18 100644 --- a/modules/network/avalanche.ts +++ b/modules/network/avalanche.ts @@ -6,7 +6,6 @@ import { activeChainWorkerJobsGeneric, activeChainWorkerJobsV2, activeChainWorkerJobsV3, - lbpWorkerJobs, vebalWorkerJobs, fxWorkerJobs, } from './worker-jobs'; @@ -20,7 +19,6 @@ export const avalancheNetworkConfig: NetworkConfig = { ...activeChainWorkerJobsGeneric, ...activeChainWorkerJobsV2, ...activeChainWorkerJobsV3, - ...lbpWorkerJobs, ...fxWorkerJobs, ...vebalWorkerJobs, ], diff --git a/modules/network/base.ts b/modules/network/base.ts index e7768ec6d..4ea976103 100644 --- a/modules/network/base.ts +++ b/modules/network/base.ts @@ -8,7 +8,6 @@ import { activeChainWorkerJobsV3, cowAmmWorkerJobs, quantAmmWorkerJobs, - lbpWorkerJobs, vebalWorkerJobs, } from './worker-jobs'; @@ -24,6 +23,5 @@ export const baseNetworkConfig: NetworkConfig = { ...cowAmmWorkerJobs, ...vebalWorkerJobs, ...quantAmmWorkerJobs, - ...lbpWorkerJobs, ], }; diff --git a/modules/network/gnosis.ts b/modules/network/gnosis.ts index f7bb30b66..2ed696085 100644 --- a/modules/network/gnosis.ts +++ b/modules/network/gnosis.ts @@ -8,7 +8,6 @@ import { activeChainWorkerJobsV3, vebalWorkerJobs, cowAmmWorkerJobs, - lbpWorkerJobs, } from './worker-jobs'; const gnosisNetworkData: NetworkData = config.GNOSIS; @@ -22,6 +21,5 @@ export const gnosisNetworkConfig: NetworkConfig = { ...activeChainWorkerJobsV3, ...vebalWorkerJobs, ...cowAmmWorkerJobs, - ...lbpWorkerJobs, ], }; diff --git a/modules/network/hyperevm.ts b/modules/network/hyperevm.ts index 23082bb4d..f351b76d9 100644 --- a/modules/network/hyperevm.ts +++ b/modules/network/hyperevm.ts @@ -1,11 +1,11 @@ import { NetworkConfig, NetworkData } from './network-config-types'; import config from '../../config'; -import { activeChainWorkerJobsGeneric, activeChainWorkerJobsV3, lbpWorkerJobs } from './worker-jobs'; +import { activeChainWorkerJobsGeneric, activeChainWorkerJobsV3 } from './worker-jobs'; const hyperEvmNetworkData: NetworkData = config.HYPEREVM; export const hyperevmNetworkConfig: NetworkConfig = { data: hyperEvmNetworkData, userStakedBalanceServices: [], - workerJobs: [...activeChainWorkerJobsGeneric, ...activeChainWorkerJobsV3, ...lbpWorkerJobs], + workerJobs: [...activeChainWorkerJobsGeneric, ...activeChainWorkerJobsV3], }; diff --git a/modules/network/mainnet.ts b/modules/network/mainnet.ts index 8545c1237..2de991820 100644 --- a/modules/network/mainnet.ts +++ b/modules/network/mainnet.ts @@ -10,7 +10,6 @@ import { activeChainWorkerJobsV3, cowAmmWorkerJobs, fxWorkerJobs, - lbpWorkerJobs, quantAmmWorkerJobs, vebalWorkerJobs, } from './worker-jobs'; @@ -31,7 +30,6 @@ export const mainnetNetworkConfig: NetworkConfig = { ...cowAmmWorkerJobs, ...vebalWorkerJobs, ...quantAmmWorkerJobs, - ...lbpWorkerJobs, ...fxWorkerJobs, ...activeChainWorkerJobsGlobal, ], diff --git a/modules/network/monad.ts b/modules/network/monad.ts index becde4e5e..08a0aa80f 100644 --- a/modules/network/monad.ts +++ b/modules/network/monad.ts @@ -1,11 +1,11 @@ import { NetworkConfig, NetworkData } from './network-config-types'; import config from '../../config'; -import { activeChainWorkerJobsGeneric, activeChainWorkerJobsV3, lbpWorkerJobs } from './worker-jobs'; +import { activeChainWorkerJobsGeneric, activeChainWorkerJobsV3 } from './worker-jobs'; const monadNetworkData: NetworkData = config.MONAD; export const monadNetworkConfig: NetworkConfig = { data: monadNetworkData, userStakedBalanceServices: [], - workerJobs: [...activeChainWorkerJobsGeneric, ...activeChainWorkerJobsV3, ...lbpWorkerJobs], + workerJobs: [...activeChainWorkerJobsGeneric, ...activeChainWorkerJobsV3], }; diff --git a/modules/network/optimism.ts b/modules/network/optimism.ts index 07861f94b..54ebbf36f 100644 --- a/modules/network/optimism.ts +++ b/modules/network/optimism.ts @@ -7,7 +7,6 @@ import { activeChainWorkerJobsV2, activeChainWorkerJobsV3, vebalWorkerJobs, - lbpWorkerJobs, datastudioWorkerJobs, } from './worker-jobs'; @@ -21,7 +20,6 @@ export const optimismNetworkConfig: NetworkConfig = { ...activeChainWorkerJobsV2, ...activeChainWorkerJobsV3, ...vebalWorkerJobs, - ...lbpWorkerJobs, ...datastudioWorkerJobs, ], }; diff --git a/modules/network/plasma.ts b/modules/network/plasma.ts index 70baf4f59..78055dd0a 100644 --- a/modules/network/plasma.ts +++ b/modules/network/plasma.ts @@ -1,11 +1,11 @@ import { NetworkConfig, NetworkData } from './network-config-types'; import config from '../../config'; -import { activeChainWorkerJobsGeneric, activeChainWorkerJobsV3, lbpWorkerJobs } from './worker-jobs'; +import { activeChainWorkerJobsGeneric, activeChainWorkerJobsV3 } from './worker-jobs'; const plasmaNetworkData: NetworkData = config.PLASMA; export const plasmaNetworkConfig: NetworkConfig = { data: plasmaNetworkData, userStakedBalanceServices: [], - workerJobs: [...activeChainWorkerJobsGeneric, ...activeChainWorkerJobsV3, ...lbpWorkerJobs], + workerJobs: [...activeChainWorkerJobsGeneric, ...activeChainWorkerJobsV3], }; diff --git a/modules/network/sepolia.ts b/modules/network/sepolia.ts index c5abfaf50..9e1119ba6 100644 --- a/modules/network/sepolia.ts +++ b/modules/network/sepolia.ts @@ -7,7 +7,6 @@ import { activeChainWorkerJobsV3, cowAmmWorkerJobs, quantAmmWorkerJobs, - lbpWorkerJobs, } from './worker-jobs'; export const sepoliaNetworkData = config.SEPOLIA; @@ -21,6 +20,5 @@ export const sepoliaNetworkConfig: NetworkConfig = { ...activeChainWorkerJobsV3, ...cowAmmWorkerJobs, ...quantAmmWorkerJobs, - ...lbpWorkerJobs, ], }; diff --git a/modules/network/sonic.ts b/modules/network/sonic.ts index 0f37a2ee4..2c0eb6a31 100644 --- a/modules/network/sonic.ts +++ b/modules/network/sonic.ts @@ -7,7 +7,6 @@ import { activeChainWorkerJobsV2, activeChainWorkerJobsV3, datastudioWorkerJobs, - lbpWorkerJobs, loopsWorkerJobs, quantAmmWorkerJobs, reliquaryWorkerJobs, diff --git a/modules/network/worker-jobs.ts b/modules/network/worker-jobs.ts index 09e5de590..e0a4b273a 100644 --- a/modules/network/worker-jobs.ts +++ b/modules/network/worker-jobs.ts @@ -179,6 +179,14 @@ export const activeChainWorkerJobsGlobal: WorkerJob[] = [ name: 'sync-token-content-data', interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(10, 'minutes') : every(5, 'minutes'), }, + { + name: 'sync-lbps', + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'), + }, + { + name: 'sync-fixed-lbps', + interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'), + }, ]; export const vebalWorkerJobs: WorkerJob[] = [ @@ -221,17 +229,6 @@ export const quantAmmWorkerJobs: WorkerJob[] = [ }, ]; -export const lbpWorkerJobs: WorkerJob[] = [ - { - name: 'sync-lbps', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'), - }, - { - name: 'sync-fixed-lbps', - interval: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? every(5, 'minutes') : every(2, 'minutes'), - }, -]; - export const loopsWorkerJobs: WorkerJob[] = [ { name: 'sync-loops-data', diff --git a/modules/network/xlayer.ts b/modules/network/xlayer.ts index 8c36d51be..34ec07399 100644 --- a/modules/network/xlayer.ts +++ b/modules/network/xlayer.ts @@ -1,11 +1,11 @@ import { NetworkConfig, NetworkData } from './network-config-types'; import config from '../../config'; -import { activeChainWorkerJobsGeneric, activeChainWorkerJobsV3, lbpWorkerJobs } from './worker-jobs'; +import { activeChainWorkerJobsGeneric, activeChainWorkerJobsV3 } from './worker-jobs'; const xlayerNetworkData: NetworkData = config.XLAYER; export const xlayerNetworkConfig: NetworkConfig = { data: xlayerNetworkData, userStakedBalanceServices: [], - workerJobs: [...activeChainWorkerJobsGeneric, ...activeChainWorkerJobsV3, ...lbpWorkerJobs], + workerJobs: [...activeChainWorkerJobsGeneric, ...activeChainWorkerJobsV3], }; diff --git a/modules/sources/contracts/pool-type-dynamic-data/lbp-calls.ts b/modules/sources/contracts/pool-type-dynamic-data/lbp-calls.ts index 3b3740002..0049848c3 100644 --- a/modules/sources/contracts/pool-type-dynamic-data/lbp-calls.ts +++ b/modules/sources/contracts/pool-type-dynamic-data/lbp-calls.ts @@ -18,6 +18,12 @@ export type LBPCallsOutput = { id: string; weight: string; }[]; + pool: { + typeData: { + reserveTokenVirtualBalance: string; + isSeedless: boolean; + }; + }; }; export const lbpCalls = (poolAddress: string): ViemMulticallCall[] => [ @@ -45,7 +51,11 @@ export const lbpCalls = (poolAddress: string): ViemMulticallCall[] => [ swapEnabled: result.isSwapEnabled, }; - return { poolToken, poolDynamicData }; + return { + poolToken, + poolDynamicData, + pool: { typeData: { reserveTokenVirtualBalance: '0', isSeedless: false } }, + }; }, }, ];