Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions modules/network/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
activeChainWorkerJobsV2,
activeChainWorkerJobsV3,
cowAmmWorkerJobs,
lbpWorkerJobs,
quantAmmWorkerJobs,
vebalWorkerJobs,
} from './worker-jobs';
Expand All @@ -23,7 +22,6 @@ export const arbitrumNetworkConfig: NetworkConfig = {
...activeChainWorkerJobsV3,
...cowAmmWorkerJobs,
...quantAmmWorkerJobs,
...lbpWorkerJobs,
...vebalWorkerJobs,
],
};
2 changes: 0 additions & 2 deletions modules/network/avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
activeChainWorkerJobsGeneric,
activeChainWorkerJobsV2,
activeChainWorkerJobsV3,
lbpWorkerJobs,
vebalWorkerJobs,
fxWorkerJobs,
} from './worker-jobs';
Expand All @@ -20,7 +19,6 @@ export const avalancheNetworkConfig: NetworkConfig = {
...activeChainWorkerJobsGeneric,
...activeChainWorkerJobsV2,
...activeChainWorkerJobsV3,
...lbpWorkerJobs,
...fxWorkerJobs,
...vebalWorkerJobs,
],
Expand Down
2 changes: 0 additions & 2 deletions modules/network/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
activeChainWorkerJobsV3,
cowAmmWorkerJobs,
quantAmmWorkerJobs,
lbpWorkerJobs,
vebalWorkerJobs,
} from './worker-jobs';

Expand All @@ -24,6 +23,5 @@ export const baseNetworkConfig: NetworkConfig = {
...cowAmmWorkerJobs,
...vebalWorkerJobs,
...quantAmmWorkerJobs,
...lbpWorkerJobs,
],
};
2 changes: 0 additions & 2 deletions modules/network/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
activeChainWorkerJobsV3,
vebalWorkerJobs,
cowAmmWorkerJobs,
lbpWorkerJobs,
} from './worker-jobs';

const gnosisNetworkData: NetworkData = config.GNOSIS;
Expand All @@ -22,6 +21,5 @@ export const gnosisNetworkConfig: NetworkConfig = {
...activeChainWorkerJobsV3,
...vebalWorkerJobs,
...cowAmmWorkerJobs,
...lbpWorkerJobs,
],
};
4 changes: 2 additions & 2 deletions modules/network/hyperevm.ts
Original file line number Diff line number Diff line change
@@ -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],
};
2 changes: 0 additions & 2 deletions modules/network/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
activeChainWorkerJobsV3,
cowAmmWorkerJobs,
fxWorkerJobs,
lbpWorkerJobs,
quantAmmWorkerJobs,
vebalWorkerJobs,
} from './worker-jobs';
Expand All @@ -31,7 +30,6 @@ export const mainnetNetworkConfig: NetworkConfig = {
...cowAmmWorkerJobs,
...vebalWorkerJobs,
...quantAmmWorkerJobs,
...lbpWorkerJobs,
...fxWorkerJobs,
...activeChainWorkerJobsGlobal,
],
Expand Down
4 changes: 2 additions & 2 deletions modules/network/monad.ts
Original file line number Diff line number Diff line change
@@ -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],
};
2 changes: 0 additions & 2 deletions modules/network/optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
activeChainWorkerJobsV2,
activeChainWorkerJobsV3,
vebalWorkerJobs,
lbpWorkerJobs,
datastudioWorkerJobs,
} from './worker-jobs';

Expand All @@ -21,7 +20,6 @@ export const optimismNetworkConfig: NetworkConfig = {
...activeChainWorkerJobsV2,
...activeChainWorkerJobsV3,
...vebalWorkerJobs,
...lbpWorkerJobs,
...datastudioWorkerJobs,
],
};
4 changes: 2 additions & 2 deletions modules/network/plasma.ts
Original file line number Diff line number Diff line change
@@ -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],
};
2 changes: 0 additions & 2 deletions modules/network/sepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
activeChainWorkerJobsV3,
cowAmmWorkerJobs,
quantAmmWorkerJobs,
lbpWorkerJobs,
} from './worker-jobs';

export const sepoliaNetworkData = config.SEPOLIA;
Expand All @@ -21,6 +20,5 @@ export const sepoliaNetworkConfig: NetworkConfig = {
...activeChainWorkerJobsV3,
...cowAmmWorkerJobs,
...quantAmmWorkerJobs,
...lbpWorkerJobs,
],
};
1 change: 0 additions & 1 deletion modules/network/sonic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
activeChainWorkerJobsV2,
activeChainWorkerJobsV3,
datastudioWorkerJobs,
lbpWorkerJobs,
loopsWorkerJobs,
quantAmmWorkerJobs,
reliquaryWorkerJobs,
Expand Down
19 changes: 8 additions & 11 deletions modules/network/worker-jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions modules/network/xlayer.ts
Original file line number Diff line number Diff line change
@@ -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],
};
12 changes: 11 additions & 1 deletion modules/sources/contracts/pool-type-dynamic-data/lbp-calls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export type LBPCallsOutput = {
id: string;
weight: string;
}[];
pool: {
typeData: {
reserveTokenVirtualBalance: string;
isSeedless: boolean;
};
};
};

export const lbpCalls = (poolAddress: string): ViemMulticallCall[] => [
Expand Down Expand Up @@ -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 } },
};
},
},
];
Loading