@merkl/api 0.20.100 → 0.20.102
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/eden/index.d.ts +12 -12
- package/dist/src/engine/{erc20SubTypeProcessors/helpers/tokenType.d.ts → campaignTVL/implementations/Erc20/Erc20SubType.d.ts} +5 -13
- package/dist/src/engine/campaignTVL/implementations/Erc20/Erc20SubType.js +106 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/computeSubTypes.d.ts +9 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/computeSubTypes.js +11 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/index.d.ts +6 -0
- package/dist/src/engine/campaignTVL/implementations/Erc20/index.js +8 -0
- package/dist/src/engine/dynamicData/implementations/Erc20.d.ts +4 -4
- package/dist/src/engine/dynamicData/implementations/Erc20.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/GenericProcessor.d.ts +20 -19
- package/dist/src/engine/erc20SubTypeProcessors/GenericProcessor.js +1 -4
- package/dist/src/engine/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/helpers/factoryFinder.js +31 -31
- package/dist/src/engine/erc20SubTypeProcessors/helpers/hardcoded.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/helpers/hardcoded.js +17 -17
- package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.js +6 -6
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AssetProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +40 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +32 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +29 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +31 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/FraxProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GammaALMProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +4 -4
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/Satlayer.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TempestVaultProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +7 -7
- package/dist/src/engine/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +4 -4
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/curveProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/processorMapping.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/processorMapping.js +100 -100
- package/dist/src/engine/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/stakedCurveProcessor.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesPrices.d.ts +3 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesPrices.js +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.d.ts +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound1.js +84 -84
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound2.d.ts +3 -3
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound3.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/subtypesRound4.d.ts +2 -2
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeStruct.d.ts +7 -0
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeStruct.js +1 -0
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +7 -0
- package/dist/src/engine/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.js +130 -0
- package/dist/src/engine/opportunityMetadata/implementations/{Erc20.d.ts → Erc20/index.d.ts} +1 -1
- package/dist/src/engine/opportunityMetadata/implementations/{Erc20.js → Erc20/index.js} +1 -1
- package/dist/src/engine/opportunityMetadata/implementations/JsonAirdrop.d.ts +2 -2
- package/dist/src/index.d.ts +4 -4
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +2 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +7 -5
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +3 -3
- package/dist/src/modules/v4/router.d.ts +4 -4
- package/dist/src/utils/decodeCalls.d.ts +3 -3
- package/dist/src/utils/decodeCalls.js +80 -80
- package/dist/src/utils/encodeCalls.d.ts +2 -2
- package/dist/src/utils/encodeCalls.js +77 -77
- package/dist/src/utils/generateCardName.d.ts +2 -2
- package/dist/src/utils/generateCardName.js +97 -97
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/engine/erc20SubTypeProcessors/helpers/tokenType.js +0 -232
- package/dist/src/utils/generateIcons.d.ts +0 -3
- package/dist/src/utils/generateIcons.js +0 -65
package/package.json
CHANGED
@@ -1,232 +0,0 @@
|
|
1
|
-
import { OpportunityAction } from "@db/api";
|
2
|
-
// This enum's order is important, do not change it unless you know what you are doing
|
3
|
-
export var tokenType;
|
4
|
-
(function (tokenType) {
|
5
|
-
tokenType["aura"] = "aura";
|
6
|
-
tokenType["anglesLiquid"] = "anglesLiquid";
|
7
|
-
tokenType["poolside"] = "poolside";
|
8
|
-
tokenType["balancerGauge"] = "balancerGauge";
|
9
|
-
tokenType["gearbox"] = "gearbox";
|
10
|
-
tokenType["euler_borrow"] = "euler_borrow";
|
11
|
-
tokenType["euler_lend"] = "euler_lend";
|
12
|
-
tokenType["filament"] = "filament";
|
13
|
-
tokenType["fluid"] = "fluid";
|
14
|
-
tokenType["compound"] = "compound";
|
15
|
-
tokenType["radiant_lend"] = "radiant_lend";
|
16
|
-
tokenType["radiant_borrow"] = "radiant_borrow";
|
17
|
-
tokenType["ionic"] = "ionic";
|
18
|
-
tokenType["layerbank"] = "layerbank";
|
19
|
-
tokenType["moonwell"] = "moonwell";
|
20
|
-
tokenType["yei_borrowing"] = "yei_borrowing";
|
21
|
-
tokenType["ironclad_borrowing"] = "ironclad_borrowing";
|
22
|
-
tokenType["zerolend_borrowing"] = "zerolend_borrowing";
|
23
|
-
tokenType["yei_lending"] = "yei_lending";
|
24
|
-
tokenType["ironclad_lending"] = "ironclad_lending";
|
25
|
-
tokenType["zerolend_lending"] = "zerolend_lending";
|
26
|
-
tokenType["aave_borrowing"] = "aave_borrowing";
|
27
|
-
tokenType["aave_lending"] = "aave_lending";
|
28
|
-
tokenType["sturdy_aggregator"] = "sturdy_aggregator";
|
29
|
-
tokenType["sturdy_silo"] = "sturdy_silo";
|
30
|
-
tokenType["fraxlend"] = "fraxlend";
|
31
|
-
tokenType["uniswapv2"] = "uniswapv2";
|
32
|
-
tokenType["fenix"] = "fenix";
|
33
|
-
tokenType["ra"] = "ra";
|
34
|
-
tokenType["syncswap"] = "syncswap";
|
35
|
-
tokenType["curve_2"] = "curve_2";
|
36
|
-
tokenType["silostaking"] = "silostaking";
|
37
|
-
tokenType["beefy"] = "beefy";
|
38
|
-
tokenType["balancerPool"] = "balancerPool";
|
39
|
-
tokenType["unknown"] = "unknown";
|
40
|
-
tokenType["metamorpho"] = "metamorpho";
|
41
|
-
tokenType["aerodrome"] = "aerodrome";
|
42
|
-
tokenType["velodrome"] = "velodrome";
|
43
|
-
tokenType["curve"] = "curve";
|
44
|
-
tokenType["splice"] = "splice";
|
45
|
-
tokenType["toros"] = "toros";
|
46
|
-
tokenType["akron"] = "akron";
|
47
|
-
tokenType["enzyme"] = "enzyme";
|
48
|
-
tokenType["dragonswap"] = "dragonswap";
|
49
|
-
tokenType["koi"] = "koi";
|
50
|
-
tokenType["baseswap"] = "baseswap";
|
51
|
-
tokenType["zkswap"] = "zkswap";
|
52
|
-
tokenType["ironcladStaking"] = "ironcladStaking";
|
53
|
-
tokenType["rfx_slv"] = "rfx_slv";
|
54
|
-
tokenType["rfx"] = "rfx";
|
55
|
-
tokenType["woofi"] = "woofi";
|
56
|
-
tokenType["pendle"] = "pendle";
|
57
|
-
tokenType["maverickBoostedPosition"] = "maverickBoostedPosition";
|
58
|
-
tokenType["zkSwapThreePool"] = "zkSwapThreePool";
|
59
|
-
tokenType["maha"] = "maha";
|
60
|
-
tokenType["tempest"] = "tempest";
|
61
|
-
tokenType["pendleYT"] = "pendleYT";
|
62
|
-
tokenType["pancakeswap"] = "pancakeswap";
|
63
|
-
tokenType["tempestStaking"] = "tempestStaking";
|
64
|
-
tokenType["holdstation"] = "holdstation";
|
65
|
-
tokenType["noLinkVault"] = "noLinkVault";
|
66
|
-
tokenType["cpmmGamma"] = "cpmmGamma";
|
67
|
-
tokenType["crosscurve"] = "crosscurve";
|
68
|
-
tokenType["venus"] = "venus";
|
69
|
-
tokenType["reactor_fusion"] = "reactor_fusion";
|
70
|
-
tokenType["vicuna"] = "vicuna";
|
71
|
-
tokenType["traderJoe"] = "traderJoe";
|
72
|
-
tokenType["curveNPool"] = "curveNPool";
|
73
|
-
tokenType["avalon_borrowing"] = "avalon_borrowing";
|
74
|
-
tokenType["avalon_lending"] = "avalon_lending";
|
75
|
-
tokenType["satlayer"] = "satlayer";
|
76
|
-
tokenType["veda"] = "veda";
|
77
|
-
tokenType["superlend_borrowing"] = "superlend_borrowing";
|
78
|
-
tokenType["superlend_lending"] = "superlend_lending";
|
79
|
-
tokenType["cian"] = "cian";
|
80
|
-
tokenType["concrete"] = "concrete";
|
81
|
-
tokenType["lendle_borrowing"] = "lendle_borrowing";
|
82
|
-
tokenType["lendle_lending"] = "lendle_lending";
|
83
|
-
tokenType["takotako_borrowing"] = "takotako_borrowing";
|
84
|
-
tokenType["takotako_lending"] = "takotako_lending";
|
85
|
-
tokenType["xlend_borrowing"] = "xlend_borrowing";
|
86
|
-
tokenType["xlend_lending"] = "xlend_lending";
|
87
|
-
tokenType["equalizer_gauge"] = "equalizer_gauge";
|
88
|
-
tokenType["vicuna_lending"] = "vicuna_lending";
|
89
|
-
tokenType["vicuna_borrowing"] = "vicuna_borrowing";
|
90
|
-
tokenType["spectra_lpt"] = "spectra_lpt";
|
91
|
-
tokenType["spectra_yt"] = "spectra_yt";
|
92
|
-
tokenType["hourglass"] = "hourglass";
|
93
|
-
tokenType["katana"] = "katana";
|
94
|
-
tokenType["balancerV3"] = "balancerV3";
|
95
|
-
tokenType["hanji_liquidity_vault_token"] = "hanji_liquidity_vault_token";
|
96
|
-
tokenType["xU308"] = "xU308";
|
97
|
-
tokenType["bunniV2"] = "bunniV2";
|
98
|
-
tokenType["beratrax_vault"] = "beratrax_vault";
|
99
|
-
tokenType["beraborrow_gauge"] = "beraborrow_gauge";
|
100
|
-
tokenType["curve_gauge"] = "curve_gauge";
|
101
|
-
tokenType["sake_borrowing"] = "sake_borrowing";
|
102
|
-
tokenType["sake_lending"] = "sake_lending";
|
103
|
-
tokenType["gamma"] = "gamma";
|
104
|
-
})(tokenType || (tokenType = {}));
|
105
|
-
export const tokenTypeToProtocolAndAction = {
|
106
|
-
[tokenType.aave_borrowing]: { protocol: "aave", action: OpportunityAction.BORROW },
|
107
|
-
[tokenType.anglesLiquid]: { protocol: "angles", action: OpportunityAction.LEND },
|
108
|
-
[tokenType.aave_lending]: { protocol: "aave", action: OpportunityAction.LEND },
|
109
|
-
[tokenType.aerodrome]: { protocol: "aerodrome", action: OpportunityAction.POOL },
|
110
|
-
[tokenType.akron]: { protocol: "akron", action: OpportunityAction.POOL },
|
111
|
-
[tokenType.aura]: { protocol: "aura", action: OpportunityAction.POOL },
|
112
|
-
[tokenType.balancerGauge]: { protocol: "balancer", action: OpportunityAction.POOL },
|
113
|
-
[tokenType.balancerPool]: { protocol: "balancer", action: OpportunityAction.POOL },
|
114
|
-
[tokenType.baseswap]: { protocol: "base-swap", action: OpportunityAction.HOLD },
|
115
|
-
[tokenType.beefy]: { protocol: "beefy", action: OpportunityAction.POOL },
|
116
|
-
[tokenType.compound]: { protocol: "compound", action: OpportunityAction.LEND },
|
117
|
-
[tokenType.curve]: { protocol: "curve", action: OpportunityAction.POOL },
|
118
|
-
[tokenType.curve_2]: { protocol: "curve", action: OpportunityAction.POOL },
|
119
|
-
[tokenType.dragonswap]: { protocol: "dragonswap", action: OpportunityAction.POOL },
|
120
|
-
[tokenType.enzyme]: { protocol: "enzyme", action: OpportunityAction.HOLD },
|
121
|
-
[tokenType.euler_borrow]: { protocol: "euler", action: OpportunityAction.BORROW },
|
122
|
-
[tokenType.euler_lend]: { protocol: "euler", action: OpportunityAction.LEND },
|
123
|
-
[tokenType.fenix]: { protocol: "fenix", action: OpportunityAction.HOLD },
|
124
|
-
[tokenType.filament]: { protocol: "filament", action: OpportunityAction.LONG },
|
125
|
-
[tokenType.fluid]: { protocol: "fluid", action: OpportunityAction.LEND },
|
126
|
-
[tokenType.fraxlend]: { protocol: "fraxlend", action: OpportunityAction.LEND },
|
127
|
-
[tokenType.gearbox]: { protocol: "gearbox", action: OpportunityAction.LEND },
|
128
|
-
[tokenType.ionic]: { protocol: "ionic", action: OpportunityAction.LEND },
|
129
|
-
[tokenType.ironclad_borrowing]: { protocol: "ironclad", action: OpportunityAction.HOLD },
|
130
|
-
[tokenType.ironclad_lending]: { protocol: "ironclad", action: OpportunityAction.HOLD },
|
131
|
-
[tokenType.koi]: { protocol: "koi", action: OpportunityAction.POOL },
|
132
|
-
[tokenType.layerbank]: { protocol: "layerbank", action: OpportunityAction.LEND },
|
133
|
-
[tokenType.metamorpho]: { protocol: "morpho", action: OpportunityAction.HOLD },
|
134
|
-
[tokenType.moonwell]: { protocol: "moonwell", action: OpportunityAction.LEND },
|
135
|
-
[tokenType.pendle]: { protocol: "pendle", action: OpportunityAction.HOLD },
|
136
|
-
[tokenType.poolside]: { protocol: "poolside", action: OpportunityAction.POOL },
|
137
|
-
[tokenType.ra]: { protocol: "ra", action: OpportunityAction.HOLD },
|
138
|
-
[tokenType.radiant_borrow]: { protocol: "radiant", action: OpportunityAction.BORROW },
|
139
|
-
[tokenType.radiant_lend]: { protocol: "radiant", action: OpportunityAction.LEND },
|
140
|
-
[tokenType.reactor_fusion]: { protocol: "reactor_fusion", action: OpportunityAction.LEND },
|
141
|
-
[tokenType.silostaking]: { protocol: "silo", action: OpportunityAction.LEND },
|
142
|
-
[tokenType.splice]: { protocol: "splice", action: OpportunityAction.HOLD },
|
143
|
-
[tokenType.sturdy_aggregator]: { protocol: "sturdy", action: OpportunityAction.LEND },
|
144
|
-
[tokenType.sturdy_silo]: { protocol: "sturdy", action: OpportunityAction.LEND },
|
145
|
-
[tokenType.syncswap]: { protocol: "syncswap", action: OpportunityAction.POOL },
|
146
|
-
[tokenType.toros]: { protocol: "toros", action: OpportunityAction.HOLD },
|
147
|
-
[tokenType.uniswapv2]: { protocol: "uniswap", action: OpportunityAction.POOL },
|
148
|
-
[tokenType.velodrome]: { protocol: "velodrome", action: OpportunityAction.POOL },
|
149
|
-
[tokenType.venus]: { protocol: "venus", action: OpportunityAction.LEND },
|
150
|
-
[tokenType.unknown]: { protocol: undefined, action: OpportunityAction.HOLD },
|
151
|
-
[tokenType.yei_borrowing]: { protocol: "yei", action: OpportunityAction.HOLD },
|
152
|
-
[tokenType.yei_lending]: { protocol: "yei", action: OpportunityAction.HOLD },
|
153
|
-
[tokenType.zerolend_borrowing]: { protocol: "zerolend", action: OpportunityAction.BORROW },
|
154
|
-
[tokenType.zerolend_lending]: { protocol: "zerolend", action: OpportunityAction.LEND },
|
155
|
-
[tokenType.zkswap]: { protocol: "zk-swap", action: OpportunityAction.POOL },
|
156
|
-
[tokenType.rfx]: { protocol: "rfx", action: OpportunityAction.POOL },
|
157
|
-
[tokenType.woofi]: { protocol: "woofi", action: OpportunityAction.LEND },
|
158
|
-
[tokenType.ironcladStaking]: { protocol: "ironclad", action: OpportunityAction.HOLD },
|
159
|
-
[tokenType.maverickBoostedPosition]: { protocol: "maverick", action: OpportunityAction.POOL },
|
160
|
-
[tokenType.zkSwapThreePool]: { protocol: "zk-swap", action: OpportunityAction.POOL },
|
161
|
-
[tokenType.maha]: { protocol: "maha", action: OpportunityAction.HOLD },
|
162
|
-
[tokenType.tempest]: { protocol: "tempest", action: OpportunityAction.POOL },
|
163
|
-
[tokenType.pendleYT]: { protocol: "pendle", action: OpportunityAction.HOLD },
|
164
|
-
[tokenType.pancakeswap]: { protocol: "pancake-swap", action: OpportunityAction.POOL },
|
165
|
-
[tokenType.tempestStaking]: { protocol: "tempest", action: OpportunityAction.HOLD },
|
166
|
-
[tokenType.holdstation]: { protocol: "holdstation", action: OpportunityAction.HOLD },
|
167
|
-
[tokenType.noLinkVault]: { protocol: undefined, action: OpportunityAction.HOLD },
|
168
|
-
[tokenType.cpmmGamma]: { protocol: "gammaswap", action: OpportunityAction.POOL },
|
169
|
-
[tokenType.crosscurve]: { protocol: "cross_curve", action: OpportunityAction.POOL },
|
170
|
-
[tokenType.curveNPool]: { protocol: "curve", action: OpportunityAction.POOL },
|
171
|
-
[tokenType.vicuna]: { protocol: "vicuna", action: OpportunityAction.POOL },
|
172
|
-
[tokenType.traderJoe]: { protocol: "trader-joe", action: OpportunityAction.HOLD },
|
173
|
-
[tokenType.avalon_lending]: { protocol: "avalon", action: OpportunityAction.HOLD },
|
174
|
-
[tokenType.avalon_borrowing]: { protocol: "avalon", action: OpportunityAction.HOLD },
|
175
|
-
[tokenType.satlayer]: { protocol: "satlayer", action: OpportunityAction.HOLD },
|
176
|
-
[tokenType.veda]: { protocol: "veda", action: OpportunityAction.HOLD },
|
177
|
-
[tokenType.superlend_borrowing]: { protocol: "superlend", action: OpportunityAction.BORROW },
|
178
|
-
[tokenType.superlend_lending]: { protocol: "superlend", action: OpportunityAction.LEND },
|
179
|
-
[tokenType.cian]: { protocol: "cian", action: OpportunityAction.HOLD },
|
180
|
-
[tokenType.concrete]: { protocol: "concrete", action: OpportunityAction.HOLD },
|
181
|
-
[tokenType.lendle_borrowing]: { protocol: "lendle", action: OpportunityAction.BORROW },
|
182
|
-
[tokenType.lendle_lending]: { protocol: "lendle", action: OpportunityAction.LEND },
|
183
|
-
[tokenType.takotako_borrowing]: { protocol: "tako-tako", action: OpportunityAction.BORROW },
|
184
|
-
[tokenType.takotako_lending]: { protocol: "tako-tako", action: OpportunityAction.LEND },
|
185
|
-
[tokenType.equalizer_gauge]: { protocol: "equalizer", action: OpportunityAction.HOLD },
|
186
|
-
[tokenType.vicuna_lending]: { protocol: "vicuna", action: OpportunityAction.LEND },
|
187
|
-
[tokenType.vicuna_borrowing]: { protocol: "vicuna", action: OpportunityAction.BORROW },
|
188
|
-
[tokenType.spectra_lpt]: { protocol: "spectra", action: OpportunityAction.POOL },
|
189
|
-
[tokenType.spectra_yt]: { protocol: "spectra", action: OpportunityAction.POOL },
|
190
|
-
[tokenType.rfx_slv]: { protocol: "rfx", action: OpportunityAction.POOL },
|
191
|
-
[tokenType.hourglass]: { protocol: "hourglass", action: OpportunityAction.HOLD },
|
192
|
-
[tokenType.katana]: { protocol: "katana", action: OpportunityAction.POOL },
|
193
|
-
[tokenType.balancerV3]: { protocol: "balancer", action: OpportunityAction.POOL },
|
194
|
-
[tokenType.hanji_liquidity_vault_token]: { protocol: "hanji", action: OpportunityAction.POOL },
|
195
|
-
[tokenType.xU308]: { protocol: "uranium", action: OpportunityAction.HOLD },
|
196
|
-
[tokenType.bunniV2]: {
|
197
|
-
protocol: "bunni",
|
198
|
-
action: OpportunityAction.HOLD,
|
199
|
-
},
|
200
|
-
[tokenType.beratrax_vault]: {
|
201
|
-
protocol: "beratrax",
|
202
|
-
action: OpportunityAction.HOLD,
|
203
|
-
},
|
204
|
-
[tokenType.beraborrow_gauge]: {
|
205
|
-
protocol: "beraborrow",
|
206
|
-
action: OpportunityAction.HOLD,
|
207
|
-
},
|
208
|
-
[tokenType.xlend_lending]: {
|
209
|
-
protocol: "xlend",
|
210
|
-
action: OpportunityAction.LEND,
|
211
|
-
},
|
212
|
-
[tokenType.xlend_borrowing]: {
|
213
|
-
protocol: "xlend",
|
214
|
-
action: OpportunityAction.BORROW,
|
215
|
-
},
|
216
|
-
[tokenType.curve_gauge]: {
|
217
|
-
protocol: "curve",
|
218
|
-
action: OpportunityAction.POOL,
|
219
|
-
},
|
220
|
-
[tokenType.sake_borrowing]: {
|
221
|
-
protocol: "sake",
|
222
|
-
action: OpportunityAction.BORROW,
|
223
|
-
},
|
224
|
-
[tokenType.sake_lending]: {
|
225
|
-
protocol: "sake",
|
226
|
-
action: OpportunityAction.LEND,
|
227
|
-
},
|
228
|
-
[tokenType.gamma]: {
|
229
|
-
protocol: "gamma",
|
230
|
-
action: OpportunityAction.POOL,
|
231
|
-
},
|
232
|
-
};
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import { tokenType } from "@/engine/erc20SubTypeProcessors/helpers/tokenType";
|
2
|
-
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
-
export declare function generateIcons(type: tokenType, typeInfo: any, campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.ERC20LOGPROCESSOR> | CampaignParameters<Campaign.ERC20REBASELOGPROCESSOR> | CampaignParameters<Campaign.EULER>, symbols?: string[]): string[];
|
@@ -1,65 +0,0 @@
|
|
1
|
-
import { tokenType } from "@/engine/erc20SubTypeProcessors/helpers/tokenType";
|
2
|
-
import { OpportunityAction } from "@db/api";
|
3
|
-
export function generateIcons(type, typeInfo, campaign, symbols = [""]) {
|
4
|
-
const action = typeInfo.action ? typeInfo.action : "HOLD";
|
5
|
-
switch (action) {
|
6
|
-
case OpportunityAction.POOL:
|
7
|
-
switch (type) {
|
8
|
-
case tokenType.vicuna: {
|
9
|
-
const parsedName = typeInfo.name.split(" ").pop();
|
10
|
-
return parsedName.split("-");
|
11
|
-
}
|
12
|
-
case tokenType.balancerGauge:
|
13
|
-
case tokenType.balancerPool:
|
14
|
-
case tokenType.aura:
|
15
|
-
return Object.values(typeInfo.poolTokens ?? {})
|
16
|
-
.map(tkn => tkn?.symbol)
|
17
|
-
.filter(tkn => tkn && !tkn.includes("/"));
|
18
|
-
case tokenType.curve:
|
19
|
-
case tokenType.curve_2:
|
20
|
-
case tokenType.hanji_liquidity_vault_token:
|
21
|
-
case tokenType.crosscurve: {
|
22
|
-
const icons = [];
|
23
|
-
for (let i = 0; i < typeInfo.numberTokens; i++) {
|
24
|
-
if (typeInfo[`symbolToken${i}`])
|
25
|
-
icons.push(typeInfo[`symbolToken${i}`]);
|
26
|
-
}
|
27
|
-
return icons;
|
28
|
-
}
|
29
|
-
case tokenType.rfx_slv:
|
30
|
-
return [typeInfo.symbolAsset];
|
31
|
-
case tokenType.rfx:
|
32
|
-
return [typeInfo.symbolShortToken, typeInfo.symbolLongToken];
|
33
|
-
case tokenType.maverickBoostedPosition:
|
34
|
-
return [typeInfo.symbolTokenA, typeInfo.symbolTokenB];
|
35
|
-
default:
|
36
|
-
return [typeInfo.symbolToken0, typeInfo.symbolToken1];
|
37
|
-
}
|
38
|
-
case OpportunityAction.LEND:
|
39
|
-
switch (type) {
|
40
|
-
case tokenType.compound:
|
41
|
-
return [typeInfo.symbolBaseToken];
|
42
|
-
default:
|
43
|
-
return [typeInfo.symbolUnderlyingToken];
|
44
|
-
}
|
45
|
-
case OpportunityAction.BORROW:
|
46
|
-
return [typeInfo.symbolUnderlyingToken];
|
47
|
-
case OpportunityAction.HOLD:
|
48
|
-
switch (type) {
|
49
|
-
case tokenType.toros:
|
50
|
-
case tokenType.enzyme:
|
51
|
-
return [typeInfo.symbolUnderlyingToken];
|
52
|
-
case tokenType.pendleYT: {
|
53
|
-
let symbol = campaign.campaignParameters.symbolTargetToken;
|
54
|
-
symbol = symbol.split("-").slice(0, 2).join("-");
|
55
|
-
return [symbol];
|
56
|
-
}
|
57
|
-
case tokenType.pendle:
|
58
|
-
return [typeInfo.symbolUnderlyingToken];
|
59
|
-
default:
|
60
|
-
return [campaign.campaignParameters.symbolTargetToken];
|
61
|
-
}
|
62
|
-
default:
|
63
|
-
return [];
|
64
|
-
}
|
65
|
-
}
|