@merkl/api 0.20.106 → 0.20.109

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.
Files changed (366) hide show
  1. package/dist/src/constants.d.ts +1 -23
  2. package/dist/src/constants.js +1 -36
  3. package/dist/src/eden/index.d.ts +347 -226
  4. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Ajna.js +1 -1
  5. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Clamm.js +4 -4
  6. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Compound.js +2 -2
  7. package/dist/src/engine/deprecated/dynamicData/implementations/CompoundV3.js +101 -0
  8. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Dolomite.js +1 -1
  9. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/ERC721.js +2 -2
  10. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/ERCMultiToken.js +2 -2
  11. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/EigenLayer.js +1 -1
  12. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Erc20.d.ts +1 -1
  13. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Erc20.js +10 -10
  14. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Erc20Snapshot.js +1 -1
  15. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/EventBased.js +2 -2
  16. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Morpho.js +1 -1
  17. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Radiant.js +3 -3
  18. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Silo.js +2 -2
  19. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/UniswapV4.js +2 -2
  20. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Vest.js +2 -2
  21. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchA51Strategies.js +2 -2
  22. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getDolomiteMarkets.js +2 -2
  23. package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getEulerV2Vaults.js +1 -1
  24. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/GenericProcessor.d.ts +1 -1
  25. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/factoryFinder.d.ts +1 -1
  26. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/factoryFinder.js +1 -1
  27. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/hardcoded.d.ts +1 -1
  28. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/hardcoded.js +1 -1
  29. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +2 -0
  30. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/ownerFinder.js +1 -1
  31. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AaveProcessor.d.ts +1 -1
  32. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AnglesLiquid.d.ts +1 -1
  33. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AssetProcessor.d.ts +1 -1
  34. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AssetProcessor.js +1 -1
  35. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AuraProcessor.d.ts +1 -1
  36. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BEXRewardGaugeProcessor.d.ts +1 -1
  37. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerGaugeProcessor.d.ts +1 -1
  38. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerPoolProcessor.d.ts +1 -1
  39. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerV3PoolProcessor.d.ts +1 -1
  40. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BeefyProcessor.d.ts +1 -1
  41. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BunniV2Processor.d.ts +1 -1
  42. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/CompoundProcessor.d.ts +1 -1
  43. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/ERC4626Processor.d.ts +1 -1
  44. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EnzymeProcessor.d.ts +1 -1
  45. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EqualizerGaugeProcessor.d.ts +1 -1
  46. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EulerBorrowProcessor.d.ts +1 -1
  47. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EulerLendProcessor.d.ts +1 -1
  48. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/FluidProcessor.d.ts +1 -1
  49. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/FraxProcessor.d.ts +1 -1
  50. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/FraxProcessor.js +1 -1
  51. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GammaALMProcessor.d.ts +1 -1
  52. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GammaProcessor.d.ts +1 -1
  53. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GearboxProcessor.d.ts +1 -1
  54. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HanjiVaultProcessor.d.ts +1 -1
  55. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HoldStationProcessor.d.ts +1 -1
  56. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HourglassProcessor.d.ts +1 -1
  57. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/MaverickBPProcessor.d.ts +1 -1
  58. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/MetamorphoProcessor.d.ts +1 -1
  59. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/NoLinkVaultProcessor.d.ts +1 -1
  60. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/NoLinkVaultProcessor.js +1 -1
  61. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/PendleProcessor.d.ts +1 -1
  62. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/PendleYTProcessor.d.ts +1 -1
  63. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/RadiantProcessor.d.ts +1 -1
  64. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/RfxProcessor.d.ts +1 -1
  65. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/Satlayer.d.ts +1 -1
  66. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpectraProcessor.d.ts +1 -1
  67. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpectraProcessor.js +3 -3
  68. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpectraYTProcessor.d.ts +1 -1
  69. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpectraYTProcessor.js +3 -3
  70. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpliceProcessor.d.ts +1 -1
  71. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SturdySiloProcessor.d.ts +1 -1
  72. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TempestVaultProcessor.d.ts +1 -1
  73. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TempestVaultProcessor.js +1 -1
  74. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TemplateProcessor.d.ts +1 -1
  75. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TorosProcessor.d.ts +1 -1
  76. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/UniswapProcessor.d.ts +1 -1
  77. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/VicunaProcessor.d.ts +1 -1
  78. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/WoofiProcessor.d.ts +1 -1
  79. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/ZkSwapThreePoolProcessor.d.ts +1 -1
  80. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/curveNPoolProcessor.d.ts +1 -1
  81. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/curveProcessor.d.ts +1 -1
  82. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/curveProcessor.js +1 -1
  83. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/processorMapping.d.ts +1 -1
  84. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/processorMapping.js +3 -1
  85. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/stakedCurveProcessor.d.ts +1 -1
  86. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/stakedCurveProcessor.js +1 -1
  87. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/xU308Processor.d.ts +1 -1
  88. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesPrices.d.ts +1 -1
  89. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesPrices.js +1 -1
  90. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound1.js +5 -1
  91. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound2.d.ts +1 -1
  92. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound3.d.ts +1 -1
  93. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound4.d.ts +1 -1
  94. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/tokenTypeStruct.d.ts +1 -1
  95. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/tokenTypeToProtocolAndAction.d.ts +1 -1
  96. package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/tokenTypeToProtocolAndAction.js +3 -1
  97. package/dist/src/engine/{opportunityMetadata/implementations/Ajna.d.ts → implementations/Ajna/metadata.d.ts} +4 -3
  98. package/dist/src/engine/{opportunityMetadata/implementations/Ajna.js → implementations/Ajna/metadata.js} +4 -3
  99. package/dist/src/engine/implementations/Ajna/tvl.d.ts +7 -0
  100. package/dist/src/engine/{campaignTVL/implementations/Ajna.js → implementations/Ajna/tvl.js} +9 -9
  101. package/dist/src/engine/{opportunityMetadata/implementations/Ambient.d.ts → implementations/Ambient/metadata.d.ts} +4 -3
  102. package/dist/src/engine/{opportunityMetadata/implementations/Ambient.js → implementations/Ambient/metadata.js} +2 -1
  103. package/dist/src/engine/{campaignTVL/implementations/Ambiant.d.ts → implementations/Ambient/tvl.d.ts} +3 -3
  104. package/dist/src/engine/{campaignTVL/implementations/Ambiant.js → implementations/Ambient/tvl.js} +2 -2
  105. package/dist/src/engine/{opportunityMetadata/implementations/Badger.d.ts → implementations/Badger/metadata.d.ts} +4 -3
  106. package/dist/src/engine/{opportunityMetadata/implementations/Badger.js → implementations/Badger/metadata.js} +2 -1
  107. package/dist/src/engine/{opportunityMetadata/implementations/Clamm.d.ts → implementations/Clamm/metadata.d.ts} +4 -3
  108. package/dist/src/engine/{opportunityMetadata/implementations/Clamm.js → implementations/Clamm/metadata.js} +2 -1
  109. package/dist/src/engine/{opportunityMetadata/implementations/Compound.d.ts → implementations/Compound/metadata.d.ts} +5 -4
  110. package/dist/src/engine/{opportunityMetadata/implementations/Compound.js → implementations/Compound/metadata.js} +3 -2
  111. package/dist/src/engine/{opportunityMetadata/implementations/CompoundV3.d.ts → implementations/CompoundV3/metadata.d.ts} +5 -4
  112. package/dist/src/engine/{opportunityMetadata/implementations/CompoundV3.js → implementations/CompoundV3/metadata.js} +4 -3
  113. package/dist/src/engine/implementations/Default/metadata.d.ts +13 -0
  114. package/dist/src/engine/{opportunityMetadata/implementations/Default.js → implementations/Default/metadata.js} +3 -2
  115. package/dist/src/engine/{opportunityMetadata/implementations/Dolomite.d.ts → implementations/Dolomite/metadata.d.ts} +5 -4
  116. package/dist/src/engine/{opportunityMetadata/implementations/Dolomite.js → implementations/Dolomite/metadata.js} +3 -2
  117. package/dist/src/engine/{opportunityMetadata/implementations/EigenLayer.d.ts → implementations/EigenLayer/metadata.d.ts} +5 -4
  118. package/dist/src/engine/{opportunityMetadata/implementations/EigenLayer.js → implementations/EigenLayer/metadata.js} +2 -1
  119. package/dist/src/engine/implementations/Encompassing/metadata.d.ts +16 -0
  120. package/dist/src/engine/{opportunityMetadata/implementations/Encompassing.js → implementations/Encompassing/metadata.js} +4 -3
  121. package/dist/src/engine/implementations/Erc20/metadata.d.ts +29 -0
  122. package/dist/src/engine/{opportunityMetadata/implementations/Erc20/index.js → implementations/Erc20/metadata.js} +19 -14
  123. package/dist/src/engine/{campaignTVL/implementations/Erc20/computeSubTypes.d.ts → implementations/Erc20/subTypes/detect.d.ts} +2 -2
  124. package/dist/src/engine/{campaignTVL/implementations/Erc20/computeSubTypes.js → implementations/Erc20/subTypes/detect.js} +6 -6
  125. package/dist/src/engine/implementations/Erc20/subTypes/factories.d.ts +5 -0
  126. package/dist/src/engine/implementations/Erc20/subTypes/factories.js +33 -0
  127. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +17 -0
  128. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.js +21 -0
  129. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.d.ts +6 -0
  130. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.js +43 -0
  131. package/dist/src/engine/{campaignTVL/implementations/Erc20/Erc20SubType.d.ts → implementations/Erc20/subTypes/index.d.ts} +2 -0
  132. package/dist/src/engine/{campaignTVL/implementations/Erc20/Erc20SubType.js → implementations/Erc20/subTypes/index.js} +2 -0
  133. package/dist/src/engine/implementations/Erc20/tvl.d.ts +6 -0
  134. package/dist/src/engine/implementations/Erc20/tvl.js +98 -0
  135. package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +15 -0
  136. package/dist/src/engine/{opportunityMetadata/implementations/Erc20Snapshot.js → implementations/Erc20Snapshot/metadata.js} +2 -1
  137. package/dist/src/engine/implementations/Erc721/metadata.d.ts +17 -0
  138. package/dist/src/engine/{opportunityMetadata/implementations/ERC721.js → implementations/Erc721/metadata.js} +3 -2
  139. package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +29 -0
  140. package/dist/src/engine/{opportunityMetadata/implementations/ERCMultiToken.js → implementations/ErcMultiToken/metadata.js} +5 -4
  141. package/dist/src/engine/{opportunityMetadata/implementations/Euler.d.ts → implementations/Euler/metadata.d.ts} +4 -3
  142. package/dist/src/engine/{opportunityMetadata/implementations/Euler.js → implementations/Euler/metadata.js} +5 -4
  143. package/dist/src/engine/{opportunityMetadata/implementations/EventBased.d.ts → implementations/EventBased/metadata.d.ts} +4 -3
  144. package/dist/src/engine/{opportunityMetadata/implementations/EventBased.js → implementations/EventBased/metadata.js} +2 -1
  145. package/dist/src/engine/{opportunityMetadata/implementations/Hyperdrive.d.ts → implementations/Hyperdrive/metadata.d.ts} +4 -3
  146. package/dist/src/engine/{opportunityMetadata/implementations/Hyperdrive.js → implementations/Hyperdrive/metadata.js} +3 -2
  147. package/dist/src/engine/{opportunityMetadata/implementations/Invalid.d.ts → implementations/Invalid/metadata.d.ts} +1 -1
  148. package/dist/src/engine/{opportunityMetadata/implementations/Ion.d.ts → implementations/Ion/metadata.d.ts} +4 -4
  149. package/dist/src/engine/{opportunityMetadata/implementations/Ion.js → implementations/Ion/metadata.js} +2 -1
  150. package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +24 -0
  151. package/dist/src/engine/{opportunityMetadata/implementations/JsonAirdrop.js → implementations/JsonAirdrop/metadata.js} +4 -3
  152. package/dist/src/engine/{opportunityMetadata/implementations/Morpho.d.ts → implementations/Morpho/metadata.d.ts} +4 -3
  153. package/dist/src/engine/{opportunityMetadata/implementations/Morpho.js → implementations/Morpho/metadata.js} +4 -1
  154. package/dist/src/engine/{opportunityMetadata/implementations/Radiant.d.ts → implementations/Radiant/metadata.d.ts} +5 -4
  155. package/dist/src/engine/{opportunityMetadata/implementations/Radiant.js → implementations/Radiant/metadata.js} +4 -1
  156. package/dist/src/engine/{opportunityMetadata/implementations/Silo.d.ts → implementations/Silo/metadata.d.ts} +5 -4
  157. package/dist/src/engine/{opportunityMetadata/implementations/Silo.js → implementations/Silo/metadata.js} +4 -1
  158. package/dist/src/engine/{opportunityMetadata/implementations/UniswapV4.d.ts → implementations/UniswapV4/metadata.d.ts} +4 -3
  159. package/dist/src/engine/{opportunityMetadata/implementations/UniswapV4.js → implementations/UniswapV4/metadata.js} +2 -1
  160. package/dist/src/engine/implementations/UniswapV4/tvl.d.ts +7 -0
  161. package/dist/src/engine/{campaignTVL/implementations/UniswapV4.js → implementations/UniswapV4/tvl.js} +11 -11
  162. package/dist/src/engine/{opportunityMetadata/implementations/Vest.d.ts → implementations/Vest/metadata.d.ts} +5 -4
  163. package/dist/src/engine/{opportunityMetadata/implementations/Vest.js → implementations/Vest/metadata.js} +3 -2
  164. package/dist/src/engine/metadata/factory.js +71 -0
  165. package/dist/src/engine/tvl/factory.d.ts +3 -0
  166. package/dist/src/engine/tvl/factory.js +23 -0
  167. package/dist/src/hooks/checkQueryAddressValidity.js +1 -1
  168. package/dist/src/hooks/checkQueryChainIdValidity.js +1 -1
  169. package/dist/src/index.d.ts +123 -80
  170. package/dist/src/jobs/dynamic-data.js +1 -1
  171. package/dist/src/jobs/update-analytics.js +290 -34
  172. package/dist/src/jobs/update-euler-vaults.js +1 -1
  173. package/dist/src/libs/computeFee.js +1 -1
  174. package/dist/src/libs/deprecated-merklv3/index.js +1 -1
  175. package/dist/src/libs/getTokensList.js +1 -1
  176. package/dist/src/libs/merklChainData.js +1 -1
  177. package/dist/src/libs/positions/EigenLayer/index.d.ts +1 -1
  178. package/dist/src/libs/positions/ajna/index.d.ts +1 -1
  179. package/dist/src/libs/positions/badger/index.d.ts +1 -1
  180. package/dist/src/libs/positions/clamm/index.js +3 -3
  181. package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.js +1 -1
  182. package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.js +1 -1
  183. package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js +1 -1
  184. package/dist/src/libs/positions/compound/index.d.ts +1 -1
  185. package/dist/src/libs/positions/dolomite/index.d.ts +1 -1
  186. package/dist/src/libs/positions/erc20/index.d.ts +1 -1
  187. package/dist/src/libs/positions/erc20/index.js +0 -1
  188. package/dist/src/libs/positions/euler/index.d.ts +1 -1
  189. package/dist/src/libs/positions/euler/index.js +0 -1
  190. package/dist/src/libs/positions/index.js +1 -1
  191. package/dist/src/libs/positions/morpho/index.d.ts +1 -1
  192. package/dist/src/libs/positions/prepareFetch.js +1 -1
  193. package/dist/src/libs/positions/silo/index.d.ts +1 -1
  194. package/dist/src/libs/tokens/balances.d.ts +1 -1
  195. package/dist/src/libs/tokens/balances.js +1 -1
  196. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +42 -15
  197. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +7 -9
  198. package/dist/src/modules/v4/campaign/campaign.repository.js +20 -27
  199. package/dist/src/modules/v4/campaign/campaign.service.d.ts +47 -17
  200. package/dist/src/modules/v4/campaign/campaign.service.js +51 -38
  201. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +67 -22
  202. package/dist/src/modules/v4/campaign/campaign.test.controller.js +32 -9
  203. package/dist/src/modules/v4/chain/chain.controller.d.ts +3 -1
  204. package/dist/src/modules/v4/chain/chain.repository.d.ts +8 -2
  205. package/dist/src/modules/v4/chain/chain.repository.js +1 -2
  206. package/dist/src/modules/v4/chain/chain.service.d.ts +16 -2
  207. package/dist/src/modules/v4/chain/chain.service.js +3 -3
  208. package/dist/src/modules/v4/dynamicData/dynamicData.service.js +49 -13
  209. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +4 -4
  210. package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +2 -1
  211. package/dist/src/modules/v4/opportunity/opportunity.converter.js +1 -1
  212. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +8 -8
  213. package/dist/src/modules/v4/opportunity/opportunity.service.js +16 -32
  214. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +7 -7
  215. package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +3 -3
  216. package/dist/src/modules/v4/programPayload/programPayload.model.js +2 -2
  217. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +279 -4
  218. package/dist/src/modules/v4/programPayload/programPayload.repository.js +295 -3
  219. package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
  220. package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
  221. package/dist/src/modules/v4/router.d.ts +123 -80
  222. package/dist/src/modules/v4/router.js +0 -2
  223. package/dist/src/modules/v4/uniswap/uniswap.service.js +1 -1
  224. package/dist/src/routes/v3/campaigns.js +3 -3
  225. package/dist/src/routes/v3/compoundV2.js +1 -1
  226. package/dist/src/routes/v3/createCampaign.js +1 -1
  227. package/dist/src/routes/v3/dolomite.js +1 -1
  228. package/dist/src/routes/v3/euler.js +1 -1
  229. package/dist/src/routes/v3/fetch.js +1 -1
  230. package/dist/src/routes/v3/lostyield.js +3 -3
  231. package/dist/src/routes/v3/merkl.js +2 -2
  232. package/dist/src/routes/v3/multiChainPositions.js +1 -1
  233. package/dist/src/routes/v3/overview.js +1 -1
  234. package/dist/src/routes/v3/poolInfo.js +2 -2
  235. package/dist/src/routes/v3/rewardsReport.js +1 -1
  236. package/dist/src/scripts/reparse-opportunities.js +5 -3
  237. package/dist/src/utils/decodeCalls.d.ts +1 -1
  238. package/dist/src/utils/decodeCalls.js +3 -1
  239. package/dist/src/utils/encodeCalls.d.ts +1 -1
  240. package/dist/src/utils/encodeCalls.js +3 -1
  241. package/dist/src/utils/error.d.ts +6 -6
  242. package/dist/src/utils/generateCardName.d.ts +1 -1
  243. package/dist/src/utils/generateCardName.js +3 -1
  244. package/dist/tsconfig.package.tsbuildinfo +1 -1
  245. package/package.json +1 -1
  246. package/dist/src/engine/campaignTVL/factory.d.ts +0 -3
  247. package/dist/src/engine/campaignTVL/factory.js +0 -23
  248. package/dist/src/engine/campaignTVL/implementations/Ajna.d.ts +0 -7
  249. package/dist/src/engine/campaignTVL/implementations/Erc20/factory.d.ts +0 -3
  250. package/dist/src/engine/campaignTVL/implementations/Erc20/factory.js +0 -13
  251. package/dist/src/engine/campaignTVL/implementations/Erc20/index.d.ts +0 -6
  252. package/dist/src/engine/campaignTVL/implementations/Erc20/index.js +0 -34
  253. package/dist/src/engine/campaignTVL/implementations/UniswapV4.d.ts +0 -7
  254. package/dist/src/engine/dynamicData/implementations/CompoundV3.js +0 -69
  255. package/dist/src/engine/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +0 -2
  256. package/dist/src/engine/opportunityMetadata/factory.js +0 -71
  257. package/dist/src/engine/opportunityMetadata/implementations/Default.d.ts +0 -13
  258. package/dist/src/engine/opportunityMetadata/implementations/ERC721.d.ts +0 -16
  259. package/dist/src/engine/opportunityMetadata/implementations/ERCMultiToken.d.ts +0 -28
  260. package/dist/src/engine/opportunityMetadata/implementations/Encompassing.d.ts +0 -15
  261. package/dist/src/engine/opportunityMetadata/implementations/Erc20/index.d.ts +0 -18
  262. package/dist/src/engine/opportunityMetadata/implementations/Erc20Snapshot.d.ts +0 -14
  263. package/dist/src/engine/opportunityMetadata/implementations/JsonAirdrop.d.ts +0 -23
  264. package/dist/src/entities/campaign.d.ts +0 -58
  265. package/dist/src/entities/campaign.js +0 -136
  266. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +0 -51
  267. package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +0 -19
  268. package/dist/src/modules/v4/dynamicData/dynamicData.repository.d.ts +0 -0
  269. package/dist/src/modules/v4/dynamicData/dynamicData.repository.js +0 -1
  270. package/dist/src/types/returnTypes.d.ts +0 -19
  271. package/dist/src/types/returnTypes.js +0 -1
  272. package/dist/src/types/utils.d.ts +0 -5
  273. package/dist/src/types/utils.js +0 -1
  274. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/factory.d.ts +0 -0
  275. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/factory.js +0 -0
  276. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Ajna.d.ts +0 -0
  277. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Badger.d.ts +0 -0
  278. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Badger.js +0 -0
  279. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Clamm.d.ts +0 -0
  280. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Compound.d.ts +0 -0
  281. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/CompoundV3.d.ts +0 -0
  282. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Dolomite.d.ts +0 -0
  283. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/ERC721.d.ts +0 -0
  284. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/ERCMultiToken.d.ts +0 -0
  285. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/EigenLayer.d.ts +0 -0
  286. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Encompassing.d.ts +0 -0
  287. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Encompassing.js +0 -0
  288. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Erc20Snapshot.d.ts +0 -0
  289. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/EventBased.d.ts +0 -0
  290. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Hyperdrive.d.ts +0 -0
  291. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Hyperdrive.js +0 -0
  292. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Morpho.d.ts +0 -0
  293. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Radiant.d.ts +0 -0
  294. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Silo.d.ts +0 -0
  295. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/UniswapV4.d.ts +0 -0
  296. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/Vest.d.ts +0 -0
  297. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/default.d.ts +0 -0
  298. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/implementations/default.js +0 -0
  299. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchA51Strategies.d.ts +0 -0
  300. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchClamInfo.d.ts +0 -0
  301. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchClamInfo.js +0 -0
  302. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchLogs.d.ts +0 -0
  303. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/fetchLogs.js +0 -0
  304. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getCompV2ForksVaults.d.ts +0 -0
  305. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getCompV2ForksVaults.js +0 -0
  306. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getContractCreationBlock.d.ts +0 -0
  307. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getContractCreationBlock.js +0 -0
  308. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getDolomiteMarkets.d.ts +0 -0
  309. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getEulerV2Vaults.d.ts +0 -0
  310. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getFixedApr.d.ts +0 -0
  311. /package/dist/src/engine/{dynamicData → deprecated/dynamicData}/utils/getFixedApr.js +0 -0
  312. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/GenericProcessor.js +0 -0
  313. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/eulerVaultNames.d.ts +0 -0
  314. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/eulerVaultNames.js +0 -0
  315. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/getBlacklistedSupply.d.ts +0 -0
  316. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/getBlacklistedSupply.js +0 -0
  317. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/metamorphoTvl.d.ts +0 -0
  318. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/metamorphoTvl.js +0 -0
  319. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/spliceTVL.d.ts +0 -0
  320. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/helpers/spliceTVL.js +0 -0
  321. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AaveProcessor.js +0 -0
  322. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AnglesLiquid.js +0 -0
  323. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/AuraProcessor.js +0 -0
  324. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BEXRewardGaugeProcessor.js +0 -0
  325. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerGaugeProcessor.js +0 -0
  326. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerPoolProcessor.js +0 -0
  327. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BalancerV3PoolProcessor.js +0 -0
  328. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BeefyProcessor.js +0 -0
  329. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/BunniV2Processor.js +0 -0
  330. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/CompoundProcessor.js +0 -0
  331. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/ERC4626Processor.js +0 -0
  332. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EnzymeProcessor.js +0 -0
  333. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EqualizerGaugeProcessor.js +0 -0
  334. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EulerBorrowProcessor.js +0 -0
  335. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/EulerLendProcessor.js +0 -0
  336. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/FluidProcessor.js +0 -0
  337. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GammaALMProcessor.js +0 -0
  338. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GammaProcessor.js +0 -0
  339. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/GearboxProcessor.js +0 -0
  340. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HanjiVaultProcessor.js +0 -0
  341. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HoldStationProcessor.js +0 -0
  342. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/HourglassProcessor.js +0 -0
  343. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/MaverickBPProcessor.js +0 -0
  344. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/MetamorphoProcessor.js +0 -0
  345. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/PendleProcessor.js +0 -0
  346. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/PendleYTProcessor.js +0 -0
  347. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/RadiantProcessor.js +0 -0
  348. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/RfxProcessor.js +0 -0
  349. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/Satlayer.js +0 -0
  350. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SpliceProcessor.js +0 -0
  351. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/SturdySiloProcessor.js +0 -0
  352. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TemplateProcessor.js +0 -0
  353. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/TorosProcessor.js +0 -0
  354. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/UniswapProcessor.js +0 -0
  355. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/VicunaProcessor.js +0 -0
  356. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/WoofiProcessor.js +0 -0
  357. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/ZkSwapThreePoolProcessor.js +0 -0
  358. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/curveNPoolProcessor.js +0 -0
  359. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/implementations/xU308Processor.js +0 -0
  360. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound1.d.ts +0 -0
  361. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound2.js +0 -0
  362. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound3.js +0 -0
  363. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/subtypesRound4.js +0 -0
  364. /package/dist/src/engine/{erc20SubTypeProcessors → deprecated/erc20SubTypeProcessors}/tokenTypeStruct.js +0 -0
  365. /package/dist/src/engine/{opportunityMetadata/implementations/Invalid.js → implementations/Invalid/metadata.js} +0 -0
  366. /package/dist/src/engine/{opportunityMetadata → metadata}/factory.d.ts +0 -0
@@ -1,9 +1,9 @@
1
1
  import { TokenService } from "@/modules/v4/token/token.service";
2
+ import { log } from "@/utils/logger";
2
3
  import { providers } from "@/utils/providers";
3
4
  import { AjnaSubCampaignType, BN2Number, ChainInteractionService, ERC20Pool__factory, NETWORK_LABELS, PoolInfoUtilsInterface, YEAR, } from "@sdk";
4
5
  import { POOL_INFO_UTILS } from "@sdk";
5
6
  import axios from "axios";
6
- import { log } from "../../../utils/logger";
7
7
  export class AjnaDynamicData {
8
8
  async build(chainId, campaigns) {
9
9
  const calls = [];
@@ -1,16 +1,16 @@
1
+ import { MERKL_ALM_POSITION_FETCHING_TIMEOUT } from "@/constants";
1
2
  import { nftPositionByIdsQuery, positionMultipleOwnersQuery } from "@/libs/positions/clamm/thegraph";
2
3
  import { fetchFarmedPositions } from "@/libs/positions/clamm/thegraph/fetchFarmedPositions";
3
4
  import { TokenService } from "@/modules/v4/token/token.service";
5
+ import { log } from "@/utils/logger";
6
+ import { Pricer } from "@/utils/pricer";
7
+ import { isStrykeCampaign } from "@/utils/stryke";
4
8
  import { A51Factory__factory, ALM, ALMMapping, AMM, AMMAlgorithm, AMMAlgorithmMapping, BN2Number, ChainInteractionService, DecodeLiquidity, EAprBreakdownType, ERC20Interface, Forwarder, JonesDoubleRewardTracker__factory, Liquidity, NETWORK_LABELS, NitroInterface, PoolInterface, PoolState, PriorityAMM, SqrtPrice, almName, ammName, getAmountsForLiquidity, getTickAtSqrtRatio, isBlacklisted, isWhitelisted, merklSubgraphAMMEndpoints, shortenAddress, spNFTInterface, withTimeout, } from "@sdk";
5
9
  import axios from "axios";
6
10
  import { BigNumber, utils } from "ethers";
7
11
  import request from "graphql-request";
8
12
  import JSBI from "jsbi";
9
13
  import moment from "moment";
10
- import { MERKL_ALM_POSITION_FETCHING_TIMEOUT } from "../../../constants";
11
- import { log } from "../../../utils/logger";
12
- import { Pricer } from "../../../utils/pricer";
13
- import { isStrykeCampaign } from "../../../utils/stryke";
14
14
  import { fetchA51Strategies } from "../utils/fetchA51Strategies";
15
15
  export class ClammDynamicData {
16
16
  async build(chainId, campaigns) {
@@ -1,7 +1,7 @@
1
1
  import { TokenService } from "@/modules/v4/token/token.service";
2
+ import { log } from "@/utils/logger";
3
+ import { Pricer } from "@/utils/pricer";
2
4
  import { BN2Number, CTokenInterface, ChainInteractionService, CompFork, CompoundSubCampaignType, ERC20Interface, IonicERC20_INTERFACE, LayerBankERC20Interface, NULL_ADDRESS, YEAR, } from "@sdk";
3
- import { log } from "../../../utils/logger";
4
- import { Pricer } from "../../../utils/pricer";
5
5
  export class CompoundDynamicData {
6
6
  async build(chainId, campaigns) {
7
7
  const pricer = await Pricer.load();
@@ -0,0 +1,101 @@
1
+ import { TokenService } from "@/modules/v4/token/token.service";
2
+ import { log } from "@/utils/logger";
3
+ import { Pricer } from "@/utils/pricer";
4
+ import { BN2Number, ChainInteractionService, CompoundV3Interface, CompoundV3SubCampaignType, YEAR, } from "@sdk";
5
+ export class CompoundV3DynamicData {
6
+ async build(chainId, campaigns) {
7
+ const pricer = await Pricer.load();
8
+ const calls = [];
9
+ for (const campaign of campaigns) {
10
+ calls.push({
11
+ allowFailure: true,
12
+ callData: CompoundV3Interface.encodeFunctionData("baseToken"),
13
+ target: campaign.campaignParameters.targetToken,
14
+ });
15
+ calls.push({
16
+ allowFailure: true,
17
+ callData: CompoundV3Interface.encodeFunctionData((campaign.campaignParameters.subCampaignType === CompoundV3SubCampaignType.SUPPLY
18
+ ? "totalSupply"
19
+ : "totalBorrow")),
20
+ target: campaign.campaignParameters.targetToken,
21
+ });
22
+ for (const holder of [...campaign.campaignParameters.blacklist, ...campaign.campaignParameters.whitelist]) {
23
+ calls.push({
24
+ allowFailure: true,
25
+ callData: CompoundV3Interface.encodeFunctionData((campaign.campaignParameters.subCampaignType === CompoundV3SubCampaignType.SUPPLY
26
+ ? "balanceOf"
27
+ : "borrowBalanceOf"), [holder]),
28
+ target: campaign.campaignParameters.targetToken,
29
+ });
30
+ }
31
+ }
32
+ const result = await ChainInteractionService(chainId).fetchState(calls);
33
+ let i = 0;
34
+ const dynamicData = [];
35
+ for (const campaign of campaigns) {
36
+ const underlyingToken = CompoundV3Interface.decodeFunctionResult("baseToken", result[i].returnData)[0];
37
+ let totalSupply;
38
+ try {
39
+ totalSupply = BN2Number(CompoundV3Interface.decodeFunctionResult((campaign.campaignParameters.subCampaignType === CompoundV3SubCampaignType.SUPPLY
40
+ ? "totalSupply"
41
+ : "totalBorrow"), result[i + 1].returnData)[0], campaign.campaignParameters.decimalsTargetToken);
42
+ }
43
+ catch {
44
+ log.warn(`Error getting totalSupply for campaign ${campaign.campaignId} and token ${campaign.campaignParameters.targetToken}`);
45
+ totalSupply = 0.0000001;
46
+ }
47
+ i += 2;
48
+ if (campaign.campaignParameters.whitelist.length > 0) {
49
+ totalSupply = 0;
50
+ for (const [index, holder] of campaign.campaignParameters.whitelist.entries()) {
51
+ try {
52
+ const balance = getCompoundBalance(result[i + index].returnData, campaign, campaign.campaignParameters.subCampaignType);
53
+ totalSupply += balance;
54
+ }
55
+ catch {
56
+ log.warn(`Error getting whitelist balance - campaign ${campaign.campaignId} - token ${campaign.campaignParameters.targetToken} - holder ${holder}`);
57
+ }
58
+ }
59
+ i += campaign.campaignParameters.whitelist.length;
60
+ }
61
+ else {
62
+ for (const [index, holder] of campaign.campaignParameters.blacklist.entries()) {
63
+ try {
64
+ const balance = getCompoundBalance(result[i + index].returnData, campaign, campaign.campaignParameters.subCampaignType);
65
+ totalSupply -= balance;
66
+ }
67
+ catch {
68
+ log.warn(`Error getting blacklist balance - campaign ${campaign.campaignId} - token ${campaign.campaignParameters.targetToken} - holder ${holder}`);
69
+ }
70
+ }
71
+ i += campaign.campaignParameters.blacklist.length;
72
+ }
73
+ const priceRewardToken = await TokenService.getRewardTokenPrice(campaign);
74
+ const priceTargetToken = (await pricer.get({
75
+ address: underlyingToken,
76
+ chainId: campaign.computeChainId,
77
+ // Remove the `c` at the beginning of the symbol and the `v3` at the end
78
+ symbol: campaign.campaignParameters.symbolTargetToken.slice(1, -2),
79
+ })) ?? 0;
80
+ let apr = (priceRewardToken * BN2Number(campaign.amount, campaign.campaignParameters.decimalsRewardToken) * YEAR * 100) /
81
+ campaign.campaignParameters.duration /
82
+ (totalSupply * priceTargetToken);
83
+ const rewardTokens = await TokenService.findManyOrCreate([
84
+ { chainId: campaign.chainId, address: campaign.rewardToken },
85
+ ]);
86
+ const rewardToken = rewardTokens[0];
87
+ apr = rewardToken.isPoint ? apr / 365 / 100 : apr;
88
+ dynamicData.push({
89
+ ...campaign,
90
+ apr,
91
+ totalSupplyTargetToken: totalSupply,
92
+ tvl: totalSupply * priceTargetToken,
93
+ priceRewardToken: priceRewardToken,
94
+ });
95
+ }
96
+ return dynamicData;
97
+ }
98
+ }
99
+ function getCompoundBalance(returnData, campaign, campaignSubType) {
100
+ return BN2Number(CompoundV3Interface.decodeFunctionResult((campaignSubType === CompoundV3SubCampaignType.SUPPLY ? "balanceOf" : "borrowBalanceOf"), returnData)[0], campaign.campaignParameters.decimalsTargetToken);
101
+ }
@@ -1,8 +1,8 @@
1
1
  import { TokenService } from "@/modules/v4/token/token.service";
2
+ import { log } from "@/utils/logger";
2
3
  import { Pricer } from "@/utils/pricer";
3
4
  import { BN2Number, DolomiteSubCampaignType, YEAR, } from "@sdk";
4
5
  import axios from "axios";
5
- import { log } from "../../../utils/logger";
6
6
  export class DolomiteDynamicData {
7
7
  async build(chainId, campaigns) {
8
8
  const pricer = await Pricer.load();
@@ -1,8 +1,8 @@
1
1
  import { TokenService } from "@/modules/v4/token/token.service";
2
+ import { log } from "@/utils/logger";
3
+ import { Pricer } from "@/utils/pricer";
2
4
  import { AragornEscrowInterface, BN2Number, ChainInteractionService, ERC20Interface, YEAR, } from "@sdk";
3
5
  import { ERC721SubCampaignType } from "libs/sdk/src/types/merkl/campaignTypes/erc721";
4
- import { log } from "../../../utils/logger";
5
- import { Pricer } from "../../../utils/pricer";
6
6
  import { getFixedApr, hasFixedAprConfig } from "../utils/getFixedApr";
7
7
  export class ERC721DynamicData {
8
8
  async build(chainId, campaigns) {
@@ -1,7 +1,7 @@
1
1
  import { TokenService } from "@/modules/v4/token/token.service";
2
+ import { log } from "@/utils/logger";
3
+ import { Pricer } from "@/utils/pricer";
2
4
  import { BN2Number, ChainInteractionService, CloberBookManagerInterface, CloberPoolInterface, ERC20Interface, ERC6909Interface, YEAR, } from "@sdk";
3
- import { log } from "../../../utils/logger";
4
- import { Pricer } from "../../../utils/pricer";
5
5
  import { getFixedApr, hasFixedAprConfig } from "../utils/getFixedApr";
6
6
  export class ERCMultiTokenDynamicData {
7
7
  async build(chainId, campaigns) {
@@ -1,7 +1,7 @@
1
1
  import { TokenService } from "@/modules/v4/token/token.service";
2
+ import { log } from "@/utils/logger";
2
3
  import { Pricer } from "@/utils/pricer";
3
4
  import { BN2Number, ChainInteractionService, EigenLayerStrategyInterface, EigenLayerStrategy__factory, YEAR, } from "@sdk";
4
- import { log } from "../../../utils/logger";
5
5
  export class EigenLayerDynamicData {
6
6
  async build(chainId, campaigns) {
7
7
  const pricer = await Pricer.load();
@@ -1,4 +1,4 @@
1
- import { type Erc20LikeCampaignEnum } from "@/engine/campaignTVL/implementations/Erc20/Erc20SubType";
1
+ import { type Erc20LikeCampaignEnum } from "@/engine/implementations/Erc20/subTypes";
2
2
  import { type CampaignParameters, type MerklChainId } from "@sdk";
3
3
  import type { DynamicDataBuilder } from "../interface";
4
4
  export declare class Erc20DynamicData implements DynamicDataBuilder<Erc20LikeCampaignEnum> {
@@ -1,9 +1,9 @@
1
- import { Erc20SubType } from "@/engine/campaignTVL/implementations/Erc20/Erc20SubType";
2
- import { getTokenPricesInfo } from "@/engine/erc20SubTypeProcessors/subtypesPrices";
3
- import { getTokenTypeRound1 } from "@/engine/erc20SubTypeProcessors/subtypesRound1";
4
- import { getTokenTypeRound2 } from "@/engine/erc20SubTypeProcessors/subtypesRound2";
5
- import { getTokenTypeRound3 } from "@/engine/erc20SubTypeProcessors/subtypesRound3";
6
- import { getTokenTypeRound4 } from "@/engine/erc20SubTypeProcessors/subtypesRound4";
1
+ import { getTokenPricesInfo } from "@/engine/deprecated/erc20SubTypeProcessors/subtypesPrices";
2
+ import { getTokenTypeRound1 } from "@/engine/deprecated/erc20SubTypeProcessors/subtypesRound1";
3
+ import { getTokenTypeRound2 } from "@/engine/deprecated/erc20SubTypeProcessors/subtypesRound2";
4
+ import { getTokenTypeRound3 } from "@/engine/deprecated/erc20SubTypeProcessors/subtypesRound3";
5
+ import { getTokenTypeRound4 } from "@/engine/deprecated/erc20SubTypeProcessors/subtypesRound4";
6
+ import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
7
7
  import { ComputedValueService } from "@/modules/v4/computedValue/computedValue.service";
8
8
  import { TokenRepository } from "@/modules/v4/token/token.repository";
9
9
  import { TokenService } from "@/modules/v4/token/token.service";
@@ -127,7 +127,7 @@ export class Erc20DynamicData {
127
127
  log.warn(`failed to update target token price: ${e}`);
128
128
  }
129
129
  i += callsForCampaign;
130
- let whitelistedSupplyTargetToken = tokenTypesByCampaign[campaign.campaignId].typeInfo.whitelistedSupplyTargetToken;
130
+ const whitelistedSupplyTargetToken = tokenTypesByCampaign[campaign.campaignId].typeInfo.whitelistedSupplyTargetToken;
131
131
  const totalSupplyTargetToken = whitelistedSupplyTargetToken;
132
132
  const priceTargetToken = tokenTypesByCampaign[campaign.campaignId].typeInfo.priceTargetToken;
133
133
  let lastEligibilityRatio = 1;
@@ -158,14 +158,14 @@ export class Erc20DynamicData {
158
158
  else if (hasFixedAprConfig(campaign.campaignParameters)) {
159
159
  apr = getFixedApr(campaign, priceRewardToken, priceTargetToken);
160
160
  }
161
- if (campaign.chainId === ChainId.ETHERLINK) {
162
- whitelistedSupplyTargetToken = tokenTypesByCampaign[campaign.campaignId].typeInfo.totalSupply;
163
- }
164
161
  dynamicData.push({
165
162
  ...campaign,
166
163
  apr,
167
164
  totalSupplyTargetToken,
168
165
  tvl: whitelistedSupplyTargetToken * priceTargetToken,
166
+ displayTvl: campaign.chainId === ChainId.ETHERLINK
167
+ ? tokenTypesByCampaign[campaign.campaignId].typeInfo.totalSupply * priceTargetToken
168
+ : undefined,
169
169
  type: tokenTypesByCampaign[campaign.campaignId].type,
170
170
  typeInfo: tokenTypesByCampaign[campaign.campaignId].typeInfo,
171
171
  priceRewardToken: priceRewardToken,
@@ -1,5 +1,5 @@
1
+ import { Pricer } from "@/utils/pricer";
1
2
  import { BN2Number, ChainInteractionService, ERC20Interface, } from "@sdk";
2
- import { Pricer } from "../../../utils/pricer";
3
3
  export class Erc20SnapshotDynamicData {
4
4
  async build(chainId, campaigns) {
5
5
  const pricer = await Pricer.load();
@@ -1,10 +1,10 @@
1
1
  import { BucketService } from "@/modules/v4/bucket/bucket.service";
2
2
  import { TokenService } from "@/modules/v4/token/token.service";
3
+ import { log } from "@/utils/logger";
4
+ import { Pricer } from "@/utils/pricer";
3
5
  import { engineDbClient } from "@db";
4
6
  import { BN2Number, ChainInteractionService, NETWORK_LABELS, } from "@sdk";
5
7
  import moment from "moment";
6
- import { log } from "../../../utils/logger";
7
- import { Pricer } from "../../../utils/pricer";
8
8
  /**
9
9
  * Compute TVL
10
10
  * @dev important: using the most recent state save with current prices
@@ -1,9 +1,9 @@
1
1
  import { TokenService } from "@/modules/v4/token/token.service";
2
+ import { Pricer } from "@/utils/pricer";
2
3
  import { BN2Number, ChainInteractionService, MetamorphoInterface, MorphoSubCampaignType, YEAR, morphoAddresses, } from "@sdk";
3
4
  import axios from "axios";
4
5
  import { utils } from "ethers";
5
6
  import { zeroAddress } from "viem";
6
- import { Pricer } from "../../../utils/pricer";
7
7
  // TODO add the ABI
8
8
  const MORPHO_ABI = [
9
9
  "function position(bytes32,address) external view returns (uint256,uint128,uint128)",
@@ -1,11 +1,11 @@
1
1
  import { CampaignService } from "@/modules/v4/campaign";
2
2
  import { TokenService } from "@/modules/v4/token/token.service";
3
+ import { log } from "@/utils/logger";
4
+ import { Pricer } from "@/utils/pricer";
5
+ import { providers } from "@/utils/providers";
3
6
  import { engineDbClient } from "@db";
4
7
  import { BN2Number, ChainInteractionService, ERC20Interface, NULL_ADDRESS, RadiantInterface, RadiantPoolInterface, YEAR, } from "@sdk";
5
8
  import { Contract } from "ethers";
6
- import { log } from "../../../utils/logger";
7
- import { Pricer } from "../../../utils/pricer";
8
- import { providers } from "../../../utils/providers";
9
9
  export class RadiantDynamicData {
10
10
  async build(chainId, campaigns) {
11
11
  const pricer = await Pricer.load();
@@ -1,8 +1,8 @@
1
1
  import { TokenService } from "@/modules/v4/token/token.service";
2
+ import { log } from "@/utils/logger";
3
+ import { Pricer } from "@/utils/pricer";
2
4
  import { BN2Number, ChainInteractionService, ERC20Interface, Forwarder, YEAR, } from "@sdk";
3
5
  import { utils } from "ethers";
4
- import { log } from "../../../utils/logger";
5
- import { Pricer } from "../../../utils/pricer";
6
6
  const SILO_ABI = [
7
7
  "function getAssets() view returns (address[])",
8
8
  "function assetStorage(address) external view returns (address,address,address,uint256,uint256,uint256)",
@@ -1,10 +1,10 @@
1
1
  import { BucketService } from "@/modules/v4/bucket/bucket.service";
2
2
  import { TokenService } from "@/modules/v4/token/token.service";
3
+ import { log } from "@/utils/logger";
4
+ import { Pricer } from "@/utils/pricer";
3
5
  import { engineDbClient } from "@db";
4
6
  import { BN2Number, ChainInteractionService, EAprBreakdownType, NETWORK_LABELS, UniswapV4Addresses, UniswapV4StateViewInterface, getSqrtRatioAtTick, shortenAddress, } from "@sdk";
5
7
  import moment from "moment";
6
- import { log } from "../../../utils/logger";
7
- import { Pricer } from "../../../utils/pricer";
8
8
  // Constants
9
9
  const CALLS_LENGTH = 2;
10
10
  /**
@@ -1,7 +1,7 @@
1
1
  import { TokenService } from "@/modules/v4/token/token.service";
2
+ import { log } from "@/utils/logger";
3
+ import { Pricer } from "@/utils/pricer";
2
4
  import { BN2Number, ChainInteractionService, ERC20Interface, YEAR, } from "@sdk";
3
- import { log } from "../../../utils/logger";
4
- import { Pricer } from "../../../utils/pricer";
5
5
  export const VEST_TREASURY = "0x7ccF5BbeC69c790D27dA3b5398B9e0d6D6EeC9F3";
6
6
  export const VEST_TOKEN = "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4";
7
7
  export class VestDynamicData {
@@ -1,7 +1,7 @@
1
+ import { MERKL_USER_POSITION_FETCHING_TIMEOUT } from "@/constants";
2
+ import { log } from "@/utils/logger";
1
3
  import { ALM, NETWORK_LABELS, merklSubgraphALMEndpoints, withTimeout } from "@sdk";
2
4
  import { gql, request } from "graphql-request";
3
- import { MERKL_USER_POSITION_FETCHING_TIMEOUT } from "../../../constants";
4
- import { log } from "../../../utils/logger";
5
5
  const A51StrategiesQuery = gql `
6
6
  query Strategies($pool_in: [String]) {
7
7
  strategies: strategies(where: { pool_in: $pool_in }, first: 1000) {
@@ -1,7 +1,7 @@
1
1
  import { Redis } from "@/cache";
2
+ import { batchMulticallCallWithRetry } from "@/utils/generic";
3
+ import { providers } from "@/utils/providers";
2
4
  import { DOLOMITE_MARGIN_MAPPING, DolomiteInterface, DolomiteMargin__factory, ERC20Interface, } from "@sdk";
3
- import { batchMulticallCallWithRetry } from "../../../utils/generic";
4
- import { providers } from "../../../utils/providers";
5
5
  export const getDomiteMarkets = async (chainId) => {
6
6
  if (!DOLOMITE_MARGIN_MAPPING[chainId]) {
7
7
  throw "Dolomite is not supported on this chain";
@@ -1,4 +1,4 @@
1
- import { fetchEulerVaultName } from "@/engine/erc20SubTypeProcessors/helpers/eulerVaultNames";
1
+ import { fetchEulerVaultName } from "@/engine/deprecated/erc20SubTypeProcessors/helpers/eulerVaultNames";
2
2
  import { batchMulticallCallWithRetry } from "@/utils/generic";
3
3
  import { log, logger } from "@/utils/logger";
4
4
  import { providers } from "@/utils/providers";
@@ -1,6 +1,6 @@
1
+ import type { Erc20LikeCampaignEnum, Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type CallDto, type Campaign, type CampaignParameters } from "@sdk";
3
- import type { Erc20LikeCampaignEnum, Erc20SubType } from "../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import type { tokenTypeStruct } from "./tokenTypeStruct";
5
5
  export declare enum Round {
6
6
  one = "round1",
@@ -1,4 +1,4 @@
1
- import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
1
+ import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
2
2
  export declare function getTypeFromFactoryAddress(address: string): Erc20SubType;
3
3
  export declare const enzymeFundValueCalculatorRouterMapping: {
4
4
  [address: string]: string;
@@ -1,4 +1,4 @@
1
- import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
1
+ import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
2
2
  const factoryAddresses = {
3
3
  "0x420DD381b31aEf6683db6B902084cB0FFECe40Da": Erc20SubType.aerodrome, // Aerodrome Base Factory
4
4
  "0x31832f2a97Fd20664D76Cc421207669b55CE4BC0": Erc20SubType.velodrome, // Velodrome Mode Factory
@@ -1,3 +1,3 @@
1
+ import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import { ChainId } from "@sdk";
2
- import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
3
  export declare function getTypeFromAddressChain(chain: ChainId, token: string): Erc20SubType;
@@ -1,5 +1,5 @@
1
+ import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import { ChainId } from "@sdk";
2
- import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
3
3
  const chainAddressToType = {
4
4
  [ChainId.CORN]: {
5
5
  "0xab3291b73a1087265e126e330cede0cfd4b8a693": Erc20SubType.curveNPool,
@@ -0,0 +1,2 @@
1
+ import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
2
+ export declare function getTypeFromOwnerAddress(address: string): Erc20SubType;
@@ -1,4 +1,4 @@
1
- import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
1
+ import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
2
2
  const ownerAddresses = {
3
3
  "0xbF7E49483881C76487b0989CD7d9A8239B20CA41": Erc20SubType.curve_2,
4
4
  "0x42a856dbEBB97AbC1269EAB32f3bb40C15102819": Erc20SubType.satlayer,
@@ -1,6 +1,6 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import type { Campaign, CampaignParameters } from "@sdk";
3
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawAave;
@@ -1,6 +1,6 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawAnglesLiquid;
@@ -1,6 +1,6 @@
1
+ import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
- import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawAsset;
@@ -1,6 +1,6 @@
1
+ import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import { generateCardName } from "@/utils/generateCardName";
2
3
  import { BN2Number } from "@sdk";
3
- import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor } from "../GenericProcessor";
5
5
  export class AssetProcessor extends GenericProcessor {
6
6
  rounds = {
@@ -1,7 +1,7 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
4
  import type { BigNumber } from "ethers";
4
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
5
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
6
6
  type callType = {
7
7
  key: keyof dataRawAura;
@@ -1,7 +1,7 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
4
  import type { BigNumber } from "ethers";
4
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
5
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
6
6
  type callType = {
7
7
  key: keyof dataRawBG;
@@ -1,7 +1,7 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
4
  import type { BigNumber } from "ethers";
4
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
5
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
6
6
  type callType = {
7
7
  key: keyof dataRawBG;
@@ -1,7 +1,7 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
4
  import { BigNumber } from "ethers";
4
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
5
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
6
6
  type callType = {
7
7
  key: keyof dataRawBP;
@@ -1,7 +1,7 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
4
  import type { BigNumber } from "ethers";
4
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
5
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
6
6
  type callType = {
7
7
  key: keyof dataRawBalancerV3;
@@ -1,6 +1,6 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawBeefy;
@@ -1,7 +1,7 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters, type UniswapV4PoolKey } from "@sdk";
3
4
  import type { PoolStateStructOutput } from "libs/sdk/src/generated/BunniV2Hub";
4
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
5
5
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
6
6
  type callType = {
7
7
  key: keyof dataRawBunniV2;
@@ -1,6 +1,6 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawCompound;
@@ -1,6 +1,6 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawERC4626;
@@ -1,6 +1,6 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawEnzyme;
@@ -1,6 +1,6 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import type { Campaign, CampaignParameters } from "@sdk";
3
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawEqualizerGauge;
@@ -1,6 +1,6 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawEuler;
@@ -1,6 +1,6 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawEuler;
@@ -1,6 +1,6 @@
1
+ import type { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
- import type { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawFluid;
@@ -1,6 +1,6 @@
1
+ import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import type { Pricer } from "@/utils/pricer";
2
3
  import { type Campaign, type CampaignParameters } from "@sdk";
3
- import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor, type dataType, type mandatoryCallKeys } from "../GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawFrax;
@@ -1,6 +1,6 @@
1
+ import { Erc20SubType } from "@/engine/implementations/Erc20/subTypes";
1
2
  import { generateCardName } from "@/utils/generateCardName";
2
3
  import { BN2Number } from "@sdk";
3
- import { Erc20SubType } from "../../campaignTVL/implementations/Erc20/Erc20SubType";
4
4
  import { GenericProcessor } from "../GenericProcessor";
5
5
  export class FraxProcessor extends GenericProcessor {
6
6
  rounds = {