@merkl/api 0.13.11 → 0.13.13

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.
@@ -6,7 +6,6 @@ import { OpportunityService } from "../opportunity";
6
6
  import { InvalidParameter } from "../../../utils/error";
7
7
  import { executeSimple } from "../../../utils/execute";
8
8
  import { log } from "../../../utils/logger";
9
- import { apiDbClient } from "../../../utils/prisma";
10
9
  import { NETWORK_LABELS, } from "@sdk";
11
10
  import { utils } from "ethers";
12
11
  import moment from "moment";
@@ -152,22 +151,11 @@ export class CampaignService {
152
151
  return await CampaignRepository.findUniqueOrThrow(id);
153
152
  }
154
153
  static async findCampaignsToProcess(distributionChainId) {
155
- await apiDbClient.campaignStatus.updateMany({
156
- data: {
157
- status: "SUCCESS",
158
- },
159
- where: {
160
- Campaign: {
161
- distributionChainId: 1,
162
- },
163
- status: "PROCESSING",
164
- },
165
- });
166
154
  return (await CampaignRepository.findCampaignsToProcess(distributionChainId)).filter(campaign => campaign.endTimestamp > campaign?.CampaignStatus?.[0]?.computedUntil);
167
155
  }
168
156
  static async findNextCampaignToProcess(chainId) {
169
157
  const campaigns = await CampaignService.findCampaignsToProcess(chainId);
170
- return { campaignId: campaigns[0].campaignId };
158
+ return { campaignId: campaigns?.[0]?.campaignId };
171
159
  }
172
160
  static async pickCampaignToProcess(chainId) {
173
161
  const campaigns = await CampaignService.findCampaignsToProcess(chainId);
@@ -285,7 +285,7 @@ const VicunaInterfaceCampaigns = {
285
285
  campaignType: Campaign.ERC20,
286
286
  computeChainId: ChainId.SONIC,
287
287
  hooks: [],
288
- targetToken: "0x3D66328c513ed56D5dB02eE7dFBF5D0E1d90836D",
288
+ targetToken: "0x9418FDfcDdC546ADb990a575e2a31E4D30c2e36C",
289
289
  whitelist: [],
290
290
  blacklist: ["0xad1bB693975C16eC2cEEF65edD540BC735F8608B"],
291
291
  url: "https://vicunafinance.com/vaults",