@merkl/api 0.10.135 → 0.10.137

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.
@@ -102,6 +102,7 @@ export class OpportunityRepository {
102
102
  const actions = query.action?.split(",");
103
103
  const status = query.status?.split(",");
104
104
  const tokens = query.tokens?.split(",");
105
+ const protocols = query.mainProtocolId?.split(",");
105
106
  const sort = (query.sort === "rewards" ? "dailyRewards" : query.sort) ?? "dailyRewards";
106
107
  const order = query.order ?? "desc";
107
108
  const noFilters = Object.values(filters).every(v => v === undefined);
@@ -127,7 +128,7 @@ export class OpportunityRepository {
127
128
  {
128
129
  status: !status ? undefined : { in: status },
129
130
  },
130
- { mainProtocolId: !filters.mainProtocolId ? undefined : { equals: filters.mainProtocolId } },
131
+ { mainProtocolId: !protocols ? undefined : { in: protocols } },
131
132
  ],
132
133
  },
133
134
  };