@merkl/api 0.17.35 → 0.17.36
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.
- package/dist/src/backgroundJobs/index.js +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +12 -12
- package/dist/src/modules/v4/dungeonKeeper/dungeonKeeper.controller.d.ts +2 -1
- package/dist/src/modules/v4/explorer/explorer.controller.js +1 -1
- package/dist/src/routes/v3/opportunity.js +2 -2
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/modules/v4/dungeonKeeper/index.d.ts +0 -2
- package/dist/src/modules/v4/dungeonKeeper/index.js +0 -2
- package/dist/src/modules/v4/explorer/index.d.ts +0 -1
- package/dist/src/modules/v4/explorer/index.js +0 -1
@@ -2,7 +2,7 @@ import { Redis } from "../cache";
|
|
2
2
|
import { redisClient } from "../cache/redis";
|
3
3
|
import { getEulerV2Vaults, updateEulerVaultsCollatInDatabase } from "../libs/campaigns/utils/getEulerV2Vaults";
|
4
4
|
import { getUniswapV4Pools } from "../libs/campaigns/utils/getUniswapV4Pools";
|
5
|
-
import { DungeonKeeperController } from "../modules/v4/dungeonKeeper";
|
5
|
+
import { DungeonKeeperController } from "../modules/v4/dungeonKeeper/dungeonKeeper.controller";
|
6
6
|
import { log } from "../utils/logger";
|
7
7
|
import { engineDbClient } from "../utils/prisma";
|
8
8
|
import { swagger } from "@elysiajs/swagger";
|
@@ -97,21 +97,21 @@ export const tokenTypeToProtocol = {
|
|
97
97
|
[tokenType.aave_borrowing]: { protocol: "Aave", action: OpportunityAction.BORROW },
|
98
98
|
[tokenType.anglesLiquid]: { protocol: "Angles", action: OpportunityAction.LEND },
|
99
99
|
[tokenType.aave_lending]: { protocol: "Aave", action: OpportunityAction.LEND },
|
100
|
-
[tokenType.aerodrome]: { protocol: "Aerodrome
|
101
|
-
[tokenType.akron]: { protocol: "Akron
|
100
|
+
[tokenType.aerodrome]: { protocol: "Aerodrome", action: OpportunityAction.POOL },
|
101
|
+
[tokenType.akron]: { protocol: "Akron", action: OpportunityAction.POOL },
|
102
102
|
[tokenType.aura]: { protocol: "Aura", action: OpportunityAction.POOL },
|
103
103
|
[tokenType.balancerGauge]: { protocol: "Balancer Gauge", action: OpportunityAction.POOL },
|
104
|
-
[tokenType.balancerPool]: { protocol: "Balancer
|
105
|
-
[tokenType.baseswap]: { protocol: "Baseswap
|
106
|
-
[tokenType.beefy]: { protocol: "Moo Velodrome
|
104
|
+
[tokenType.balancerPool]: { protocol: "Balancer", action: OpportunityAction.POOL },
|
105
|
+
[tokenType.baseswap]: { protocol: "Baseswap", action: OpportunityAction.HOLD },
|
106
|
+
[tokenType.beefy]: { protocol: "Moo Velodrome", action: OpportunityAction.POOL },
|
107
107
|
[tokenType.compound]: { protocol: "Compound", action: OpportunityAction.LEND },
|
108
108
|
[tokenType.curve]: { protocol: "Curve", action: OpportunityAction.POOL },
|
109
109
|
[tokenType.curve_2]: { protocol: "Curve", action: OpportunityAction.POOL },
|
110
|
-
[tokenType.dragonswap]: { protocol: "Dragonswap
|
110
|
+
[tokenType.dragonswap]: { protocol: "Dragonswap", action: OpportunityAction.POOL },
|
111
111
|
[tokenType.enzyme]: { protocol: "Enzyme", action: OpportunityAction.HOLD },
|
112
|
-
[tokenType.euler_borrow]: { protocol: "Euler
|
113
|
-
[tokenType.euler_lend]: { protocol: "Euler
|
114
|
-
[tokenType.fenix]: { protocol: "Fenix
|
112
|
+
[tokenType.euler_borrow]: { protocol: "Euler", action: OpportunityAction.BORROW },
|
113
|
+
[tokenType.euler_lend]: { protocol: "Euler", action: OpportunityAction.LEND },
|
114
|
+
[tokenType.fenix]: { protocol: "Fenix", action: OpportunityAction.HOLD },
|
115
115
|
[tokenType.filament]: { protocol: "Filament", action: OpportunityAction.HOLD },
|
116
116
|
[tokenType.fluid]: { protocol: "Fluid", action: OpportunityAction.LEND },
|
117
117
|
[tokenType.fraxlend]: { protocol: "Fraxlend", action: OpportunityAction.LEND },
|
@@ -135,8 +135,8 @@ export const tokenTypeToProtocol = {
|
|
135
135
|
[tokenType.sturdy_silo]: { protocol: "Sturdy", action: OpportunityAction.LEND },
|
136
136
|
[tokenType.syncswap]: { protocol: "SyncSwap", action: OpportunityAction.POOL },
|
137
137
|
[tokenType.toros]: { protocol: "Toros", action: OpportunityAction.HOLD },
|
138
|
-
[tokenType.uniswapv2]: { protocol: "Uniswap
|
139
|
-
[tokenType.velodrome]: { protocol: "Velodrome
|
138
|
+
[tokenType.uniswapv2]: { protocol: "Uniswap", action: OpportunityAction.POOL },
|
139
|
+
[tokenType.velodrome]: { protocol: "Velodrome", action: OpportunityAction.POOL },
|
140
140
|
[tokenType.venus]: { protocol: "Venus", action: OpportunityAction.LEND },
|
141
141
|
[tokenType.unknown]: { protocol: "Unknown", action: OpportunityAction.HOLD },
|
142
142
|
[tokenType.yei_borrowing]: { protocol: "Yei Finance", action: OpportunityAction.HOLD },
|
@@ -152,7 +152,7 @@ export const tokenTypeToProtocol = {
|
|
152
152
|
[tokenType.maha]: { protocol: "Maha", action: OpportunityAction.HOLD },
|
153
153
|
[tokenType.tempest]: { protocol: "Tempest", action: OpportunityAction.POOL },
|
154
154
|
[tokenType.pendleYT]: { protocol: "Pendle", action: OpportunityAction.HOLD },
|
155
|
-
[tokenType.pancakeswap]: { protocol: "PancakeSwap
|
155
|
+
[tokenType.pancakeswap]: { protocol: "PancakeSwap", action: OpportunityAction.POOL },
|
156
156
|
[tokenType.tempestStaking]: { protocol: "Tempest", action: OpportunityAction.HOLD },
|
157
157
|
[tokenType.holdstation]: { protocol: "HoldStation", action: OpportunityAction.HOLD },
|
158
158
|
[tokenType.noLinkVault]: { protocol: "NoLinkVault", action: OpportunityAction.HOLD },
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { AuthorizationHeadersDto, BackOfficeGuard } from "../../../guards/BackOffice.guard";
|
2
2
|
import Elysia from "elysia";
|
3
|
-
import { ExplorerService } from ".";
|
4
3
|
import { CreateExplorerDto } from "./explorer.model";
|
4
|
+
import { ExplorerService } from "./explorer.service";
|
5
5
|
// ─── Explorer Controller ───────────────────────────────────────────────────────
|
6
6
|
export const ExplorerController = new Elysia({ prefix: "/explorers", detail: { tags: ["Explorers"] } })
|
7
7
|
// ─── Create An Explorer ──────────────────────────────────────────────────────
|
@@ -12,8 +12,8 @@ export const query = t.Object({
|
|
12
12
|
});
|
13
13
|
export default (app) => {
|
14
14
|
return app.get("/opportunity", async ({ query: { campaigns: showCampaigns, ...filters } }) => {
|
15
|
-
await OpportunityConvertorService.logKeyAndTTLV3Opportunities(showCampaigns ?? false, !!filters.testTokens ? filters.testTokens :
|
16
|
-
return await OpportunityConvertorService.wrapV3Opportunities(showCampaigns ?? false, !!filters.testTokens ? filters.testTokens :
|
15
|
+
await OpportunityConvertorService.logKeyAndTTLV3Opportunities(showCampaigns ?? false, !!filters.testTokens ? filters.testTokens : false, !!filters.mainParameter ? filters.mainParameter : undefined, !!filters.chainId ? filters.chainId.toString() : undefined);
|
16
|
+
return await OpportunityConvertorService.wrapV3Opportunities(showCampaigns ?? false, !!filters.testTokens ? filters.testTokens : false, !!filters.mainParameter ? filters.mainParameter : undefined, !!filters.chainId ? filters.chainId.toString() : undefined);
|
17
17
|
}, {
|
18
18
|
transform({ query }) {
|
19
19
|
query.chainId = !query.chainId ? undefined : Number.parseInt(query.chainId.toString());
|