diff --git a/modules/network/arbitrum.ts b/modules/network/arbitrum.ts index 5f20fb913..cdee1952d 100644 --- a/modules/network/arbitrum.ts +++ b/modules/network/arbitrum.ts @@ -61,7 +61,7 @@ const arbitrumNetworkData: NetworkData = { rpcMaxBlockRange: 2000, protocolToken: 'bal', bal: { - address: '0x040d1EdC9569d4Bab2D15287Dc5A4F10F56a56B8', + address: '0x040d1edc9569d4bab2d15287dc5a4f10f56a56b8', }, veBal: { address: '0xc128a9954e6c874ea3d62ce62b468ba073093f25', diff --git a/modules/network/avalanche.ts b/modules/network/avalanche.ts index 20b42578b..629828795 100644 --- a/modules/network/avalanche.ts +++ b/modules/network/avalanche.ts @@ -59,7 +59,7 @@ const avalancheNetworkData: NetworkData = { rpcMaxBlockRange: 2000, protocolToken: 'bal', bal: { - address: '0xE15bCB9E0EA69e6aB9FA080c4c4A5632896298C3', + address: '0xe15bcb9e0ea69e6ab9fa080c4c4a5632896298c3', }, veBal: { address: '', diff --git a/modules/network/base.ts b/modules/network/base.ts index ec4eea965..480e5b342 100644 --- a/modules/network/base.ts +++ b/modules/network/base.ts @@ -63,7 +63,7 @@ const baseNetworkData: NetworkData = { }, protocolToken: 'bal', bal: { - address: '0x7c6b91D9Be155A6Db01f749217d76fF02A7227F2', + address: '0x7c6b91d9be155a6db01f749217d76ff02a7227f2', }, veBal: { address: '0xc128a9954e6c874ea3d62ce62b468ba073093f25', diff --git a/modules/network/gnosis.ts b/modules/network/gnosis.ts index 66a8749d9..e1447dba0 100644 --- a/modules/network/gnosis.ts +++ b/modules/network/gnosis.ts @@ -57,7 +57,7 @@ const gnosisNetworkData: NetworkData = { rpcMaxBlockRange: 2000, protocolToken: 'bal', bal: { - address: '0x7eF541E2a22058048904fE5744f9c7E4C57AF717', + address: '0x7ef541e2a22058048904fe5744f9c7e4c57af717', }, veBal: { address: '0xc128a9954e6c874ea3d62ce62b468ba073093f25', diff --git a/modules/network/mainnet.ts b/modules/network/mainnet.ts index 662d1780b..b99907547 100644 --- a/modules/network/mainnet.ts +++ b/modules/network/mainnet.ts @@ -59,7 +59,7 @@ const mainnetNetworkData: NetworkData = { rpcMaxBlockRange: 700, protocolToken: 'bal', bal: { - address: '0xba100000625a3754423978a60c9317c58a424e3D', + address: '0xba100000625a3754423978a60c9317c58a424e3d', }, veBal: { address: '0xc128a9954e6c874ea3d62ce62b468ba073093f25', diff --git a/modules/network/polygon.ts b/modules/network/polygon.ts index e036b4ff2..513516018 100644 --- a/modules/network/polygon.ts +++ b/modules/network/polygon.ts @@ -60,7 +60,7 @@ const polygonNetworkData: NetworkData = { rpcMaxBlockRange: 2000, protocolToken: 'bal', bal: { - address: '0x9a71012B13CA4d3D0Cdc72A177DF3ef03b0E76A3', + address: '0x9a71012b13ca4d3d0cdc72a177df3ef03b0e76a3', }, veBal: { address: '0xc128a9954e6c874ea3d62ce62b468ba073093f25', diff --git a/modules/network/zkevm.ts b/modules/network/zkevm.ts index b349fa943..da922165c 100644 --- a/modules/network/zkevm.ts +++ b/modules/network/zkevm.ts @@ -58,7 +58,7 @@ const zkevmNetworkData: NetworkData = { rpcMaxBlockRange: 2000, protocolToken: 'bal', bal: { - address: '0x120eF59b80774F02211563834d8E3b72cb1649d6', + address: '0x120ef59b80774f02211563834d8e3b72cb1649d6', }, veBal: { address: '0xc128a9954e6c874ea3d62ce62b468ba073093f25', diff --git a/modules/pool/lib/staking/gauge-staking.service.ts b/modules/pool/lib/staking/gauge-staking.service.ts index c170bc7f4..f0fb2abb2 100644 --- a/modules/pool/lib/staking/gauge-staking.service.ts +++ b/modules/pool/lib/staking/gauge-staking.service.ts @@ -21,7 +21,10 @@ interface ChildChainInfo { } export class GaugeStakingService implements PoolStakingService { - constructor(private readonly gaugeSubgraphService: GaugeSubgraphService, private readonly balAddress: string) {} + private balAddress: string; + constructor(private readonly gaugeSubgraphService: GaugeSubgraphService, balAddress: string) { + this.balAddress = balAddress.toLowerCase(); + } public async syncStakingForPools(): Promise { const pools = await prisma.prismaPool.findMany({ where: { chain: networkContext.chain }, @@ -124,7 +127,7 @@ export class GaugeStakingService implements PoolStakingService { } } else { // we can't get BAL rate from the reward data but got it from the inflation_rate call which set the rewardToken.rate - if (tokenAddress.toLowerCase() === this.balAddress.toLowerCase()) { + if (tokenAddress === this.balAddress) { rewardRate = rewardToken.rate ? rewardToken.rate : '0.0'; } else { const gaugeV2 = getContractAt(gauge.id, childChainGaugeV2Abi);