@merkl/api 0.10.182 → 0.10.183

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,3 @@
1
- import { log } from "../../utils/logger";
2
1
  import { engineDbClient } from "../../utils/prisma";
3
2
  import { Campaign } from "@sdk";
4
3
  import { getAddress } from "ethers/lib/utils";
@@ -25,9 +24,7 @@ export async function campaignsDynamicData(chainId, campaigns, type) {
25
24
  campaign.tags = tags[getAddress(campaign.creator)] || [];
26
25
  }
27
26
  }
28
- catch (_err) {
29
- log.warn("No tags assigned to creator address in database");
30
- }
27
+ catch (_err) { }
31
28
  switch (type) {
32
29
  case Campaign.ERC20: {
33
30
  const switchRefacto = process.env.SWITCH_REFACTO_SUBTYPES_ERC20 !== undefined ? process.env.SWITCH_REFACTO_SUBTYPES_ERC20 : false;
@@ -1,7 +1,6 @@
1
1
  import { engineDbClient } from "../../utils/prisma";
2
2
  import { Campaign } from "@sdk";
3
3
  import { getAddress } from "ethers/lib/utils";
4
- import { log } from "../../utils/logger";
5
4
  import { AjnaDynamicData } from "./campaignTypes/AjnaDynamicData";
6
5
  import { BadgerDynamicData } from "./campaignTypes/BadgerDynamicData";
7
6
  import { CLAMMDynamicData } from "./campaignTypes/CLAMMDynamicData";
@@ -24,9 +23,7 @@ export async function campaignsDynamicDataRefacto(chainId, campaigns, type, next
24
23
  campaign.tags = tags[getAddress(campaign.creator)] || [];
25
24
  }
26
25
  }
27
- catch (e) {
28
- log.warn("No tags assigned to creator address in database");
29
- }
26
+ catch (e) { }
30
27
  switch (type) {
31
28
  case Campaign.ERC20: {
32
29
  return ERC20DynamicDataRefacto(chainId, campaigns);