Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Dec 15, 2024
1 parent ba45345 commit cee7ca4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
16 changes: 10 additions & 6 deletions config/sonic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export default <NetworkData>{
subgraphs: {
startDate: '2024-12-12',
balancer: [
`https://subgraph.satsuma-prod.com/${env.ALCHEMY_SUBGRAPH_KEY}/deployments/id/QmWUgkiUM5c3BW1Z51DUkZfnyQfyfesE8p3BRnEtA9vyPL`,
`https://subgraph.satsuma-prod.com/${env.SATSUMA_API_KEY}/deployments/id/QmWUgkiUM5c3BW1Z51DUkZfnyQfyfesE8p3BRnEtA9vyPL`,
],
beetsBar: 'https://',
blocks: `https://subgraph.satsuma-prod.com/${env.ALCHEMY_SUBGRAPH_KEY}/beets--990439/sonic-blocks/api`,
gauge: `https://subgraph.satsuma-prod.com/${env.ALCHEMY_SUBGRAPH_KEY}/balancer/gauges-sonic/api`,
reliquary: ``,
blocks: `https://subgraph.satsuma-prod.com/${env.SATSUMA_API_KEY}/beets--990439/sonic-blocks/api`,
gauge: `https://subgraph.satsuma-prod.com/${env.SATSUMA_API_KEY}/balancer/gauges-sonic/api`,
reliquary: `https://subgraph.satsuma-prod.com/${env.SATSUMA_API_KEY}/beets--990439/mabeets-sonic/api`,
},
eth: {
address: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
Expand All @@ -39,14 +39,14 @@ export default <NetworkData>{
rpcMaxBlockRange: 2000,
protocolToken: 'beets',
beets: {
address: '0x2D0E0814E62D80056181F5cd932274405966e4f0',
address: '0x2d0e0814e62d80056181f5cd932274405966e4f0',
},
balancer: {
v2: {
vaultAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8',
defaultSwapFeePercentage: '0.25',
defaultYieldFeePercentage: '0.25',
balancerQueriesAddress: '0x4B29DB997Ec0efDFEF13bAeE2a2D7783bCf67f17',
balancerQueriesAddress: '0x4b29db997ec0efdfef13baee2a2d7783bcf67f17',
},
v3: {
vaultAddress: '0xba12222222228d8ba445958a75a0704d566bf2c8',
Expand All @@ -57,6 +57,10 @@ export default <NetworkData>{
},
multicall: '0xca11bde05977b3631167028862be2a173976ca11',
multicall3: '0xca11bde05977b3631167028862be2a173976ca11',
reliquary: {
address: '0x973670ce19594f857a7cd85ee834c7a74a941684',
excludedFarmIds: [],
},
avgBlockSpeed: 1,
ybAprConfig: {},
datastudio: {
Expand Down
13 changes: 11 additions & 2 deletions modules/network/sonic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { env } from '../../apps/env';
import { BalancerSubgraphService } from '../subgraphs/balancer-subgraph/balancer-subgraph.service';
import config from '../../config';
import { GithubContentService } from '../content/github-content.service';
import { ReliquaryFarmAprService } from '../pool/lib/apr-data-sources/fantom/reliquary-farm-apr.service';
import { UserSyncReliquaryFarmBalanceService } from '../user/lib/user-sync-reliquary-farm-balance.service';

const sonicNetworkData: NetworkData = config.SONIC;

Expand All @@ -23,10 +25,13 @@ export const sonicNetworkConfig: NetworkConfig = {
new BoostedPoolAprService(),
new SwapFeeAprService(),
new GaugeAprService(tokenService, [sonicNetworkData.beets!.address, sonicNetworkData.bal!.address]),
// new ReliquaryFarmAprService(fantomNetworkData.beets!.address),
new ReliquaryFarmAprService(sonicNetworkData.beets!.address),
// new BeetswarsGaugeVotingAprService(),
],
userStakedBalanceServices: [new UserSyncGaugeBalanceService()],
userStakedBalanceServices: [
new UserSyncGaugeBalanceService(),
new UserSyncReliquaryFarmBalanceService(sonicNetworkData.reliquary!.address),
],
services: {
balancerSubgraphService: new BalancerSubgraphService(
sonicNetworkData.subgraphs.balancer,
Expand Down Expand Up @@ -109,6 +114,10 @@ export const sonicNetworkConfig: NetworkConfig = {
alarmEvaluationPeriod: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1,
alarmDatapointsToAlarm: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'canary' ? 3 : 1,
},
{
name: 'sync-latest-reliquary-snapshots',
interval: every(1, 'hours'),
},
{
name: 'update-fee-volume-yield-all-pools',
interval: every(1, 'hours'),
Expand Down

0 comments on commit cee7ca4

Please sign in to comment.