@merkl/api 0.20.13 → 0.20.14
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.
@@ -22,11 +22,23 @@ export class MorphoMetadata {
|
|
22
22
|
};
|
23
23
|
}
|
24
24
|
static generateUrl(computeChainId, params, _morphoParams, subType) {
|
25
|
+
// Compound blue
|
26
|
+
if (computeChainId === ChainId.POLYGON) {
|
27
|
+
switch (subType) {
|
28
|
+
case MorphoSubCampaignType.META: {
|
29
|
+
return `https://www.compound.blue/${params.targetToken.toLowerCase()}`;
|
30
|
+
}
|
31
|
+
case MorphoSubCampaignType.SUPPLY_BLUE: {
|
32
|
+
return `https://www.compound.blue/${params.targetToken.toLowerCase()}`;
|
33
|
+
}
|
34
|
+
case MorphoSubCampaignType.BORROWING_BLUE:
|
35
|
+
case MorphoSubCampaignType.COLLATERAL_BLUE: {
|
36
|
+
return `https://www.compound.blue/borrow/${params.targetToken.toLowerCase()}`;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
25
40
|
switch (subType) {
|
26
41
|
case MorphoSubCampaignType.META: {
|
27
|
-
if (computeChainId === ChainId.POLYGON) {
|
28
|
-
return `https://www.compound.blue/${params.targetToken?.toLowerCase()}`;
|
29
|
-
}
|
30
42
|
return `https://app.morpho.org/vault?vault=${params.targetToken}&network=${NETWORK_LABELS[computeChainId]?.toLowerCase()}`;
|
31
43
|
}
|
32
44
|
case MorphoSubCampaignType.SUPPLY_BLUE: {
|