@merkl/api 0.19.25 → 0.19.27
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.
@@ -70,10 +70,12 @@ export class ClammMetadata {
|
|
70
70
|
}
|
71
71
|
// Protocol id normalization
|
72
72
|
let mainProtocolId = AMM[params.amm]
|
73
|
-
? camelToKebabCase(AMM[params.amm].replace(/\/?(V(\d+_)?\d+)/g, "")
|
73
|
+
? camelToKebabCase(AMM[params.amm].replace(/\/?(V(\d+_)?\d+)/g, ""))
|
74
74
|
: undefined;
|
75
75
|
if (mainProtocolId?.includes("stryke"))
|
76
76
|
mainProtocolId = "stryke";
|
77
|
+
else if (mainProtocolId?.includes("quickswap"))
|
78
|
+
mainProtocolId = "quickswap";
|
77
79
|
// Make sure the protocol exist in the correct type
|
78
80
|
const protocol = (await ProtocolService.findMany({ id: mainProtocolId }))?.[0];
|
79
81
|
if (!!protocol) {
|
@@ -46,7 +46,8 @@ const main = async () => {
|
|
46
46
|
else if (status !== "LIVE" && campaign.startTimestamp > now)
|
47
47
|
status = "SOON";
|
48
48
|
}
|
49
|
-
|
49
|
+
if (opportunity.status !== status)
|
50
|
+
await OpportunityService.updateStatus(opportunity.id, status);
|
50
51
|
}
|
51
52
|
// 3. Update the status of the opportunities associated to future campaigns
|
52
53
|
const futureOpportunityIds = (await CampaignService.getFutureCampaigns({ computeChainId: chainId })).map(c => c.Opportunity.id);
|