@merkl/api 0.17.39 → 0.17.41
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.
@@ -1,5 +1,5 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
import { DungeonKeeperService } from ".";
|
2
|
+
import { DungeonKeeperService } from "./dungeonKeeper.service";
|
3
3
|
// ─── DungeonKeeper Controller ──────────────────────────────────────────────────
|
4
4
|
export const DungeonKeeperController = new Elysia({ prefix: "/dungeonkeeper", detail: { hide: true } })
|
5
5
|
// ─── Assign the daily DungeonKeeper ──────────────────────────────────────────
|
@@ -87,7 +87,7 @@ export class OpportunityConvertorService {
|
|
87
87
|
name: opportunity.name,
|
88
88
|
status: opportunity.status.toLowerCase(),
|
89
89
|
action,
|
90
|
-
tokenIcons: opportunity.tokens.map(token => token.symbol),
|
90
|
+
tokenIcons: opportunity.tokens?.filter(token => token.icon?.length > 0).map(token => token.symbol), // Do not return tokens without icons,
|
91
91
|
tvl: opportunity?.tvlRecord?.total,
|
92
92
|
tvlBreakdown: tvlBreakdownTokens.length > 0 || Object.keys(tvlBreakdownDetails).length > 0
|
93
93
|
? {
|