@merkl/api 0.20.96 → 0.20.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,12 +20,14 @@ if (!chainId)
20
20
  const queryCampaignTypes = process.env.CAMPAIGN_TYPES ? JSON.parse(process.env.CAMPAIGN_TYPES) : [];
21
21
  const highCampaignsChains = [ChainId.ARBITRUM, ChainId.POLYGON, ChainId.BLAST, ChainId.BASE];
22
22
  export const main = async () => {
23
- await OpportunityConvertorService.logKeyAndTTLV3Opportunities(false, false, undefined, undefined);
24
- await OpportunityConvertorService.setV3Opportunities(false, false, undefined, undefined);
25
- log.info("✅ opportunity v3 cache updated successfully");
26
- await OpportunityConvertorService.logKeyAndTTLV3Opportunities(false, true, undefined, undefined);
27
- await OpportunityConvertorService.setV3Opportunities(false, true, undefined, undefined);
28
- log.info("✅ opportunity v3 test cache updated successfully");
23
+ if (chainId === ChainId.MAINNET) {
24
+ await OpportunityConvertorService.logKeyAndTTLV3Opportunities(false, false, undefined, undefined);
25
+ await OpportunityConvertorService.setV3Opportunities(false, false, undefined, undefined);
26
+ log.info("✅ opportunity v3 cache updated successfully");
27
+ await OpportunityConvertorService.logKeyAndTTLV3Opportunities(false, true, undefined, undefined);
28
+ await OpportunityConvertorService.setV3Opportunities(false, true, undefined, undefined);
29
+ log.info("✅ opportunity v3 test cache updated successfully");
30
+ }
29
31
  let success = true;
30
32
  try {
31
33
  await Redis.safeSet(`MerklChainData_${chainId}`, await merklChainData(chainId));