@merkl/api 0.10.359 → 0.10.361

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.
@@ -72,7 +72,7 @@ export async function ERC20DynamicData(chainId, campaigns) {
72
72
  typeInfo: {},
73
73
  };
74
74
  typeStruct = getTokenTypeRound1(resultRound1, campaign.campaignParameters.targetToken, i, campaign);
75
- i += callsRounds1.length;
75
+ i += 6;
76
76
  tokenTypesByCampaign[campaign.campaignId] = typeStruct;
77
77
  callsRounds2.push(...typeStruct.calls);
78
78
  }
@@ -57,6 +57,9 @@ export const getErc20Metadata = async (computeChainId, distributionChainId, camp
57
57
  catch {
58
58
  log.warn(`failed to fetch dynamic data for ERC20 campaign ${campaignId}`);
59
59
  }
60
+ if (mainProtocolId === "unknown") {
61
+ mainProtocolId = undefined;
62
+ }
60
63
  return {
61
64
  action,
62
65
  name,