@sonarwatch/portfolio-plugins 0.14.138 → 0.14.140

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 (400) hide show
  1. package/CHANGELOG.md +18 -10
  2. package/package.json +1 -1
  3. package/src/index.js +358 -639
  4. package/src/index.js.map +1 -1
  5. package/src/orphanPlatforms.d.ts +1 -0
  6. package/src/orphanPlatforms.js +12 -1
  7. package/src/orphanPlatforms.js.map +1 -1
  8. package/src/plugins/01/constants.js +8 -3
  9. package/src/plugins/01/constants.js.map +1 -1
  10. package/src/plugins/01/depostisFetcher.js +2 -1
  11. package/src/plugins/01/depostisFetcher.js.map +1 -1
  12. package/src/plugins/accessprotocol/constants.d.ts +1 -1
  13. package/src/plugins/accessprotocol/constants.js +8 -3
  14. package/src/plugins/accessprotocol/constants.js.map +1 -1
  15. package/src/plugins/adrastea/constants.js +4 -0
  16. package/src/plugins/adrastea/constants.js.map +1 -1
  17. package/src/plugins/adrena/constants.d.ts +2 -2
  18. package/src/plugins/adrena/constants.js +8 -3
  19. package/src/plugins/adrena/constants.js.map +1 -1
  20. package/src/plugins/allbridge/constants.js +6 -0
  21. package/src/plugins/allbridge/constants.js.map +1 -1
  22. package/src/plugins/armada-staking/constants.js +7 -0
  23. package/src/plugins/armada-staking/constants.js.map +1 -1
  24. package/src/plugins/atrix/constants.js +4 -1
  25. package/src/plugins/atrix/constants.js.map +1 -1
  26. package/src/plugins/aurory/constants.d.ts +1 -1
  27. package/src/plugins/aurory/constants.js +7 -2
  28. package/src/plugins/aurory/constants.js.map +1 -1
  29. package/src/plugins/banx/constants.d.ts +1 -1
  30. package/src/plugins/banx/constants.js +7 -2
  31. package/src/plugins/banx/constants.js.map +1 -1
  32. package/src/plugins/baskt/constants.js +3 -0
  33. package/src/plugins/baskt/constants.js.map +1 -1
  34. package/src/plugins/bluefin/index.d.ts +2 -2
  35. package/src/plugins/bluefin/index.js +2 -2
  36. package/src/plugins/bluefin/index.js.map +1 -1
  37. package/src/plugins/bonfida/constants.d.ts +1 -1
  38. package/src/plugins/bonfida/constants.js +8 -2
  39. package/src/plugins/bonfida/constants.js.map +1 -1
  40. package/src/plugins/bonkrewards/constants.d.ts +1 -1
  41. package/src/plugins/bonkrewards/constants.js +7 -2
  42. package/src/plugins/bonkrewards/constants.js.map +1 -1
  43. package/src/plugins/bskt/constants.d.ts +1 -1
  44. package/src/plugins/bskt/constants.js +7 -2
  45. package/src/plugins/bskt/constants.js.map +1 -1
  46. package/src/plugins/citrus/constants.js +3 -0
  47. package/src/plugins/citrus/constants.js.map +1 -1
  48. package/src/plugins/clone/constants.js +2 -0
  49. package/src/plugins/clone/constants.js.map +1 -1
  50. package/src/plugins/clone/depositsFetcher.js +1 -1
  51. package/src/plugins/clone/depositsFetcher.js.map +1 -1
  52. package/src/plugins/cropper/constants.d.ts +1 -0
  53. package/src/plugins/cropper/constants.js +9 -1
  54. package/src/plugins/cropper/constants.js.map +1 -1
  55. package/src/plugins/cyberfrogs/constants.js +2 -0
  56. package/src/plugins/cyberfrogs/constants.js.map +1 -1
  57. package/src/plugins/daos/constants.js +4 -0
  58. package/src/plugins/daos/constants.js.map +1 -1
  59. package/src/plugins/debridge/constants.d.ts +1 -1
  60. package/src/plugins/debridge/constants.js +8 -2
  61. package/src/plugins/debridge/constants.js.map +1 -1
  62. package/src/plugins/deepbook/index.d.ts +2 -0
  63. package/src/plugins/deepbook/index.js +2 -1
  64. package/src/plugins/deepbook/index.js.map +1 -1
  65. package/src/plugins/defiland/constants.d.ts +1 -1
  66. package/src/plugins/defiland/constants.js +7 -2
  67. package/src/plugins/defiland/constants.js.map +1 -1
  68. package/src/plugins/defituna/constants.js +3 -0
  69. package/src/plugins/defituna/constants.js.map +1 -1
  70. package/src/plugins/defituna/lendingFetcher.js +2 -0
  71. package/src/plugins/defituna/lendingFetcher.js.map +1 -1
  72. package/src/plugins/defituna/positionsFetcher.js +2 -0
  73. package/src/plugins/defituna/positionsFetcher.js.map +1 -1
  74. package/src/plugins/divvy/constants.d.ts +1 -1
  75. package/src/plugins/divvy/constants.js +7 -2
  76. package/src/plugins/divvy/constants.js.map +1 -1
  77. package/src/plugins/divvy/housePoolFetcher.js +2 -0
  78. package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
  79. package/src/plugins/drift/constants.d.ts +1 -1
  80. package/src/plugins/drift/constants.js +8 -2
  81. package/src/plugins/drift/constants.js.map +1 -1
  82. package/src/plugins/drift/depositsFetcher.js +2 -0
  83. package/src/plugins/drift/depositsFetcher.js.map +1 -1
  84. package/src/plugins/drift/index.d.ts +2 -1
  85. package/src/plugins/drift/index.js +3 -4
  86. package/src/plugins/drift/index.js.map +1 -1
  87. package/src/plugins/drift-market-maker-vault/constants.js +24 -1
  88. package/src/plugins/drift-market-maker-vault/constants.js.map +1 -1
  89. package/src/plugins/drift-market-maker-vault/depositsFetcher.js +2 -0
  90. package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
  91. package/src/plugins/elemental/constants.js +4 -0
  92. package/src/plugins/elemental/constants.js.map +1 -1
  93. package/src/plugins/elemental/depositFetcher.js +1 -1
  94. package/src/plugins/elemental/depositFetcher.js.map +1 -1
  95. package/src/plugins/ensofi/constants.js +5 -0
  96. package/src/plugins/ensofi/constants.js.map +1 -1
  97. package/src/plugins/exponent/constants.js +5 -0
  98. package/src/plugins/exponent/constants.js.map +1 -1
  99. package/src/plugins/exponent/liquidityFetcher.js +1 -1
  100. package/src/plugins/exponent/liquidityFetcher.js.map +1 -1
  101. package/src/plugins/famousfoxfederation/constants.d.ts +1 -1
  102. package/src/plugins/famousfoxfederation/constants.js +4 -2
  103. package/src/plugins/famousfoxfederation/constants.js.map +1 -1
  104. package/src/plugins/famousfoxfederation/stakingFetcher.js +4 -2
  105. package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -1
  106. package/src/plugins/flash/constants.js +4 -0
  107. package/src/plugins/flash/constants.js.map +1 -1
  108. package/src/plugins/flash/perpetualFetcher.js +1 -1
  109. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  110. package/src/plugins/flash/stakeFetcher.js +12 -10
  111. package/src/plugins/flash/stakeFetcher.js.map +1 -1
  112. package/src/plugins/fluxbeam/constants.js +6 -0
  113. package/src/plugins/fluxbeam/constants.js.map +1 -1
  114. package/src/plugins/fragmetric/constants.js +10 -0
  115. package/src/plugins/fragmetric/constants.js.map +1 -1
  116. package/src/plugins/francium/constants.js +8 -1
  117. package/src/plugins/francium/constants.js.map +1 -1
  118. package/src/plugins/francium/lendingFetcher.js +1 -1
  119. package/src/plugins/francium/lendingFetcher.js.map +1 -1
  120. package/src/plugins/francium/tokens.js +2 -1
  121. package/src/plugins/francium/tokens.js.map +1 -1
  122. package/src/plugins/futarchy/constants.d.ts +1 -0
  123. package/src/plugins/futarchy/constants.js +7 -1
  124. package/src/plugins/futarchy/constants.js.map +1 -1
  125. package/src/plugins/genesysgo/constants.d.ts +1 -1
  126. package/src/plugins/genesysgo/constants.js +7 -2
  127. package/src/plugins/genesysgo/constants.js.map +1 -1
  128. package/src/plugins/goosefx/constants.d.ts +1 -1
  129. package/src/plugins/goosefx/constants.js +8 -4
  130. package/src/plugins/goosefx/constants.js.map +1 -1
  131. package/src/plugins/grass/constants.d.ts +1 -1
  132. package/src/plugins/grass/constants.js +6 -2
  133. package/src/plugins/grass/constants.js.map +1 -1
  134. package/src/plugins/grass/index.d.ts +2 -2
  135. package/src/plugins/grass/index.js +2 -2
  136. package/src/plugins/grass/index.js.map +1 -1
  137. package/src/plugins/hawksight/constants.js +4 -0
  138. package/src/plugins/hawksight/constants.js.map +1 -1
  139. package/src/plugins/hawksight/positionsFetcher.js +2 -2
  140. package/src/plugins/hawksight/positionsFetcher.js.map +1 -1
  141. package/src/plugins/hedgehog/constants.js +4 -0
  142. package/src/plugins/hedgehog/constants.js.map +1 -1
  143. package/src/plugins/holdium/constants.js +2 -0
  144. package/src/plugins/holdium/constants.js.map +1 -1
  145. package/src/plugins/hxro/constants.d.ts +1 -1
  146. package/src/plugins/hxro/constants.js +7 -2
  147. package/src/plugins/hxro/constants.js.map +1 -1
  148. package/src/plugins/iloop/constants.js +4 -0
  149. package/src/plugins/iloop/constants.js.map +1 -1
  150. package/src/plugins/jito/constants.d.ts +2 -1
  151. package/src/plugins/jito/constants.js +16 -2
  152. package/src/plugins/jito/constants.js.map +1 -1
  153. package/src/plugins/jito/ticketFetcher.js +3 -1
  154. package/src/plugins/jito/ticketFetcher.js.map +1 -1
  155. package/src/plugins/jupiter/exchange/constants.d.ts +2 -1
  156. package/src/plugins/jupiter/exchange/constants.js +8 -2
  157. package/src/plugins/jupiter/exchange/constants.js.map +1 -1
  158. package/src/plugins/jupiter/exchange/dcaFetcher.js +1 -1
  159. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  160. package/src/plugins/jupiter/exchange/limitFetcher.js +1 -1
  161. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
  162. package/src/plugins/jupiter/exchange/perpetualFetcher.js +5 -3
  163. package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
  164. package/src/plugins/jupiter/governance/constants.js +7 -5
  165. package/src/plugins/jupiter/governance/constants.js.map +1 -1
  166. package/src/plugins/jupiter/launchpad/constants.js +7 -6
  167. package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
  168. package/src/plugins/jupiter/launchpad/lfgAirdropFetcher.js +2 -1
  169. package/src/plugins/jupiter/launchpad/lfgAirdropFetcher.js.map +1 -1
  170. package/src/plugins/kamino/constants.d.ts +1 -1
  171. package/src/plugins/kamino/constants.js +20 -38
  172. package/src/plugins/kamino/constants.js.map +1 -1
  173. package/src/plugins/kamino/farmsFetcher.js +1 -1
  174. package/src/plugins/kamino/farmsFetcher.js.map +1 -1
  175. package/src/plugins/kamino/lendsFetcher.js +2 -2
  176. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  177. package/src/plugins/layer3/constants.d.ts +1 -1
  178. package/src/plugins/layer3/constants.js +8 -2
  179. package/src/plugins/layer3/constants.js.map +1 -1
  180. package/src/plugins/lifinity/constants.d.ts +2 -2
  181. package/src/plugins/lifinity/constants.js +10 -4
  182. package/src/plugins/lifinity/constants.js.map +1 -1
  183. package/src/plugins/loopscale/constants.js +4 -0
  184. package/src/plugins/loopscale/constants.js.map +1 -1
  185. package/src/plugins/lulo/constants.js +5 -0
  186. package/src/plugins/lulo/constants.js.map +1 -1
  187. package/src/plugins/magiceden/constants.d.ts +1 -1
  188. package/src/plugins/magiceden/constants.js +8 -3
  189. package/src/plugins/magiceden/constants.js.map +1 -1
  190. package/src/plugins/magiceden/index.d.ts +2 -2
  191. package/src/plugins/magiceden/index.js +2 -2
  192. package/src/plugins/magiceden/index.js.map +1 -1
  193. package/src/plugins/mango/collateralFetcher.js +1 -1
  194. package/src/plugins/mango/collateralFetcher.js.map +1 -1
  195. package/src/plugins/mango/constants.js +9 -2
  196. package/src/plugins/mango/constants.js.map +1 -1
  197. package/src/plugins/mango/redeemFetcher.js +2 -1
  198. package/src/plugins/mango/redeemFetcher.js.map +1 -1
  199. package/src/plugins/marginfi/constants.js +6 -0
  200. package/src/plugins/marginfi/constants.js.map +1 -1
  201. package/src/plugins/marginfi/depositsFetcher.js +2 -2
  202. package/src/plugins/marginfi/depositsFetcher.js.map +1 -1
  203. package/src/plugins/marinade/constants.d.ts +2 -1
  204. package/src/plugins/marinade/constants.js +9 -2
  205. package/src/plugins/marinade/constants.js.map +1 -1
  206. package/src/plugins/marinade/index.d.ts +2 -0
  207. package/src/plugins/marinade/index.js +2 -1
  208. package/src/plugins/marinade/index.js.map +1 -1
  209. package/src/plugins/metaplex/constants.js +5 -0
  210. package/src/plugins/metaplex/constants.js.map +1 -1
  211. package/src/plugins/meteora/constants.js +5 -0
  212. package/src/plugins/meteora/constants.js.map +1 -1
  213. package/src/plugins/meteora/dlmmVaultsFetcher.js +1 -1
  214. package/src/plugins/meteora/dlmmVaultsFetcher.js.map +1 -1
  215. package/src/plugins/meteora/farmsFetcher.js +1 -1
  216. package/src/plugins/meteora/farmsFetcher.js.map +1 -1
  217. package/src/plugins/meteora/stakeForFeeFetcher.js +2 -0
  218. package/src/plugins/meteora/stakeForFeeFetcher.js.map +1 -1
  219. package/src/plugins/moonwalk/constants.js +4 -1
  220. package/src/plugins/moonwalk/constants.js.map +1 -1
  221. package/src/plugins/nosana/constants.js +6 -1
  222. package/src/plugins/nosana/constants.js.map +1 -1
  223. package/src/plugins/nxfinance/constants.js +1 -0
  224. package/src/plugins/nxfinance/constants.js.map +1 -1
  225. package/src/plugins/nxfinance/positionsFetcher.js +2 -0
  226. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  227. package/src/plugins/nxfinance/stakingFetcher.js.map +1 -1
  228. package/src/plugins/orca/constants.js +7 -0
  229. package/src/plugins/orca/constants.js.map +1 -1
  230. package/src/plugins/orca/getWhirlpoolPositions.js +2 -0
  231. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  232. package/src/plugins/parcl/constants.d.ts +1 -1
  233. package/src/plugins/parcl/constants.js +7 -2
  234. package/src/plugins/parcl/constants.js.map +1 -1
  235. package/src/plugins/parcl/index.d.ts +2 -1
  236. package/src/plugins/parcl/index.js +3 -4
  237. package/src/plugins/parcl/index.js.map +1 -1
  238. package/src/plugins/perena/constants.js +5 -0
  239. package/src/plugins/perena/constants.js.map +1 -1
  240. package/src/plugins/phoenix/constants.js +4 -0
  241. package/src/plugins/phoenix/constants.js.map +1 -1
  242. package/src/plugins/photofinish/constants.d.ts +1 -1
  243. package/src/plugins/photofinish/constants.js +5 -2
  244. package/src/plugins/photofinish/constants.js.map +1 -1
  245. package/src/plugins/picasso/constants.js +7 -0
  246. package/src/plugins/picasso/constants.js.map +1 -1
  247. package/src/plugins/picasso/unstakingPositionsFetcher.js +2 -2
  248. package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
  249. package/src/plugins/pluto/constants.js +5 -0
  250. package/src/plugins/pluto/constants.js.map +1 -1
  251. package/src/plugins/port/constants.js +3 -0
  252. package/src/plugins/port/constants.js.map +1 -1
  253. package/src/plugins/port/obligationsFetcher.js +2 -0
  254. package/src/plugins/port/obligationsFetcher.js.map +1 -1
  255. package/src/plugins/pudgypenguins/constants.d.ts +1 -1
  256. package/src/plugins/pudgypenguins/constants.js +4 -2
  257. package/src/plugins/pudgypenguins/constants.js.map +1 -1
  258. package/src/plugins/pyth/constants.d.ts +1 -1
  259. package/src/plugins/pyth/constants.js +7 -2
  260. package/src/plugins/pyth/constants.js.map +1 -1
  261. package/src/plugins/pyth/pricingJob.js +2 -1
  262. package/src/plugins/pyth/pricingJob.js.map +1 -1
  263. package/src/plugins/quarry/constants.js +2 -0
  264. package/src/plugins/quarry/constants.js.map +1 -1
  265. package/src/plugins/quarry/positionsFetcher.js +1 -1
  266. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  267. package/src/plugins/rain/constants.js +5 -0
  268. package/src/plugins/rain/constants.js.map +1 -1
  269. package/src/plugins/ratex/constants.js +5 -0
  270. package/src/plugins/ratex/constants.js.map +1 -1
  271. package/src/plugins/ratex/positionsFetcher.js +1 -1
  272. package/src/plugins/ratex/positionsFetcher.js.map +1 -1
  273. package/src/plugins/raydium/constants.d.ts +1 -1
  274. package/src/plugins/raydium/constants.js +8 -2
  275. package/src/plugins/raydium/constants.js.map +1 -1
  276. package/src/plugins/raydium/farmsFetcher.js +2 -0
  277. package/src/plugins/raydium/farmsFetcher.js.map +1 -1
  278. package/src/plugins/saber/constants.js +1 -0
  279. package/src/plugins/saber/constants.js.map +1 -1
  280. package/src/plugins/saber/index.d.ts +2 -0
  281. package/src/plugins/saber/index.js +2 -1
  282. package/src/plugins/saber/index.js.map +1 -1
  283. package/src/plugins/sanctum/constants.d.ts +1 -1
  284. package/src/plugins/sanctum/constants.js +7 -2
  285. package/src/plugins/sanctum/constants.js.map +1 -1
  286. package/src/plugins/sandglass/constants.js +2 -0
  287. package/src/plugins/sandglass/constants.js.map +1 -1
  288. package/src/plugins/sandglass/depositFetcher.js +1 -1
  289. package/src/plugins/sandglass/depositFetcher.js.map +1 -1
  290. package/src/plugins/save/constants.d.ts +1 -1
  291. package/src/plugins/save/constants.js +8 -2
  292. package/src/plugins/save/constants.js.map +1 -1
  293. package/src/plugins/save/obligationsFetcher.js +2 -2
  294. package/src/plugins/save/obligationsFetcher.js.map +1 -1
  295. package/src/plugins/sharky/constants.js +4 -0
  296. package/src/plugins/sharky/constants.js.map +1 -1
  297. package/src/plugins/solayer/constants.d.ts +4 -4
  298. package/src/plugins/solayer/constants.js +12 -6
  299. package/src/plugins/solayer/constants.js.map +1 -1
  300. package/src/plugins/solayer/index.d.ts +2 -2
  301. package/src/plugins/solayer/index.js +2 -2
  302. package/src/plugins/solayer/index.js.map +1 -1
  303. package/src/plugins/sonic/constants.d.ts +1 -1
  304. package/src/plugins/sonic/constants.js +7 -2
  305. package/src/plugins/sonic/constants.js.map +1 -1
  306. package/src/plugins/sonic/index.d.ts +2 -2
  307. package/src/plugins/sonic/index.js +2 -2
  308. package/src/plugins/sonic/index.js.map +1 -1
  309. package/src/plugins/spdr/constants.d.ts +1 -1
  310. package/src/plugins/spdr/constants.js +8 -2
  311. package/src/plugins/spdr/constants.js.map +1 -1
  312. package/src/plugins/stabble/constants.js +6 -0
  313. package/src/plugins/stabble/constants.js.map +1 -1
  314. package/src/plugins/staratlas/constants.d.ts +2 -2
  315. package/src/plugins/staratlas/constants.js +9 -3
  316. package/src/plugins/staratlas/constants.js.map +1 -1
  317. package/src/plugins/streamflow/constants.d.ts +1 -1
  318. package/src/plugins/streamflow/constants.js +8 -2
  319. package/src/plugins/streamflow/constants.js.map +1 -1
  320. package/src/plugins/suilend/index.d.ts +2 -2
  321. package/src/plugins/suilend/index.js +2 -2
  322. package/src/plugins/suilend/index.js.map +1 -1
  323. package/src/plugins/suins/index.d.ts +2 -2
  324. package/src/plugins/suins/index.js +2 -2
  325. package/src/plugins/suins/index.js.map +1 -1
  326. package/src/plugins/switchboard/constants.d.ts +2 -0
  327. package/src/plugins/switchboard/constants.js +14 -1
  328. package/src/plugins/switchboard/constants.js.map +1 -1
  329. package/src/plugins/switchboard/index.d.ts +2 -0
  330. package/src/plugins/switchboard/index.js +3 -1
  331. package/src/plugins/switchboard/index.js.map +1 -1
  332. package/src/plugins/symmetry/constants.js +6 -0
  333. package/src/plugins/symmetry/constants.js.map +1 -1
  334. package/src/plugins/tensor/constants.d.ts +1 -1
  335. package/src/plugins/tensor/constants.js +7 -2
  336. package/src/plugins/tensor/constants.js.map +1 -1
  337. package/src/plugins/tensor/index.d.ts +3 -1
  338. package/src/plugins/tensor/index.js +3 -2
  339. package/src/plugins/tensor/index.js.map +1 -1
  340. package/src/plugins/texture/constants.js +5 -1
  341. package/src/plugins/texture/constants.js.map +1 -1
  342. package/src/plugins/thevault/constants.js +5 -0
  343. package/src/plugins/thevault/constants.js.map +1 -1
  344. package/src/plugins/top-tokens/index.d.ts +4 -0
  345. package/src/plugins/top-tokens/index.js +3 -1
  346. package/src/plugins/top-tokens/index.js.map +1 -1
  347. package/src/plugins/triad/constants.js +6 -0
  348. package/src/plugins/triad/constants.js.map +1 -1
  349. package/src/plugins/tulip/constants.d.ts +1 -1
  350. package/src/plugins/tulip/constants.js +10 -2
  351. package/src/plugins/tulip/constants.js.map +1 -1
  352. package/src/plugins/tulip/depositsFetcher.js +1 -1
  353. package/src/plugins/tulip/depositsFetcher.js.map +1 -1
  354. package/src/plugins/uniswap-v2/index.d.ts +2 -0
  355. package/src/plugins/uniswap-v2/index.js +2 -1
  356. package/src/plugins/uniswap-v2/index.js.map +1 -1
  357. package/src/plugins/uxd/constants.d.ts +1 -1
  358. package/src/plugins/uxd/constants.js +9 -2
  359. package/src/plugins/uxd/constants.js.map +1 -1
  360. package/src/plugins/vaultka/constants.js +5 -0
  361. package/src/plugins/vaultka/constants.js.map +1 -1
  362. package/src/plugins/vaultka/lendingFetcher.js +1 -1
  363. package/src/plugins/vaultka/lendingFetcher.js.map +1 -1
  364. package/src/plugins/vaultka/strategyFetcher.js +1 -1
  365. package/src/plugins/vaultka/strategyFetcher.js.map +1 -1
  366. package/src/plugins/whalesmarket/constants.js +5 -0
  367. package/src/plugins/whalesmarket/constants.js.map +1 -1
  368. package/src/plugins/wormhole/constants.d.ts +1 -1
  369. package/src/plugins/wormhole/constants.js +8 -2
  370. package/src/plugins/wormhole/constants.js.map +1 -1
  371. package/src/plugins/zelo/constants.js +4 -1
  372. package/src/plugins/zelo/constants.js.map +1 -1
  373. package/src/plugins/zeta/airdropFetcher.d.ts +1 -2
  374. package/src/plugins/zeta/airdropFetcher.js +14 -16
  375. package/src/plugins/zeta/airdropFetcher.js.map +1 -1
  376. package/src/plugins/zeta/constants.d.ts +1 -1
  377. package/src/plugins/zeta/constants.js +9 -2
  378. package/src/plugins/zeta/constants.js.map +1 -1
  379. package/src/plugins/zeta/index.d.ts +2 -2
  380. package/src/plugins/zeta/index.js +2 -2
  381. package/src/plugins/zeta/index.js.map +1 -1
  382. package/src/plugins/zeus/constants.d.ts +5 -0
  383. package/src/plugins/zeus/constants.js +25 -0
  384. package/src/plugins/zeus/constants.js.map +1 -0
  385. package/src/plugins/zeus/delegationsFetcher.d.ts +3 -0
  386. package/src/plugins/zeus/delegationsFetcher.js +83 -0
  387. package/src/plugins/zeus/delegationsFetcher.js.map +1 -0
  388. package/src/plugins/zeus/index.d.ts +6 -0
  389. package/src/plugins/zeus/index.js +12 -0
  390. package/src/plugins/zeus/index.js.map +1 -0
  391. package/src/plugins/zeus/structs.d.ts +29 -0
  392. package/src/plugins/zeus/structs.js +30 -0
  393. package/src/plugins/zeus/structs.js.map +1 -0
  394. package/src/utils/clients/getClientSolana.d.ts +7 -1
  395. package/src/utils/clients/getClientSolana.js +2 -1
  396. package/src/utils/clients/getClientSolana.js.map +1 -1
  397. package/src/utils/misc/checkComputeAndStoreTokensPrices.js +4 -2
  398. package/src/utils/misc/checkComputeAndStoreTokensPrices.js.map +1 -1
  399. package/src/utils/solana/getProgramAccounts.js +0 -1
  400. package/src/utils/solana/getProgramAccounts.js.map +1 -1
@@ -1,7 +1,8 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { AirdropFetcher } from '../../AirdropFetcher';
2
3
  import { Fetcher } from '../../Fetcher';
3
4
  import { Job } from '../../Job';
4
5
  export declare const platforms: Platform[];
5
6
  export declare const jobs: Job[];
6
7
  export declare const fetchers: Fetcher[];
7
- export { airdropFetcher } from './helpersAirdrop';
8
+ export declare const airdropFetchers: AirdropFetcher[];
@@ -3,17 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.airdropFetcher = exports.fetchers = exports.jobs = exports.platforms = void 0;
6
+ exports.airdropFetchers = exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const spotMarketsJob_1 = __importDefault(require("./spotMarketsJob"));
9
9
  const prepMarketsJob_1 = __importDefault(require("./prepMarketsJob"));
10
10
  const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
11
11
  const premarketJob_1 = __importDefault(require("./premarketJob"));
12
- // import airdropFetcher from './airdropFetcher';
13
12
  const airdropFetcher_1 = __importDefault(require("./airdropFetcher"));
13
+ const helpersAirdrop_1 = require("./helpersAirdrop");
14
14
  exports.platforms = [constants_1.platform];
15
15
  exports.jobs = [spotMarketsJob_1.default, premarketJob_1.default, prepMarketsJob_1.default];
16
16
  exports.fetchers = [depositsFetcher_1.default, airdropFetcher_1.default];
17
- var helpersAirdrop_1 = require("./helpersAirdrop");
18
- Object.defineProperty(exports, "airdropFetcher", { enumerable: true, get: function () { return helpersAirdrop_1.airdropFetcher; } });
17
+ exports.airdropFetchers = [helpersAirdrop_1.airdropFetcher];
19
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAC9C,sEAA8C;AAC9C,wEAAgD;AAChD,kEAA0C;AAC1C,iDAAiD;AACjD,sEAAmD;AAEtC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,wBAAc,EAAE,sBAAY,EAAE,wBAAc,CAAC,CAAC;AAC7D,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,wBAAmB,CAAC,CAAC;AAC1E,mDAAkD;AAAzC,gHAAA,cAAc,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,sEAA8C;AAC9C,sEAA8C;AAC9C,wEAAgD;AAChD,kEAA0C;AAC1C,sEAAmD;AACnD,qDAAkD;AAErC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,wBAAc,EAAE,sBAAY,EAAE,wBAAc,CAAC,CAAC;AAC7D,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,wBAAmB,CAAC,CAAC;AAC7D,QAAA,eAAe,GAAqB,CAAC,+BAAc,CAAC,CAAC"}
@@ -11,6 +11,7 @@ exports.circuitPlatform = {
11
11
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/circuit.webp',
12
12
  website: 'https://app.circuit.trade/',
13
13
  twitter: 'https://twitter.com/CircuitTrading_',
14
+ documentation: 'https://docs.circuit.trade/',
14
15
  };
15
16
  exports.moosePlatformId = 'moose';
16
17
  exports.moosePlatform = {
@@ -19,6 +20,9 @@ exports.moosePlatform = {
19
20
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/moose.webp',
20
21
  website: 'https://moose.market/',
21
22
  twitter: 'https://twitter.com/moose_market',
23
+ documentation: 'https://docs.moose.market/',
24
+ defiLlamaId: 'moose',
25
+ description: 'Moose is a decentralized protocol on the Solana blockchain, designed to provide users with opportunities to generate yield by depositing USDC into various vaults.',
22
26
  };
23
27
  exports.neutralPlatformId = 'neutral';
24
28
  exports.neutralPlatform = {
@@ -27,6 +31,12 @@ exports.neutralPlatform = {
27
31
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/neutral.webp',
28
32
  website: 'https://www.app.neutral.trade/',
29
33
  twitter: 'https://twitter.com/TradeNeutral',
34
+ documentation: 'https://docs.neutral.trade/',
35
+ discord: 'https://discord.gg/neutraltrade',
36
+ telegram: 'https://t.me/neutraltrade/',
37
+ medium: 'https://neutraltrade.medium.com/',
38
+ description: 'Hedge fund strategies for everyone.',
39
+ defiLlamaId: 'neutral-trade',
30
40
  };
31
41
  exports.gauntletPlatformId = 'gauntlet';
32
42
  exports.gauntletPlatform = {
@@ -35,14 +45,20 @@ exports.gauntletPlatform = {
35
45
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/gauntlet.webp',
36
46
  twitter: 'https://twitter.com/gauntlet_xyz',
37
47
  website: 'https://app.drift.trade/vaults/CoHd9JpwfcA76XQGA4AYfnjvAtWKoBQ6eWBkFzR1A2ui',
48
+ description: 'Economic modeling for crypto. Research, optimization, and risk management for DEX, Lending, Perpetuals, (Re)staking, Stablecoins, and Ecosystems',
38
49
  };
39
50
  exports.vectisPlatformId = 'vectis';
40
51
  exports.vectisPlatform = {
41
52
  id: exports.vectisPlatformId,
42
53
  name: 'Vectis',
43
54
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/vectis.webp',
44
- twitter: 'https://twitter.com/vectis_xyz',
55
+ twitter: 'https://x.com/vectis_finance',
45
56
  website: 'https://app.vectis.finance/',
57
+ documentation: 'https://docs.vectis.finance/',
58
+ defiLlamaId: 'vectis-finance',
59
+ description: 'Vectis is the premier platform for high-yield, low-risk opportunities on Solana, designed for both seasoned DeFi enthusiasts and newcomers.',
60
+ telegram: 'https://t.me/vectisfi',
61
+ medium: 'https://medium.com/@vectisfinance',
46
62
  };
47
63
  exports.hedgyPlatformId = 'hedgy';
48
64
  exports.hedgyPlatform = {
@@ -51,6 +67,8 @@ exports.hedgyPlatform = {
51
67
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/hedgy.webp',
52
68
  twitter: 'https://x.com/HedgyMarket',
53
69
  website: 'https://hedgy.market/',
70
+ documentation: 'https://docs.hedgy.market/',
71
+ description: 'Hedgy is a decentralized hedge fund designed to provide innovative strategies for consistent yield while minimizing exposure to market risks.',
54
72
  };
55
73
  exports.m1CapitalPlatformId = 'm1capital';
56
74
  exports.m1CapitalPlatform = {
@@ -59,6 +77,7 @@ exports.m1CapitalPlatform = {
59
77
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/m1capital.webp',
60
78
  twitter: 'https://x.com/M1Capital_',
61
79
  website: 'https://m1-capital.com/',
80
+ description: 'M1 Capital is an Amsterdam-based hedge fund managing $50 million in Assets under Management (AuM). The firm specializes in market-neutral strategies.',
62
81
  };
63
82
  exports.knightradePlatformId = 'knightrade';
64
83
  exports.knightradePlatform = {
@@ -67,6 +86,10 @@ exports.knightradePlatform = {
67
86
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/knightrade.webp',
68
87
  twitter: 'https://x.com/KnightradeTeam',
69
88
  website: 'https://app.knightrade.io/',
89
+ defiLlamaId: 'knightrade',
90
+ discord: 'https://discord.gg/TKMrEJzCM4 ',
91
+ telegram: 't.me/knightrade',
92
+ documentation: 'https://doc.knightrade.io/',
70
93
  };
71
94
  exports.luckyperpPlatformId = 'luckyperp';
72
95
  exports.luckyperpPlatform = {
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE5C,sDAA2E;AAC3E,mFAAqE;AAExD,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAC9B,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,yBAA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B,CAAC;IAClE,CAAC,8CAA8C,EAAE,0BAAkB,CAAC;IACpE,CAAC,8CAA8C,EAAE,uBAAe,CAAC;IACjE,CAAC,8CAA8C,EAAE,0BAAkB,CAAC;IACpE,CAAC,8CAA8C,EAAE,wBAAgB,CAAC;IAClE,CAAC,8CAA8C,EAAE,2BAAmB,CAAC;IACrE,CAAC,8CAA8C,EAAE,4BAAoB,CAAC;IACtE,CAAC,8CAA8C,EAAE,2BAAmB,CAAC;IACrE,CAAC,8CAA8C,EAAE,sBAAmB,CAAC;CACtE,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE5C,sDAA2E;AAC3E,mFAAqE;AAExD,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAC9B,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,yBAAiB;IACrB,IAAI,EAAE,SAAS;IACf,KAAK,EACH,6EAA6E;IAC/E,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,qCAAqC;IAC9C,aAAa,EAAE,6BAA6B;CAC7C,CAAC;AAEW,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,uBAAe;IACnB,IAAI,EAAE,cAAc;IACpB,KAAK,EACH,2EAA2E;IAC7E,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,kCAAkC;IAC3C,aAAa,EAAE,4BAA4B;IAC3C,WAAW,EAAE,OAAO;IACpB,WAAW,EACT,oKAAoK;CACvK,CAAC;AAEW,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAC9B,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,yBAAiB;IACrB,IAAI,EAAE,SAAS;IACf,KAAK,EACH,6EAA6E;IAC/E,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,kCAAkC;IAC3C,aAAa,EAAE,6BAA6B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A8C,EAAE,0BAAkB,CAAC;IACpE,CAAC,8CAA8C,EAAE,uBAAe,CAAC;IACjE,CAAC,8CAA8C,EAAE,0BAAkB,CAAC;IACpE,CAAC,8CAA8C,EAAE,wBAAgB,CAAC;IAClE,CAAC,8CAA8C,EAAE,2BAAmB,CAAC;IACrE,CAAC,8CAA8C,EAAE,4BAAoB,CAAC;IACtE,CAAC,8CAA8C,EAAE,2BAAmB,CAAC;IACrE,CAAC,8CAA8C,EAAE,sBAAmB,CAAC;CACtE,CAAC,CAAC"}
@@ -32,6 +32,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
32
32
  if (depositAccounts.length === 0)
33
33
  return [];
34
34
  const vaultsInfo = yield cache.getItems(depositAccounts.map((deposit) => deposit.vault.toString()), { prefix: constants_2.prefixVaults, networkId: portfolio_core_1.NetworkId.solana });
35
+ if (!vaultsInfo)
36
+ throw new Error('Vaults not cached');
35
37
  const vaultById = (0, arrayToMap_1.arrayToMap)(vaultsInfo.filter((v) => v !== undefined), 'pubkey');
36
38
  const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
37
39
  for (const depositAccount of depositAccounts) {
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,kDAAmE;AACnE,2CAMqB;AACrB,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAiD;AACjD,uCAAiD;AAEjD,gFAA6E;AAC7E,4DAAyD;AAE5C,QAAA,MAAM,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC7B,QAAA,SAAS,GAAG,CAAC,GAAG,cAAM,CAAC;AAEpC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM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1
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,kDAAmE;AACnE,2CAMqB;AACrB,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAiD;AACjD,uCAAiD;AAEjD,gFAA6E;AAC7E,4DAAyD;AAE5C,QAAA,MAAM,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC7B,QAAA,SAAS,GAAG,CAAC,GAAG,cAAM,CAAC;AAEpC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,CACtB,MAAM,OAAO,CAAC,GAAG,CACf,4BAAgB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CACjC,IAAA,iCAAwB,EACtB,MAAM,EACN,8BAAoB,EACpB,SAAS,EACT,IAAA,8BAAoB,EAAC,KAAK,CAAC,CAC5B,CACF,CACF,CACF,CAAC,IAAI,EAAE,CAAC;IAET,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE5C,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,QAAQ,CACrC,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAC1D,EAAE,MAAM,EAAE,wBAAY,EAAE,SAAS,EAAE,0BAAS,CAAC,MAAM,EAAE,CACtD,CAAC;IACF,IAAI,CAAC,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAEtD,MAAM,SAAS,GAA2B,IAAA,uBAAU,EAClD,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,E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S,CAAC;YAEd,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,cAAc,CAAC,mBAAmB,CAAC,KAAK;gBAChD,UAAU,EAAE;oBACV,WAAW,EAAE,cAAc,CAAC,mBAAmB,CAAC,EAAE;yBAC/C,KAAK,CAAC,IAAI,CAAC;yBACX,IAAI,CAAC,gBAAgB,CAAC;yBACtB,QAAQ,EAAE;iBACd;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAe,qBAAqB;IAC3C,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -10,6 +10,10 @@ exports.platform = {
10
10
  website: 'https://elemental.fund/',
11
11
  twitter: 'https://twitter.com/elementaldefi',
12
12
  // defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
13
+ documentation: 'https://docs.elemental.fund/',
14
+ telegram: 'https://tg.elemental.fund',
15
+ description: 'Solana-based crypto fund dedicated to making DeFi investing simple',
16
+ github: 'https://github.com/elementalfund',
13
17
  };
14
18
  exports.poolsCacheKey = `pools`;
15
19
  exports.elementalIdlItem = {
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/constants.ts"],"names":[],"mappings":";;;AAEA,2DAAoD;AAEvC,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EACH,+EAA+E;IACjF,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,mCAAmC;IAC5C,qEAAqE;CACtE,CAAC;AACW,QAAA,aAAa,GAAG,OAAO,CAAC;AAExB,QAAA,gBAAgB,GAAG;IAC9B,SAAS,EAAE,iCAAa,CAAC,OAAO;IAChC,GAAG,EAAE,iCAAa;IAClB,OAAO,EAAE,QAAQ;CACP,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/constants.ts"],"names":[],"mappings":";;;AAEA,2DAAoD;AAEvC,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EACH,+EAA+E;IACjF,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,mCAAmC;IAC5C,qEAAqE;IACrE,aAAa,EAAE,8BAA8B;IAC7C,QAAQ,EAAE,2BAA2B;IACrC,WAAW,EACT,oEAAoE;IACtE,MAAM,EAAE,kCAAkC;CAC3C,CAAC;AACW,QAAA,aAAa,GAAG,OAAO,CAAC;AAExB,QAAA,gBAAgB,GAAG;IAC9B,SAAS,EAAE,iCAAa,CAAC,OAAO;IAChC,GAAG,EAAE,iCAAa;IAClB,OAAO,EAAE,QAAQ;CACP,CAAC"}
@@ -31,7 +31,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
31
31
  const connection = (0, clients_1.getClientSolana)();
32
32
  const pools = yield poolsMemo.getItem(cache);
33
33
  if (!pools)
34
- return [];
34
+ throw new Error('Pools not cached');
35
35
  const positionsKeys = pools.map((p) => (0, helpers_1.getPositionAddress)(p.pubkey, owner));
36
36
  const positions = yield (0, solana_1.getParsedMultipleAccountsInfo)(connection, structs_1.positionStruct, positionsKeys);
37
37
  if (positions.length === 0)
@@ -1 +1 @@
1
- {"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAAwD;AAExD,iDAAsD;AACtD,+CAAm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,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,IAAI,CAAC,cAAc;YAC5B,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAC3D,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE;SACnC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAAwD;AAExD,iDAAsD;AACtD,+CAAmE;AACnE,gFAA6E;AAE7E,kEAA+D;AAC/D,uCAA2C;AAC3C,uCAA0D;AAE7C,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,UAAU,CAAC,CAAC;AAEnD,MAAM,SAAS,GAAG,IAAI,6BAAa,CAAe,yBAAa,EAAE;IAC/D,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7C,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAEhD,MAAM,aAAa,GAAG,KAAK,CAAC,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/portfolio/assets/images/platforms/ensofi.webp',
10
10
  website: 'https://app.ensofi.xyz',
11
11
  twitter: 'https://twitter.com/Ensofi_xyz',
12
+ discord: 'https://discord.com/invite/ensofi',
13
+ documentation: 'https://ensofi.gitbook.io/ensofi',
14
+ telegram: 'https://t.me/ensofiapp_bot/ensofi?startapp=mainnet',
15
+ github: 'https://github.com/Ensofi-xyz',
16
+ description: 'Cross-chain DeFi Hub. Lend, Borrow, LSTs, Earn & more with stable returns.',
12
17
  };
13
18
  // sui sc : https://github.com/Ensofi-xyz/lending_smart_contract/tree/main/sui_smartcontract/sources
14
19
  exports.State = '0x4ca6dfe03908e35241186dee292edaf97bebe75be2d2b8133342cf365be2a0b5';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/ensofi/constants.ts"],"names":[],"mappings":";;;AAEA,+BAAkC;AAErB,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EACH,4EAA4E;IAC9E,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,gCAAgC;CAC1C,CAAC;AAEF,oGAAoG;AACvF,QAAA,KAAK,GAChB,oEAAoE,CAAC;AAC1D,QAAA,SAAS,GACpB,2FAA2F,CAAC;AACjF,QAAA,QAAQ,GACnB,yFAAyF,CAAC;AAC/E,QAAA,cAAc,GAAG,QAAQ,CAAC;AAC1B,QAAA,aAAa,GAAG,OAAO,CAAC;AAExB,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,6CAA6C;IACxD,GAAG,EAAE,eAAS;IACd,OAAO,EAAE,QAAQ;CACP,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/ensofi/constants.ts"],"names":[],"mappings":";;;AAEA,+BAAkC;AAErB,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EACH,4EAA4E;IAC9E,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,mCAAmC;IAC5C,aAAa,EAAE,kCAAkC;IACjD,QAAQ,EAAE,oDAAoD;IAC9D,MAAM,EAAE,+BAA+B;IACvC,WAAW,EACT,4EAA4E;CAC/E,CAAC;AAEF,oGAAoG;AACvF,QAAA,KAAK,GAChB,oEAAoE,CAAC;AAC1D,QAAA,SAAS,GACpB,2FAA2F,CAAC;AACjF,QAAA,QAAQ,GACnB,yFAAyF,CAAC;AAC/E,QAAA,cAAc,GAAG,QAAQ,CAAC;AAC1B,QAAA,aAAa,GAAG,OAAO,CAAC;AAExB,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,6CAA6C;IACxD,GAAG,EAAE,eAAS;IACd,OAAO,EAAE,QAAQ;CACP,CAAC"}
@@ -11,6 +11,11 @@ exports.platform = {
11
11
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/exponent.webp',
12
12
  website: 'https://www.exponent.finance',
13
13
  twitter: 'https://x.com/exponentfinance',
14
+ documentation: 'https://docs.exponent.finance/',
15
+ telegram: 'https://t.me/exponentcitizens',
16
+ github: 'https://github.com/exponent-finance',
17
+ description: 'Building Solana’s DeFi yield exchange — Choose between fixed or leveraged yields.',
18
+ defiLlamaId: 'exponent',
14
19
  };
15
20
  exports.exponentCoreProgram = new web3_js_1.PublicKey('ExponentnaRg3CQbW6dqQNZKXp7gtZ9DGMp1cwC4HAS7');
16
21
  exports.marketsCacheKey = 'markets';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/exponent/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AACjE,6CAA4C;AAC5C,kEAA+D;AAGlD,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EACH,8EAA8E;IAChF,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,+BAA+B;CACzC,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAI,mBAAS,CAC9C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,SAAS,CAAC;AAE5B,QAAA,WAAW,GAAG,IAAI,6BAAa,CAAW,uBAAe,EAAE;IACtE,MAAM,EAAE,kBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEU,QAAA,aAAa,GACxB,0EAA0E,CAAC;AAEhE,QAAA,cAAc,GACzB,4EAA4E,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/exponent/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AACjE,6CAA4C;AAC5C,kEAA+D;AAGlD,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EACH,8EAA8E;IAChF,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,+BAA+B;IACxC,aAAa,EAAE,gCAAgC;IAC/C,QAAQ,EAAE,+BAA+B;IACzC,MAAM,EAAE,qCAAqC;IAC7C,WAAW,EACT,mFAAmF;IACrF,WAAW,EAAE,UAAU;CACxB,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAI,mBAAS,CAC9C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,SAAS,CAAC;AAE5B,QAAA,WAAW,GAAG,IAAI,6BAAa,CAAW,uBAAe,EAAE;IACtE,MAAM,EAAE,kBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEU,QAAA,aAAa,GACxB,0EAA0E,CAAC;AAEhE,QAAA,cAAc,GACzB,4EAA4E,CAAC"}
@@ -26,7 +26,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
26
26
  return [];
27
27
  const markets = yield constants_1.marketsMemo.getItem(cache);
28
28
  if (!markets)
29
- return [];
29
+ throw new Error('Markets not cached');
30
30
  const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
31
31
  accounts.forEach((account) => {
32
32
  const market = markets.find((m) => m.id === account.market.toString());
@@ -1 +1 @@
1
- {"version":3,"file":"liquidityFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/exponent/liquidityFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAiE;AAEjE,2CAA2E;AAE3E,gFAA6E;AAC7E,+CAA8D;AAC9D,iDAAsD;AACtD,uCAA6C;AAC7C,uCAAiD;AAEjD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,0BAAgB,EAChB,+BAAmB,EACnB;QACE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QACnD,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE;KACxC,CACF,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,OAAO,GAAG,MAAM,uBAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACjD,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAExB,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;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,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM;YAC5B,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC;SACzE,CAAC,CAAC;QAEH,SAAS,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM;YAC5B,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC;SACzE,CAAC,CAAC;QAEH,MAAM,GAAG,GAAG,IAAA,8BAAoB,EAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAE/C,SAAS,CAAC,QAAQ,CAAC;YACjB,GAAG;YACH,GAAG,EAAE,IAAA,yBAAQ,EAAC,GAAG,CAAC;SACnB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -4,12 +4,12 @@ import { Platform } from '@sonarwatch/portfolio-core';
4
4
  import { IdlItem } from '@solanafm/explorer-kit-idls';
5
5
  import { PublicKey } from '@solana/web3.js';
6
6
  export declare const platformId = "famousfoxfederation";
7
+ export declare const foxyMint = "FoXyMu5xwXre7zEoSvzViRk3nGawHUp9kUh97y2NDhcq";
7
8
  export declare const platform: Platform;
8
9
  export declare const tokenMarketProgram: PublicKey;
9
10
  export declare const tokenMarketIdlItem: IdlItem;
10
11
  export declare const foxProgram: PublicKey;
11
12
  export declare const stakingConfigAccount: PublicKey;
12
- export declare const foxyMint = "FoXyMu5xwXre7zEoSvzViRk3nGawHUp9kUh97y2NDhcq";
13
13
  export declare const stakingIdlItem: IdlItem;
14
14
  export declare const cachePrefix = "famousfoxfederation";
15
15
  export declare const stakingConfigCacheKey = "stakingconfig";
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stakingConfigCacheKey = exports.cachePrefix = exports.stakingIdlItem = exports.foxyMint = exports.stakingConfigAccount = exports.foxProgram = exports.tokenMarketIdlItem = exports.tokenMarketProgram = exports.platform = exports.platformId = void 0;
3
+ exports.stakingConfigCacheKey = exports.cachePrefix = exports.stakingIdlItem = exports.stakingConfigAccount = exports.foxProgram = exports.tokenMarketIdlItem = exports.tokenMarketProgram = exports.platform = exports.foxyMint = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  const stakingIdl_1 = require("./stakingIdl");
6
6
  const tokenMarketIdl_1 = require("./tokenMarketIdl");
7
7
  exports.platformId = 'famousfoxfederation';
8
+ exports.foxyMint = 'FoXyMu5xwXre7zEoSvzViRk3nGawHUp9kUh97y2NDhcq';
8
9
  exports.platform = {
9
10
  id: exports.platformId,
10
11
  name: 'Famous Fox Federation',
@@ -12,6 +13,8 @@ exports.platform = {
12
13
  website: 'https://famousfoxes.com',
13
14
  twitter: 'https://twitter.com/famousfoxfed',
14
15
  // defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
16
+ discord: 'https://discord.com/invite/famousfoxes',
17
+ tokens: [exports.foxyMint],
15
18
  };
16
19
  exports.tokenMarketProgram = new web3_js_1.PublicKey('8BYmYs3zsBhftNELJdiKsCN2WyCBbrTwXd6WG4AFPr6n');
17
20
  exports.tokenMarketIdlItem = {
@@ -21,7 +24,6 @@ exports.tokenMarketIdlItem = {
21
24
  };
22
25
  exports.foxProgram = new web3_js_1.PublicKey('FoXpJL1exLBJgHVvdSHNKyKu2xX2uatctH9qp6dLmfpP');
23
26
  exports.stakingConfigAccount = new web3_js_1.PublicKey('7N7M1H2CK51ip7sNtPgKhhv2eScx6BokLgHi1Ke3ZLiq');
24
- exports.foxyMint = 'FoXyMu5xwXre7zEoSvzViRk3nGawHUp9kUh97y2NDhcq';
25
27
  exports.stakingIdlItem = {
26
28
  programId: exports.foxProgram.toString(),
27
29
  idl: stakingIdl_1.StakingIDL,
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/famousfoxfederation/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,6CAA0C;AAC1C,qDAAkD;AAErC,QAAA,UAAU,GAAG,qBAAqB,CAAC;AAEnC,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,uBAAuB;IAC7B,KAAK,EACH,yFAAyF;IAC3F,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,kCAAkC;IAC3C,qEAAqE;CACtE,CAAC;AAEW,QAAA,kBAAkB,GAAG,IAAI,mBAAS,CAC7C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,SAAS,EAAE,0BAAkB,CAAC,QAAQ,EAAE;IACxC,GAAG,EAAE,+BAAc;IACnB,OAAO,EAAE,QAAQ;CACP,CAAC;AAEA,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,8CAA8C,CAC/C,CAAC;AACW,QAAA,oBAAoB,GAAG,IAAI,mBAAS,CAC/C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAE1D,QAAA,cAAc,GAAG;IAC5B,SAAS,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAChC,GAAG,EAAE,uBAAU;IACf,OAAO,EAAE,QAAQ;CACP,CAAC;AAEA,QAAA,WAAW,GAAG,qBAAqB,CAAC;AACpC,QAAA,qBAAqB,GAAG,eAAe,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/famousfoxfederation/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,6CAA0C;AAC1C,qDAAkD;AAErC,QAAA,UAAU,GAAG,qBAAqB,CAAC;AAEnC,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAC1D,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,uBAAuB;IAC7B,KAAK,EACH,yFAAyF;IAC3F,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,kCAAkC;IAC3C,qEAAqE;IACrE,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,CAAC,gBAAQ,CAAC;CACnB,CAAC;AAEW,QAAA,kBAAkB,GAAG,IAAI,mBAAS,CAC7C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,SAAS,EAAE,0BAAkB,CAAC,QAAQ,EAAE;IACxC,GAAG,EAAE,+BAAc;IACnB,OAAO,EAAE,QAAQ;CACP,CAAC;AAEA,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,8CAA8C,CAC/C,CAAC;AACW,QAAA,oBAAoB,GAAG,IAAI,mBAAS,CAC/C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG;IAC5B,SAAS,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAChC,GAAG,EAAE,uBAAU;IACf,OAAO,EAAE,QAAQ;CACP,CAAC;AAEA,QAAA,WAAW,GAAG,qBAAqB,CAAC;AACpC,QAAA,qBAAqB,GAAG,eAAe,CAAC"}
@@ -36,8 +36,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
36
36
  networkId: portfolio_core_1.NetworkId.solana,
37
37
  }),
38
38
  ]);
39
- if (!tokenPrice || !configAccount)
40
- return [];
39
+ if (!configAccount)
40
+ throw new Error('Staking config not cached');
41
+ if (!tokenPrice)
42
+ throw new Error('Foxy price not found');
41
43
  const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
42
44
  const element = registry.addElementMultiple({
43
45
  label: 'Staked',
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/famousfoxfederation/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA2E;AAE3E,2CAMqB;AAErB,iDAAsD;AACtD,+CAAkE;AAElE,uCAAyC;AACzC,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACnC,IAAA,qCAA4B,EAAiB,UAAU,EAAE,0BAAc,EAAE;YACvE;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,EAAE;iBACX;aACF;SACF,CAAC;KACH,CAAC,CAAC;IAEH,IAAI,CAAC,QAAQ,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEhC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACpD,KAAK,CAAC,aAAa,CACjB,IAAA,mCAAkB,EAAC,oBAAQ,EAAE,0BAAS,CAAC,MAAM,CAAC,EAC9C,0BAAS,CAAC,MAAM,CACjB;QACD,KAAK,CAAC,OAAO,CAAgB,iCAAqB,EAAE;YAClD,MAAM,EAAE,uBAAW;YACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC;KACH,CAAC,CAAC;IAEH,IAAI,CAAC,UAAU,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,CAAC;IAE7C,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC;QAC1C,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,+BAA+B;KACtC,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,EAAE;QAClC,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,cAAc,EAAE,aAAa,CAAC,CAAC;QAC3D,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oBAAQ;YACjB,MAAM;YACN,cAAc,EAAE,IAAI;YACpB,GAAG,EAAE,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE;YACrC,UAAU,EAAE;gBACV,WAAW,EAAE,IAAI;aAClB;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/famousfoxfederation/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA2E;AAE3E,2CAMqB;AAErB,iDAAsD;AACtD,+CAAkE;AAElE,uCAAyC;AACzC,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACnC,IAAA,qCAA4B,EAAiB,UAAU,EAAE,0BAAc,EAAE;YACvE;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,EAAE;iBACX;aACF;SACF,CAAC;KACH,CAAC,CAAC;IAEH,IAAI,CAAC,QAAQ,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEhC,MAAM,CAAC,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,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -10,6 +10,10 @@ exports.platform = {
10
10
  defiLlamaId: 'flashtrade', // from https://defillama.com/docs/api
11
11
  website: 'https://beast.flash.trade/',
12
12
  twitter: 'https://twitter.com/FlashTrade_',
13
+ documentation: 'https://docs.flash.trade/flash-trade',
14
+ github: 'https://github.com/flash-trade',
15
+ discord: 'https://discord.com/invite/HqYDWnMP6J',
16
+ description: 'Trade Perpetuals with instant fills and on demand liquidity.',
13
17
  };
14
18
  exports.flashPid = new web3_js_1.PublicKey('FLASH6Lo6h3iasJKWDs2F8TkW2UKf3s15C8PMGuVfgBn');
15
19
  exports.flashPerpetuals = new web3_js_1.PublicKey('7DWCtB5Z8rPiyBMKUwqyC95R9tJpbhoQhLM9LbK3Z5QZ');
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EACH,2EAA2E;IAC7E,WAAW,EAAE,YAAY,EAAE,sCAAsC;IACjE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AACW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;IAC5D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAA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@@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
33
33
  networkId: portfolio_core_1.NetworkId.solana,
34
34
  });
35
35
  if (!marketsInfos)
36
- throw new Error('No markets in cache.');
36
+ throw new Error('No markets cached.');
37
37
  const oraclesPubkeys = [];
38
38
  const MarketById = new Map();
39
39
  marketsInfos.forEach((market) => {
@@ -1 +1 @@
1
- {"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/perpetualFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,2CAA+D;AAC/D,iDAAsD;AACtD,+CAG4B;AAC5B,uCAAsD;AACtD,uCAA+D;AAE/D,yDAAmD;AAEnD,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AACzC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,mBAAmB,GAAG,MAAM,IAAA,iCAAwB,EACxD,MAAM,EACN,wBAAc,EACd,oBAAQ,EACR,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IACE,mBAAmB,CAAC,MAAM,KAAK,CAAC;QAChC,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QAElE,OAAO,EAAE,CAAC;IAEZ,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,OAAO,CAAe,sBAAU,EAAE;QACjE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,YAAY;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAE3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E,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/perpetualFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,2CAA+D;AAC/D,iDAAsD;AACtD,+CAG4B;AAC5B,uCAAsD;AACtD,uCAA+D;AAE/D,yDAAmD;AAEnD,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AACzC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,mBAAmB,GAAG,MAAM,IAAA,iCAAwB,EACxD,MAAM,EACN,wBAAc,EACd,oBAAQ,EACR,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IACE,mBAAmB,CAAC,MAAM,KAAK,CAAC;QAChC,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QAElE,OAAO,EAAE,CAAC;IAEZ,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,OAAO,CAAe,sBAAU,EAAE;QACjE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,YAAY;QAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAEzD,MAAM,cAAc,GAAgB,EAAE,CAAC;IACvC,MAAM,UAAU,GAA4B,IAAI,GAAG,EAAE,CAAC;IACtD,YAAY,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QAC9B,cAAc,CAAC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0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.flpStakeStruct, (0, helpers_1.getPdas)(owner));
25
25
  if (!stakeAccounts.some((account) => account !== null))
26
26
  return [];
27
- const poolsInfo = yield cache.getItem(constants_1.poolsKey, {
28
- prefix: constants_1.platformId,
29
- networkId: portfolio_core_1.NetworkId.solana,
30
- });
27
+ const [poolsInfo, custodiesInfo] = yield Promise.all([
28
+ cache.getItem(constants_1.poolsKey, {
29
+ prefix: constants_1.platformId,
30
+ networkId: portfolio_core_1.NetworkId.solana,
31
+ }),
32
+ cache.getItem(constants_1.custodiesKey, {
33
+ prefix: constants_1.platformId,
34
+ networkId: portfolio_core_1.NetworkId.solana,
35
+ }),
36
+ ]);
31
37
  if (!poolsInfo)
32
- return [];
33
- const custodiesInfo = yield cache.getItem(constants_1.custodiesKey, {
34
- prefix: constants_1.platformId,
35
- networkId: portfolio_core_1.NetworkId.solana,
36
- });
38
+ throw new Error('Pools not cached');
37
39
  if (!custodiesInfo)
38
- return [];
40
+ throw new Error('Custodies not cached');
39
41
  const custodiesByPool = new Map();
40
42
  custodiesInfo.forEach((custody) => custodiesByPool.set(custody.pool, custody));
41
43
  const poolInfoById = new Map();
@@ -1 +1 @@
1
- {"version":3,"file":"stakeFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/stakeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAiE;AACjE,iDAAsD;AACtD,+CAG4B;AAC5B,uCAA2C;AAC3C,qGAA6E;AAC7E,uCAAoC;AAGpC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACvD,MAAM,EACN,wBAAc,EACd,IAAA,iBAAO,EAAC,KAAK,CAAC,CACf,CAAC;IACF,IAAI,CAAC,aAAa,CAAC,IA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G,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACzD,IAAI,EAAE;oBACJ,MAAM;iBACP;aACF,CAAC,CAAC;IACP,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"stakeFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/stakeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAiE;AACjE,iDAAsD;AACtD,+CAG4B;AAC5B,uCAA2C;AAC3C,qGAA6E;AAC7E,uCAAoC;AAGpC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACvD,MAAM,EACN,wBAAc,EACd,IAAA,iBAAO,EAAC,KAAK,CAAC,CACf,CAAC;IACF,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IAElE,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACnD,KAAK,CAAC,OAAO,CAAa,oBAAQ,EAAE;YAClC,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC;QACF,KAAK,CAAC,OAAO,CAAgB,wBAAY,EAAE;YACzC,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC;KACH,CAAC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AC"}
@@ -8,6 +8,12 @@ exports.platform = {
8
8
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/fluxbeam.webp',
9
9
  defiLlamaId: 'fluxbeam', // from https://defillama.com/docs/api
10
10
  website: 'https://fluxbeam.xyz/',
11
+ description: 'Solana DEX, supporting innovation and Token-2022',
12
+ twitter: 'https://x.com/FluxBeamDEX',
13
+ discord: 'https://discord.com/invite/DtyqTx97kz',
14
+ telegram: 'https://t.me/fluxbeam',
15
+ documentation: 'https://docs.fluxbeam.xyz/',
16
+ tokens: ['FLUXBmPhT3Fd1EDVFdg46YREqHBeNypn1h4EbnTzWERX'],
11
17
  };
12
18
  exports.poolsCachePrefix = `${exports.platformId}-pools`;
13
19
  exports.fluxbeamPoolsPid = 'FLUXubRmkEi2q6K3Y9kBPg9248ggaZVsoSFhtJHSrm1X';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/fluxbeam/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EACH,8EAA8E;IAChF,WAAW,EAAE,UAAU,EAAE,sCAAsC;IAC/D,OAAO,EAAE,uBAAuB;CACjC,CAAC;AACW,QAAA,gBAAgB,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACzC,QAAA,gBAAgB,GAAG,8CAA8C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/fluxbeam/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EACH,8EAA8E;IAChF,WAAW,EAAE,UAAU,EAAE,sCAAsC;IAC/D,OAAO,EAAE,uBAAuB;IAChC,WAAW,EAAE,kDAAkD;IAC/D,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,uCAAuC;IAChD,QAAQ,EAAE,uBAAuB;IACjC,aAAa,EAAE,4BAA4B;IAC3C,MAAM,EAAE,CAAC,8CAA8C,CAAC;CACzD,CAAC;AACW,QAAA,gBAAgB,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACzC,QAAA,gBAAgB,GAAG,8CAA8C,CAAC"}
@@ -9,6 +9,16 @@ exports.platform = {
9
9
  image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/fragmetric.webp',
10
10
  website: 'https://fragmetric.xyz/',
11
11
  twitter: 'https://x.com/fragmetric',
12
+ defiLlamaId: 'fragmetric',
13
+ description: 'Fragmetric is a native liquid restaking protocol on Solana that aims to improve the economic potential and security of the Solana ecosystem.',
14
+ discord: 'https://discord.gg/fragmetric',
15
+ documentation: 'https://docs.fragmetric.xyz/',
16
+ github: 'https://github.com/fragmetric-labs',
17
+ tokens: [
18
+ 'WFRGSWjaz8tbAxsJitmbfRuFV2mSNwy7BMWcCwaA28U',
19
+ 'FRAGSEthVFL7fdqM8hxfxkfCZzUvmg21cqPJVvC1qdbo',
20
+ 'FRAGJ157KSDfGvBJtCSrsTWUqFnZhrw4aC8N8LqHuoos',
21
+ ],
12
22
  };
13
23
  exports.fragmetricPid = new web3_js_1.PublicKey('fragnAis7Bp6FTsMoa6YcH8UffhEw43Ph79qAiK3iF3');
14
24
  // https://api.fragmetric.xyz/v1/graphql operationName "fragmetricStats"
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/fragmetric/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EACH,gFAAgF;IAClF,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,0BAA0B;CACpC,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AAEF,wEAAwE;AAC3D,QAAA,MAAM,GAAG;IACpB;QACE,mBAAmB,EAAE,8CAA8C;QACnE,YAAY,EAAE,8CAA8C;QAC5D,0BAA0B,EAAE,8CAA8C;QAC1E,cAAc,EAAE,8CAA8C;KAC/D;IACD;QACE,mBAAmB,EAAE,8CAA8C;QACnE,YAAY,EAAE,8CAA8C;QAC5D,SAAS,EAAE,6CAA6C;QACxD,cAAc,EAAE,8CAA8C;KAC/D;CACF,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/fragmetric/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EACH,gFAAgF;IAClF,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,0BAA0B;IACnC,WAAW,EAAE,YAAY;IACzB,WAAW,EACT,8IAA8I;IAChJ,OAAO,EAAE,+BAA+B;IACxC,aAAa,EAAE,8BAA8B;IAC7C,MAAM,EAAE,oCAAoC;IAC5C,MAAM,EAAE;QACN,6CAA6C;QAC7C,8CAA8C;QAC9C,8CAA8C;KAC/C;CACF,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AAEF,wEAAwE;AAC3D,QAAA,MAAM,GAAG;IACpB;QACE,mBAAmB,EAAE,8CAA8C;QACnE,YAAY,EAAE,8CAA8C;QAC5D,0BAA0B,EAAE,8CAA8C;QAC1E,cAAc,EAAE,8CAA8C;KAC/D;IACD;QACE,mBAAmB,EAAE,8CAA8C;QACnE,YAAY,EAAE,8CAA8C;QAC5D,SAAS,EAAE,6CAA6C;QACxD,cAAc,EAAE,8CAA8C;KAC/D;CACF,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.lendRewardInfo = exports.lendRewardProgramId = exports.lendingPoolList = exports.lendingPools = exports.lendProgramId = exports.lendingPoolsCacheKey = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  const tokens_1 = require("./tokens");
6
+ const constants_1 = require("../marinade/constants");
6
7
  exports.platformId = 'francium';
7
8
  exports.platform = {
8
9
  id: exports.platformId,
@@ -11,6 +12,12 @@ exports.platform = {
11
12
  website: 'https://francium.io/',
12
13
  twitter: 'https://x.com/Francium_Defi',
13
14
  defiLlamaId: 'francium', // from https://defillama.com/docs/api
15
+ isDeprecated: true,
16
+ discord: 'discord.gg/francium',
17
+ github: 'https://github.com/Francium-DeFi',
18
+ telegram: 'https://t.me/franciumprotocol',
19
+ medium: 'https://francium-defi.medium.com/',
20
+ description: 'Francium is a DeFi yield strategy Platform on Solana, providing leveraged/hedged farming, DeFi strategies & on-chain trading strategies.',
14
21
  };
15
22
  exports.lendingPoolsCacheKey = 'lending_pools';
16
23
  // https://github.com/Francium-DeFi/francium-sdk/blob/6b284e8d8af3178fc6815dfc8fb50dfd90d160ca/src/constants/lend/pools.ts
@@ -139,7 +146,7 @@ exports.lendingPools = {
139
146
  mSOL: {
140
147
  lookupTableAddress: new web3_js_1.PublicKey('A9L7C5QMNG5yBjntCxjo4tkxmu2AHiNP5ev9uBtLUMfE'),
141
148
  programId: exports.lendProgramId,
142
- tokenMint: new web3_js_1.PublicKey('mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So'),
149
+ tokenMint: new web3_js_1.PublicKey(constants_1.mSOLMint),
143
150
  marketInfoAccount: new web3_js_1.PublicKey('4XNif294wbrxj6tJ8K5Rg7SuaEACnu9s2L27i28MQB6E'),
144
151
  marketOwner: new web3_js_1.PublicKey('7MBLg6oV5phip11YBbJPuq7u38kdzSi9PM3BifKSpLaR'),
145
152
  lendingMarketAuthority: new web3_js_1.PublicKey('sCDiYj7X7JmXg5fVq2nqED2q1Wqjo7PnqMgH3casMem'),