@merkl/api 0.12.6 → 0.12.8
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/libs/campaigns/campaignTypes/ERC20SubTypes/processor/StakingProcessor.d.ts +4 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/StakingProcessor.js +17 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +1 -0
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +19 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -16,8 +16,11 @@ type callKeysStaking = mandatoryCallKeys & {
|
|
16
16
|
};
|
17
17
|
type dataRawStaking = callKeysStaking & {
|
18
18
|
eip712DomainName: string;
|
19
|
+
underlying: string;
|
20
|
+
};
|
21
|
+
type dataTypeStaking = dataType & {
|
22
|
+
underlying: string;
|
19
23
|
};
|
20
|
-
type dataTypeStaking = dataType & {};
|
21
24
|
export declare class StakingProcessor extends GenericProcessor<callKeysStaking, dataRawStaking, dataTypeStaking> {
|
22
25
|
rounds: {
|
23
26
|
round1: callType[];
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { generateCardName } from "../../../../../utils/generateCardName";
|
1
2
|
import { GenericProcessor } from "./GenericProcessor";
|
2
3
|
export class StakingProcessor extends GenericProcessor {
|
3
4
|
rounds = {
|
@@ -28,12 +29,27 @@ export class StakingProcessor extends GenericProcessor {
|
|
28
29
|
typeInfo.stakingContract === "0xcd28cF8f7755f03967D27E128B38022B63919836") {
|
29
30
|
typeInfo.stakingSymbol = "Llamalend";
|
30
31
|
}
|
32
|
+
if (typeInfo.stakingContract === "0xA55eD5808aeCDF23AE3782C1443185f5D2363ce7") {
|
33
|
+
typeInfo.underlying = "0x1b6ec227ceBeC25118270efbb4b67642fc29965E";
|
34
|
+
}
|
31
35
|
}
|
32
36
|
processingRound4(typeInfo) {
|
33
37
|
super.processingRound4(typeInfo);
|
34
38
|
}
|
35
39
|
async processingRound5(index, type, typeInfo, calls, campaign, pricer) {
|
36
|
-
|
40
|
+
const { whitelistedSupplyTargetToken, totalSupply, blacklistedSupply } = this.handleWhiteListBlacklistRound5(typeInfo, campaign);
|
41
|
+
const priceTargetToken = (await pricer.get({ symbol: campaign.campaignParameters.symbolTargetToken })) ?? 0;
|
42
|
+
const tvl = whitelistedSupplyTargetToken * priceTargetToken;
|
43
|
+
return {
|
44
|
+
...typeInfo,
|
45
|
+
type,
|
46
|
+
whitelistedSupplyTargetToken,
|
47
|
+
totalSupply,
|
48
|
+
priceTargetToken,
|
49
|
+
tvl,
|
50
|
+
blacklistedSupply,
|
51
|
+
cardName: generateCardName(type, typeInfo, campaign),
|
52
|
+
};
|
37
53
|
}
|
38
54
|
computeRound1(type, typeInfo) {
|
39
55
|
return super.computeRound1(type, typeInfo);
|
@@ -61,7 +61,7 @@ function satisfiesNameConditions(name, type) {
|
|
61
61
|
case tokenType.beefy:
|
62
62
|
return lowerCaseName.startsWith("moo velo");
|
63
63
|
case tokenType.uniswapv2:
|
64
|
-
return lowerCaseName.includes("uniswap");
|
64
|
+
return lowerCaseName.includes("uniswap") && lowerCaseName !== "uniswap";
|
65
65
|
case tokenType.fenix:
|
66
66
|
return lowerCaseName.includes("stablev1 amm");
|
67
67
|
case tokenType.ra:
|
@@ -89,6 +89,7 @@ export declare enum zkSyncCampaigns {
|
|
89
89
|
Maverick_ETH_wstETH_Boosted = "Maverick ETH/wstETH Boosted Position 0.002pct Fee 0.10pct Width Both 0x5f2f2d05618b5a2e3d0e32604ac02efc3fca888c",
|
90
90
|
Maverick_ZK_ETH_Boosted = "Maverick ZK-ETH Boosted Position 0.02% Fee 25.00% Width Mode Static Width Both 0x940350023026b52ae8b1997f15166b2060e04940",
|
91
91
|
Maverick_ETH_zkETH_Boosted = "Maverick ETH-zkETH ETH-zkETH Boosted Position 0.03% Fee 0.10% Width Mode Static 0xf7cCdB990b31D2902D99F508bbBdd3ACb7937bcf",
|
92
|
+
Maverick_WETH_wstETH_Boosted_V2 = "Maverick WETH-wstETH Boosted Position 0x1595bCdbfB7B6df20d56666f78a94ee5b23F3b93",
|
92
93
|
SyncSwap_wBTC_MBTC = "SyncSwap WBTC/M-BTC Stable Pool v2.1 0x57b11c2c0cdc81517662698a48473938e81d5834",
|
93
94
|
SyncSwap_USDC_USDT = "SyncSwap USDC/USDT Stable Pool 0x0259d9dfb638775858b1d072222237e2ce7111c0",
|
94
95
|
SyncSwap_USDC_USDCe = "SyncSwap USDC/USDC.e Stable Pool 0xa93472c1b88243793e145b237b7172f1ee547836",
|
@@ -92,6 +92,7 @@ export var zkSyncCampaigns;
|
|
92
92
|
zkSyncCampaigns["Maverick_ETH_wstETH_Boosted"] = "Maverick ETH/wstETH Boosted Position 0.002pct Fee 0.10pct Width Both 0x5f2f2d05618b5a2e3d0e32604ac02efc3fca888c";
|
93
93
|
zkSyncCampaigns["Maverick_ZK_ETH_Boosted"] = "Maverick ZK-ETH Boosted Position 0.02% Fee 25.00% Width Mode Static Width Both 0x940350023026b52ae8b1997f15166b2060e04940";
|
94
94
|
zkSyncCampaigns["Maverick_ETH_zkETH_Boosted"] = "Maverick ETH-zkETH ETH-zkETH Boosted Position 0.03% Fee 0.10% Width Mode Static 0xf7cCdB990b31D2902D99F508bbBdd3ACb7937bcf";
|
95
|
+
zkSyncCampaigns["Maverick_WETH_wstETH_Boosted_V2"] = "Maverick WETH-wstETH Boosted Position 0x1595bCdbfB7B6df20d56666f78a94ee5b23F3b93";
|
95
96
|
zkSyncCampaigns["SyncSwap_wBTC_MBTC"] = "SyncSwap WBTC/M-BTC Stable Pool v2.1 0x57b11c2c0cdc81517662698a48473938e81d5834";
|
96
97
|
zkSyncCampaigns["SyncSwap_USDC_USDT"] = "SyncSwap USDC/USDT Stable Pool 0x0259d9dfb638775858b1d072222237e2ce7111c0";
|
97
98
|
zkSyncCampaigns["SyncSwap_USDC_USDCe"] = "SyncSwap USDC/USDC.e Stable Pool 0xa93472c1b88243793e145b237b7172f1ee547836";
|
@@ -1250,7 +1251,7 @@ const ZkSyncInterfaceCampaigns = {
|
|
1250
1251
|
hookType: HOOK.RAFFLE,
|
1251
1252
|
resolutionIndex: 0,
|
1252
1253
|
selectionMethod: selectionRaffleMethod.RANDOM,
|
1253
|
-
numberOfWinners:
|
1254
|
+
numberOfWinners: 3,
|
1254
1255
|
multipleWinningPossible: false,
|
1255
1256
|
weightIncreasesRewards: false,
|
1256
1257
|
weightedSelection: true,
|
@@ -1949,6 +1950,23 @@ const ZkSyncInterfaceCampaigns = {
|
|
1949
1950
|
},
|
1950
1951
|
],
|
1951
1952
|
},
|
1953
|
+
[zkSyncCampaigns.Maverick_WETH_wstETH_Boosted_V2]: {
|
1954
|
+
campaignType: Campaign.ERC20,
|
1955
|
+
computeChainId: ChainId.ZKSYNC,
|
1956
|
+
targetToken: "0x1595bCdbfB7B6df20d56666f78a94ee5b23F3b93",
|
1957
|
+
hooks: [],
|
1958
|
+
whitelist: [],
|
1959
|
+
blacklist: [],
|
1960
|
+
url: "https://app.mav.xyz/boosted-position/0x1595bCdbfB7B6df20d56666f78a94ee5b23F3b93/0xcFAAf84310bA90D28D989553913A49fd3d38bDe1?chain=324&f=true",
|
1961
|
+
forwarders: [
|
1962
|
+
{
|
1963
|
+
forwarderType: Forwarder.MAVERICK_BOOSTED_POSITIONS,
|
1964
|
+
priority: 0,
|
1965
|
+
sender: "0xcFAAf84310bA90D28D989553913A49fd3d38bDe1",
|
1966
|
+
owner: "0x135280B130672CE862653238115f23892c941a78",
|
1967
|
+
},
|
1968
|
+
],
|
1969
|
+
},
|
1952
1970
|
[zkSyncCampaigns.SyncSwap_wBTC_MBTC]: {
|
1953
1971
|
campaignType: Campaign.ERC20,
|
1954
1972
|
computeChainId: ChainId.ZKSYNC,
|