@merkl/api 0.20.83 → 0.20.84

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.
@@ -689,6 +689,7 @@ export declare abstract class OpportunityRepository {
689
689
  * 1. Opportunities with status LIVE
690
690
  * 2. Opportunities with non-test campaigns that have endTimestamp > now
691
691
  *
692
+ * @dev Excludes test campaigns
692
693
  */
693
694
  static findLiveWithCampaigns(chainId: MerklChainId, take?: number): Promise<({
694
695
  Chain: {
@@ -339,6 +339,7 @@ export class OpportunityRepository {
339
339
  * 1. Opportunities with status LIVE
340
340
  * 2. Opportunities with non-test campaigns that have endTimestamp > now
341
341
  *
342
+ * @dev Excludes test campaigns
342
343
  */
343
344
  static async findLiveWithCampaigns(chainId, take) {
344
345
  const now = moment().unix();
@@ -355,6 +356,9 @@ export class OpportunityRepository {
355
356
  },
356
357
  take: take ? take : undefined,
357
358
  orderBy: { endTimestamp: "desc" },
359
+ where: {
360
+ RewardToken: { isTest: false },
361
+ },
358
362
  },
359
363
  MainProtocol: true,
360
364
  Chain: { include: { Explorer: true } },