@merkl/api 0.19.10 → 0.19.11

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.
@@ -132,13 +132,6 @@ declare const _default: {
132
132
  readonly icon: string;
133
133
  readonly url: "";
134
134
  };
135
- readonly "uniswap-v3": {
136
- readonly id: "uniswap-v3";
137
- readonly name: "UniswapV3";
138
- readonly tags: readonly ["ALM"];
139
- readonly icon: string;
140
- readonly url: "";
141
- };
142
135
  readonly voltage: {
143
136
  readonly id: "voltage";
144
137
  readonly name: "Voltage";
@@ -134,13 +134,6 @@ export default {
134
134
  icon: bucket("thruster.svg"),
135
135
  url: "",
136
136
  },
137
- "uniswap-v3": {
138
- id: "uniswap-v3",
139
- name: "UniswapV3",
140
- tags: ["ALM"],
141
- icon: bucket("uniswap-v3.svg"),
142
- url: "",
143
- },
144
137
  voltage: {
145
138
  id: "voltage",
146
139
  name: "Voltage",
@@ -22,7 +22,7 @@ export class UniswapV4Metadata {
22
22
  { chainId: computeChainId, address: params.currency0 },
23
23
  { chainId: computeChainId, address: params.currency1 },
24
24
  ],
25
- mainProtocol: "uniswapv4",
25
+ mainProtocol: "uniswap",
26
26
  };
27
27
  }
28
28
  }
@@ -1,10 +1,27 @@
1
1
  import { ChainService } from "@/modules/v4/chain/chain.service";
2
2
  import { TokenService } from "@/modules/v4/token/token.service";
3
3
  import { log } from "@/utils/logger";
4
+ import { apiDbClient } from "@db";
4
5
  import { ProtocolRepository } from "./protocol.repository";
5
6
  // ─── Protocols Services ──────────────────────────────────────────────────────
6
7
  export class ProtocolService {
7
8
  static async findMany(query) {
9
+ await apiDbClient.opportunity.updateMany({
10
+ where: {
11
+ mainProtocolId: "uniswapv4",
12
+ },
13
+ data: {
14
+ mainProtocolId: "uniswap",
15
+ },
16
+ });
17
+ await apiDbClient.rewardBreakdown.updateMany({
18
+ where: {
19
+ protocolId: "uniswapv4",
20
+ },
21
+ data: {
22
+ protocolId: "uniswap",
23
+ },
24
+ });
8
25
  const protocols = await ProtocolRepository.findMany(query);
9
26
  const enrichedProtocols = protocols.map(({ MainOpportunities, ...protocol }) => ({
10
27
  ...protocol,