@merkl/api 0.10.341 → 0.10.342

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.
@@ -205,43 +205,29 @@ export class OpportunityRepository {
205
205
  const order = query.order ?? "desc";
206
206
  const test = query.test ?? false;
207
207
  const creatorAddress = query.creatorAddress ?? null;
208
- const noFilters = Object.values(filters).every(v => v === undefined);
209
- const tokensFilters = tokens?.map(symbol => ({
210
- Tokens: { some: { symbol: { equals: symbol, mode: "insensitive" } } },
211
- }));
212
208
  const orderBy = {
213
209
  [sort]: order,
214
210
  };
215
211
  return {
216
212
  orderBy,
217
- where: noFilters
218
- ? { OR: tokensFilters }
219
- : {
220
- AND: [
221
- ...(tokensFilters ?? []),
222
- { tags: !filters.tags ? undefined : { has: filters.tags } },
223
- { tvl: filters.minimumTvl ? { gte: filters.minimumTvl } : undefined },
224
- { chainId: !chainIds ? undefined : { in: chainIds } },
225
- { name: !filters.name ? undefined : { contains: filters.name, mode: "insensitive" } },
226
- {
227
- action: !actions ? undefined : { in: actions },
228
- },
229
- {
230
- status: !status ? undefined : { in: status },
231
- },
232
- { mainProtocolId: !protocols ? undefined : { in: protocols } },
233
- {
234
- Campaigns: test || !creatorAddress
235
- ? undefined
236
- : {
237
- some: {
238
- RewardToken: !test ? { isTest: false } : undefined,
239
- creatorAddress: creatorAddress ? creatorAddress : undefined,
240
- },
241
- },
213
+ where: {
214
+ tags: !filters.tags ? undefined : { has: filters.tags },
215
+ tvl: filters.minimumTvl ? { gte: filters.minimumTvl } : undefined,
216
+ chainId: !chainIds ? undefined : { in: chainIds },
217
+ name: !filters.name ? undefined : { contains: filters.name, mode: "insensitive" },
218
+ action: !actions ? undefined : { in: actions },
219
+ status: !status ? undefined : { in: status },
220
+ mainProtocolId: !protocols ? undefined : { in: protocols },
221
+ Campaigns: test || !creatorAddress
222
+ ? undefined
223
+ : {
224
+ some: {
225
+ RewardToken: !test ? { isTest: false } : undefined,
226
+ creatorAddress: creatorAddress ? creatorAddress : undefined,
242
227
  },
243
- ],
244
- },
228
+ },
229
+ Tokens: { some: { symbol: { in: tokens } } },
230
+ },
245
231
  };
246
232
  }
247
233
  static async findMany(query) {
@@ -192,7 +192,7 @@ const ModeInterfaceCampaigns = {
192
192
  hooks: [],
193
193
  poolAddress: "0xd54aba804a676c8f265e2e6742d7b86d383d093b",
194
194
  whitelist: [],
195
- blacklist: ["0x67135675e22F7ff34eBA30f15f39F9cd30d29079"],
195
+ blacklist: [],
196
196
  url: "https://app.kim.exchange/pools/v4/0xd54aba804a676c8f265e2e6742d7b86d383d093b",
197
197
  forwarders: [],
198
198
  isOutOfRangeIncentivized: false,
@@ -403,7 +403,7 @@ const ModeInterfaceCampaigns = {
403
403
  hooks: [],
404
404
  poolAddress: "0x27f0976b26194c448d987c275bb409eab6083964",
405
405
  whitelist: [],
406
- blacklist: ["0x67135675e22F7ff34eBA30f15f39F9cd30d29079"],
406
+ blacklist: [],
407
407
  url: "https://app.kim.exchange/pools/v4/0x27f0976b26194c448d987c275bb409eab6083964",
408
408
  forwarders: [],
409
409
  isOutOfRangeIncentivized: false,
@@ -560,7 +560,7 @@ const ModeInterfaceCampaigns = {
560
560
  hooks: [],
561
561
  poolAddress: "0x34d6146f8fdd9599f574fc6a686d6f6498217b7e",
562
562
  whitelist: [],
563
- blacklist: ["0x788F382d835Cb00851b883DAD7f30798AE480622"],
563
+ blacklist: [],
564
564
  url: "https://app.kim.exchange/pools/v4/0x34d6146f8fdd9599f574fc6a686d6f6498217b7e",
565
565
  isOutOfRangeIncentivized: false,
566
566
  weightFees: 2000,
@@ -635,7 +635,7 @@ const ModeInterfaceCampaigns = {
635
635
  campaignType: Campaign.ERC20,
636
636
  computeChainId: ChainId.MODE,
637
637
  hooks: [],
638
- targetToken: "0xa30c1544d12309a519A205A486f6AF0515dFA442",
638
+ targetToken: "0xbEd575b0FeDa4F84b71144634693DaCc07749471",
639
639
  whitelist: [],
640
640
  blacklist: [],
641
641
  url: "https://app.mitosis.org/?asset=ezETH&type=deposit&to=mode",