@sonarwatch/portfolio-plugins 0.12.35 → 0.12.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/package.json +1 -1
  3. package/src/index.js +8 -0
  4. package/src/index.js.map +1 -1
  5. package/src/orphanPlatorms.js +0 -8
  6. package/src/orphanPlatorms.js.map +1 -1
  7. package/src/plugins/01/depostisFetcher.js +1 -1
  8. package/src/plugins/01/depostisFetcher.js.map +1 -1
  9. package/src/plugins/aave/helpers.js +6 -1
  10. package/src/plugins/aave/helpers.js.map +1 -1
  11. package/src/plugins/allbridge/constants.d.ts +11 -0
  12. package/src/plugins/allbridge/constants.js +25 -0
  13. package/src/plugins/allbridge/constants.js.map +1 -0
  14. package/src/plugins/allbridge/helpers.d.ts +5 -0
  15. package/src/plugins/allbridge/helpers.js +25 -0
  16. package/src/plugins/allbridge/helpers.js.map +1 -0
  17. package/src/plugins/allbridge/idl.d.ts +58 -0
  18. package/src/plugins/allbridge/idl.js +476 -0
  19. package/src/plugins/allbridge/idl.js.map +1 -0
  20. package/src/plugins/allbridge/index.d.ts +6 -0
  21. package/src/plugins/allbridge/index.js +13 -0
  22. package/src/plugins/allbridge/index.js.map +1 -0
  23. package/src/plugins/allbridge/poolsJob.d.ts +3 -0
  24. package/src/plugins/allbridge/poolsJob.js +40 -0
  25. package/src/plugins/allbridge/poolsJob.js.map +1 -0
  26. package/src/plugins/allbridge/positionsFetcher.js +92 -0
  27. package/src/plugins/allbridge/positionsFetcher.js.map +1 -0
  28. package/src/plugins/allbridge/types.d.ts +38 -0
  29. package/src/plugins/allbridge/types.js +3 -0
  30. package/src/plugins/allbridge/types.js.map +1 -0
  31. package/src/plugins/aptin/depositsFetcher.js +6 -1
  32. package/src/plugins/aptin/depositsFetcher.js.map +1 -1
  33. package/src/plugins/aries/depositsFetcher.js +7 -1
  34. package/src/plugins/aries/depositsFetcher.js.map +1 -1
  35. package/src/plugins/banx/constants.d.ts +0 -1
  36. package/src/plugins/banx/constants.js +1 -2
  37. package/src/plugins/banx/constants.js.map +1 -1
  38. package/src/plugins/banx/{calculateLoanRepayValue.d.ts → helpers.d.ts} +1 -0
  39. package/src/plugins/banx/{calculateLoanRepayValue.js → helpers.js} +29 -2
  40. package/src/plugins/banx/helpers.js.map +1 -0
  41. package/src/plugins/banx/idl.d.ts +15 -7
  42. package/src/plugins/banx/idl.js +199 -268
  43. package/src/plugins/banx/idl.js.map +1 -1
  44. package/src/plugins/banx/loansFetcher.js +33 -28
  45. package/src/plugins/banx/loansFetcher.js.map +1 -1
  46. package/src/plugins/banx/offersFetcher.js +15 -16
  47. package/src/plugins/banx/offersFetcher.js.map +1 -1
  48. package/src/plugins/bucket/collateralFetcher.js +1 -1
  49. package/src/plugins/bucket/collateralFetcher.js.map +1 -1
  50. package/src/plugins/citrus/collectionsJob.js.map +1 -1
  51. package/src/plugins/citrus/constants.d.ts +0 -1
  52. package/src/plugins/citrus/constants.js +1 -2
  53. package/src/plugins/citrus/constants.js.map +1 -1
  54. package/src/plugins/citrus/loansFetcher.js +18 -20
  55. package/src/plugins/citrus/loansFetcher.js.map +1 -1
  56. package/src/plugins/clone/depositsFetcher.js +2 -2
  57. package/src/plugins/clone/depositsFetcher.js.map +1 -1
  58. package/src/plugins/compound/getPositionsV2Fetcher.js +1 -1
  59. package/src/plugins/compound/getPositionsV2Fetcher.js.map +1 -1
  60. package/src/plugins/compound/getPositionsV3Fetcher.js +5 -1
  61. package/src/plugins/compound/getPositionsV3Fetcher.js.map +1 -1
  62. package/src/plugins/drift/depositsFetcher.d.ts +3 -0
  63. package/src/plugins/drift/{deposits.js → depositsFetcher.js} +4 -4
  64. package/src/plugins/drift/depositsFetcher.js.map +1 -0
  65. package/src/plugins/drift/index.js +2 -2
  66. package/src/plugins/drift/index.js.map +1 -1
  67. package/src/plugins/flash/perpetualFetcher.js +1 -1
  68. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  69. package/src/plugins/flexlend/depositsFetcher.js +2 -2
  70. package/src/plugins/flexlend/depositsFetcher.js.map +1 -1
  71. package/src/plugins/jupiter/exchange/constants.d.ts +1 -0
  72. package/src/plugins/jupiter/exchange/constants.js +2 -1
  73. package/src/plugins/jupiter/exchange/constants.js.map +1 -1
  74. package/src/plugins/jupiter/exchange/limitFetcher.js +9 -6
  75. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
  76. package/src/plugins/jupiter/exchange/perpetualFetcher.js +8 -8
  77. package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
  78. package/src/plugins/jupiter/exchange/structs.d.ts +21 -0
  79. package/src/plugins/jupiter/exchange/structs.js +21 -1
  80. package/src/plugins/jupiter/exchange/structs.js.map +1 -1
  81. package/src/plugins/jupiter/pricingJob.js +7 -22
  82. package/src/plugins/jupiter/pricingJob.js.map +1 -1
  83. package/src/plugins/kamino/lendsFetcher.js +21 -3
  84. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  85. package/src/plugins/maker/vaultsFetcher.js +1 -1
  86. package/src/plugins/maker/vaultsFetcher.js.map +1 -1
  87. package/src/plugins/mango/boostFetcher.js +1 -1
  88. package/src/plugins/mango/boostFetcher.js.map +1 -1
  89. package/src/plugins/mango/collateralFetcher.js +1 -1
  90. package/src/plugins/mango/collateralFetcher.js.map +1 -1
  91. package/src/plugins/mango/redeemFetcher.js +1 -1
  92. package/src/plugins/mango/redeemFetcher.js.map +1 -1
  93. package/src/plugins/maple/ethereumFetcher.js +1 -1
  94. package/src/plugins/maple/ethereumFetcher.js.map +1 -1
  95. package/src/plugins/marginfi/helpers.js +7 -1
  96. package/src/plugins/marginfi/helpers.js.map +1 -1
  97. package/src/plugins/mole/farmsFetcher.js +5 -1
  98. package/src/plugins/mole/farmsFetcher.js.map +1 -1
  99. package/src/plugins/morpho/aaveV3CollateralFetcher.js +1 -1
  100. package/src/plugins/morpho/aaveV3CollateralFetcher.js.map +1 -1
  101. package/src/plugins/native-stake/solana/solanaFetcher.js +2 -0
  102. package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
  103. package/src/plugins/navi/collateralFetcher.js +6 -1
  104. package/src/plugins/navi/collateralFetcher.js.map +1 -1
  105. package/src/plugins/nosana/stakingFetcher.js +8 -2
  106. package/src/plugins/nosana/stakingFetcher.js.map +1 -1
  107. package/src/plugins/port/obligationsFetcher.js +1 -1
  108. package/src/plugins/port/obligationsFetcher.js.map +1 -1
  109. package/src/plugins/rain/collectionsJob.js +6 -10
  110. package/src/plugins/rain/collectionsJob.js.map +1 -1
  111. package/src/plugins/rain/helpers.js +3 -1
  112. package/src/plugins/rain/helpers.js.map +1 -1
  113. package/src/plugins/rain/index.js +2 -1
  114. package/src/plugins/rain/index.js.map +1 -1
  115. package/src/plugins/rain/loansFetcher.js +61 -26
  116. package/src/plugins/rain/loansFetcher.js.map +1 -1
  117. package/src/plugins/rain/poolsFetcher.js +1 -1
  118. package/src/plugins/rain/poolsFetcher.js.map +1 -1
  119. package/src/plugins/rain/types.d.ts +3 -0
  120. package/src/plugins/sanctum/constants.d.ts +4 -0
  121. package/src/plugins/sanctum/constants.js +14 -0
  122. package/src/plugins/sanctum/constants.js.map +1 -0
  123. package/src/plugins/sanctum/index.d.ts +6 -0
  124. package/src/plugins/sanctum/index.js +12 -0
  125. package/src/plugins/sanctum/index.js.map +1 -0
  126. package/src/plugins/sanctum/lstsJob.d.ts +3 -0
  127. package/src/plugins/sanctum/lstsJob.js +36 -0
  128. package/src/plugins/sanctum/lstsJob.js.map +1 -0
  129. package/src/plugins/scallop/lendingsFetcher.js +1 -1
  130. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  131. package/src/plugins/scallop/obligationsFetcher.js +1 -1
  132. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  133. package/src/plugins/sharky/constants.d.ts +0 -1
  134. package/src/plugins/sharky/constants.js +3 -4
  135. package/src/plugins/sharky/constants.js.map +1 -1
  136. package/src/plugins/sharky/loansFetcher.js +21 -20
  137. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  138. package/src/plugins/solend/helpers.js +7 -1
  139. package/src/plugins/solend/helpers.js.map +1 -1
  140. package/src/plugins/suilend/obligationsFetcher.js +7 -1
  141. package/src/plugins/suilend/obligationsFetcher.js.map +1 -1
  142. package/src/plugins/thala/vaultsFetcher.js +1 -1
  143. package/src/plugins/thala/vaultsFetcher.js.map +1 -1
  144. package/src/plugins/zeta/airdropFetcher.d.ts +3 -0
  145. package/src/plugins/zeta/airdropFetcher.js +105 -0
  146. package/src/plugins/zeta/airdropFetcher.js.map +1 -0
  147. package/src/plugins/zeta/constants.d.ts +3 -0
  148. package/src/plugins/zeta/constants.js +4 -1
  149. package/src/plugins/zeta/constants.js.map +1 -1
  150. package/src/plugins/zeta/index.js +2 -1
  151. package/src/plugins/zeta/index.js.map +1 -1
  152. package/src/plugins/zeta/types.d.ts +14 -0
  153. package/src/plugins/zeta/types.js +3 -0
  154. package/src/plugins/zeta/types.js.map +1 -0
  155. package/src/utils/misc/MemoizedCache.d.ts +12 -0
  156. package/src/utils/misc/MemoizedCache.js +35 -0
  157. package/src/utils/misc/MemoizedCache.js.map +1 -0
  158. package/src/utils/misc/arrayToMap.d.ts +1 -0
  159. package/src/utils/misc/arrayToMap.js +12 -0
  160. package/src/utils/misc/arrayToMap.js.map +1 -0
  161. package/src/utils/misc/pick.d.ts +2 -0
  162. package/src/utils/misc/pick.js +16 -0
  163. package/src/utils/misc/pick.js.map +1 -0
  164. package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js +8 -3
  165. package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js.map +1 -1
  166. package/src/plugins/banx/calculateLoanRepayValue.js.map +0 -1
  167. package/src/plugins/drift/deposits.js.map +0 -1
  168. /package/src/plugins/{drift/deposits.d.ts → allbridge/positionsFetcher.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"idl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/idl.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GA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wBACd,MAAM,EAAE,CAAC,KAAK,CAAC;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"idl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/idl.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,2BAA2B;YACjC,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,4BAA4B;wBAClC,IAAI,EAAE;4BACJ,OAAO,EAAE,gCAAgC;yBAC1C;qBACF;oBACD;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,WAAW;qBAClB;oBACD;wBACE,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,WAAW;qBAClB;oBACD;wBACE,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,WAAW;qBAClB;oBACD;wBACE,IAAI,EAAE,mBAAmB;wBACzB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,0BAA0B;wBAChC,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,yBAAyB;wBAC/B,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,aAAa;wBACnB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,yBAAyB;wBAC/B,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,8BAA8B;wBACpC,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI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AAI,EAAE;gBACJ,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,CAAC,WAAW,CAAC;qBACtB;oBACD;wBACE,IAAI,EAAE,OAAO;wBACb,MAAM,EAAE;4BACN;gCACE,OAAO,EAAE,eAAe;6BACzB;yBACF;qBACF;oBACD;wBACE,IAAI,EAAE,aAAa;wBACnB,MAAM,EAAE;4BACN;gCACE,OAAO,EAAE,gBAAgB;6BAC1B;yBACF;qBACF;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,CAAC,KAAK,CAAC;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC"}
@@ -22,10 +22,14 @@ const getAssetBatchDas_1 = require("../../utils/solana/das/getAssetBatchDas");
22
22
  const heliusAssetToAssetCollectible_1 = require("../../utils/solana/das/heliusAssetToAssetCollectible");
23
23
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
24
24
  const constants_1 = require("./constants");
25
- const calculateLoanRepayValue_1 = require("./calculateLoanRepayValue");
25
+ const helpers_1 = require("./helpers");
26
26
  const filters_1 = require("./filters");
27
- const collections = new Map();
28
- let collectionLastUpdate = 0;
27
+ const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
28
+ const arrayToMap_1 = require("../../utils/misc/arrayToMap");
29
+ const collectionsMemo = new MemoizedCache_1.MemoizedCache(constants_1.collectionsCacheKey, {
30
+ prefix: constants_1.cachePrefix,
31
+ networkId: portfolio_core_1.NetworkId.solana,
32
+ }, (arr) => (0, arrayToMap_1.arrayToMap)(arr || [], 'marketPubkey'));
29
33
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
30
34
  const connection = (0, clients_1.getClientSolana)();
31
35
  const dasUrl = (0, getSolanaDasEndpoint_1.default)();
@@ -35,27 +39,19 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
35
39
  ]))
36
40
  .flat()
37
41
  .filter((acc) => acc.bondTradeTransactionState.perpetualActive ||
42
+ acc.bondTradeTransactionState.perpetualPartialRepaid ||
38
43
  acc.bondTradeTransactionState.perpetualRefinancedActive ||
39
44
  acc.bondTradeTransactionState.active);
40
45
  if (accounts.length === 0)
41
46
  return [];
42
- const [tokenPrices, fbondTokenMints, bondOffers] = yield Promise.all([
47
+ const [tokenPrices, fbondTokenMints, bondOffers, collections] = yield Promise.all([
43
48
  cache.getTokenPricesAsMap([solana_1.usdcSolanaMint, portfolio_core_1.solanaNativeAddress], portfolio_core_1.NetworkId.solana),
44
49
  (0, solana_1.getAutoParsedMultipleAccountsInfo)(connection, constants_1.banxIdlItem, accounts.map((acc) => new web3_js_1.PublicKey(acc.fbondTokenMint))),
45
50
  (0, solana_1.getAutoParsedMultipleAccountsInfo)(connection, constants_1.banxIdlItem, accounts.map((acc) => new web3_js_1.PublicKey(acc.bondOffer))),
51
+ collectionsMemo.getItem(cache),
46
52
  ]);
47
- if (collectionLastUpdate + constants_1.collectionRefreshInterval < Date.now()) {
48
- const collectionsArr = yield cache.getItem(constants_1.collectionsCacheKey, {
49
- prefix: constants_1.cachePrefix,
50
- networkId: portfolio_core_1.NetworkId.solana,
51
- });
52
- if (collectionsArr) {
53
- collectionsArr.forEach((cc) => {
54
- collections.set(cc.marketPubkey, cc);
55
- });
56
- }
57
- collectionLastUpdate = Date.now();
58
- }
53
+ if (!collections)
54
+ return [];
59
55
  const solTokenPrice = tokenPrices.get(portfolio_core_1.solanaNativeAddress);
60
56
  if (!solTokenPrice)
61
57
  return [];
@@ -76,11 +72,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
76
72
  accounts.forEach((acc) => {
77
73
  const fbondTokenMint = fbondTokenMintsMap.get(acc.fbondTokenMint);
78
74
  const bondOffer = bondOffersMap.get(acc.bondOffer);
79
- if (!fbondTokenMint || !bondOffer || !bondOffer.hadoMarket)
75
+ if (!fbondTokenMint)
80
76
  return;
81
- const collection = collections.get(bondOffer.hadoMarket);
82
- if (!collection)
77
+ if (!fbondTokenMint.fraktBondState.perpetualActive &&
78
+ !fbondTokenMint.fraktBondState.active)
83
79
  return;
80
+ const collection = bondOffer && bondOffer.hadoMarket
81
+ ? collections.get(bondOffer.hadoMarket)
82
+ : undefined;
84
83
  const tokenPrice = acc.lendingToken.usdc
85
84
  ? tokenPrices.get(solana_1.usdcSolanaMint)
86
85
  : tokenPrices.get(portfolio_core_1.solanaNativeAddress);
@@ -106,13 +105,12 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
106
105
  });
107
106
  }
108
107
  }
109
- const solAsset = (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, (0, calculateLoanRepayValue_1.calculateLoanRepayValue)(acc)
110
- .dividedBy(Math.pow(10, tokenPrice.decimals))
111
- .toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice);
112
108
  const name = `Active Loan`;
113
109
  if (acc.user === owner.toString()) {
114
110
  // LENDER
115
- suppliedAssets.push(solAsset);
111
+ suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPrice.address, (0, helpers_1.calculateLoanRepayValue)(acc)
112
+ .dividedBy(Math.pow(10, tokenPrice.decimals))
113
+ .toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
116
114
  if (mintAsset)
117
115
  borrowedAssets.push(mintAsset);
118
116
  }
@@ -120,16 +118,23 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
120
118
  // BORROWER
121
119
  if (mintAsset)
122
120
  suppliedAssets.push(mintAsset);
123
- borrowedAssets.push(solAsset);
121
+ borrowedAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPrice.address, (0, helpers_1.calculateDebtValue)(acc)
122
+ .dividedBy(Math.pow(10, tokenPrice.decimals))
123
+ .toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
124
124
  }
125
125
  if (suppliedAssets.length > 0) {
126
- const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, []);
126
+ const { borrowedValue, suppliedValue, rewardValue, value } = (0, portfolio_core_1.getElementNFTLendingValues)({
127
+ suppliedAssets,
128
+ borrowedAssets,
129
+ rewardAssets: [],
130
+ lender: acc.user === owner.toString(),
131
+ });
127
132
  elements.push({
128
133
  networkId: portfolio_core_1.NetworkId.solana,
129
134
  label: 'Lending',
130
135
  platformId: constants_1.platformId,
131
136
  type: portfolio_core_1.PortfolioElementType.borrowlend,
132
- value: suppliedValue,
137
+ value,
133
138
  name,
134
139
  data: {
135
140
  borrowedAssets,
@@ -140,8 +145,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
140
145
  suppliedYields: [],
141
146
  rewardAssets: [],
142
147
  rewardValue,
143
- healthRatio,
144
- value: suppliedValue,
148
+ healthRatio: null,
149
+ value,
145
150
  },
146
151
  });
147
152
  }
@@ -1 +1 @@
1
- {"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,iDAAsD;AACtD,oGAA4E;AAC5E,+CAK4B;AAC5B,8EAAgF;AAChF,wGAAqG;AACrG,qGAA6E;AAC7E,2CAMqB;AAOrB,uEAAoE;AACpE,uCAAuD;AAEvD,MAAM,WAAW,GAA4B,IAAI,GAAG,EAAE,CAAC;AACvD,IAAI,oBAAoB,GAAG,CAAC,CAAC;AAE7B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,MAAM,GAAG,IAAA,8BAAoB,GAAE,CAAC;IAEtC,MAAM,QAAQ,GAAG,CACf,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,qCAA4B,EAC1B,UAAU,EACV,uBAAW,EACX,IAAA,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AAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,iDAAsD;AACtD,oGAA4E;AAC5E,+CAK4B;AAC5B,8EAAgF;AAChF,wGAAqG;AACrG,qGAA6E;AAC7E,2CAKqB;AAOrB,uCAAwE;AACxE,uCAAuD;AACvD,kEAA+D;AAC/D,4DAAyD;AAEzD,MAAM,eAAe,GAAG,IAAI,6BAAa,CAIvC,+BAAmB,EACnB;IACE,MAAM,EAAE,uBAAW;IACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,IAAI,EAAE,EAAE,cAAc,CAAC,CAC/C,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,MAAM,GAAG,IAAA,8BAAoB,GAAE,CAAC;IAEtC,MAAM,QAAQ,GAAG,CACf,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,qCAA4B,EAC1B,UAAU,EACV,uBAAW,EACX,IAAA,sBAAY,EAAC,KAAK,CAAC,CACpB;QACD,IAAA,qCAA4B,EAC1B,UAAU,EACV,uBAAW,EACX,IAAA,sBAAY,EAAC,KAAK,CAAC,CACpB;KACF,CAAC,CACH;SACE,IAAI,EAAE;SACN,MAAM,CACL,CAAC,GAAG,EAAE,EAAE,CACN,GAAG,CAAC,yBAAyB,CAAC,eAAe;QAC7C,GAAG,CAAC,yBAAyB,CAAC,sBAAsB;QACpD,GAAG,CAAC,yBAAyB,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AAU,CAAC,QAAQ,CAAA,CAAC;iBACpC,QAAQ,EAAE,EACb,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CACF,CAAC;QACJ,CAAC;QAED,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,EAAE,GACxD,IAAA,2CAA0B,EAAC;gBACzB,cAAc;gBACd,cAAc;gBACd,YAAY,EAAE,EAAE;gBAChB,MAAM,EAAE,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,QAAQ,EAAE;aACtC,CAAC,CAAC;YAEL,QAAQ,CAAC,IAAI,CAAC;gBACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,KAAK,EAAE,SAAS;gBAChB,UAAU,EAAV,sBAAU;gBACV,IAAI,EAAE,qCAAoB,CAAC,UAAU;gBACrC,KAAK;gBACL,IAAI;gBACJ,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,YAAY,EAAE,EAAE;oBAChB,WAAW;oBACX,WAAW,EAAE,IAAI;oBACjB,KAAK;iBACN;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,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"}
@@ -18,8 +18,12 @@ const clients_1 = require("../../utils/clients");
18
18
  const solana_1 = require("../../utils/solana");
19
19
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
20
20
  const constants_1 = require("./constants");
21
- const collections = new Map();
22
- let collectionLastUpdate = 0;
21
+ const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
22
+ const arrayToMap_1 = require("../../utils/misc/arrayToMap");
23
+ const collectionsMemo = new MemoizedCache_1.MemoizedCache(constants_1.collectionsCacheKey, {
24
+ prefix: constants_1.cachePrefix,
25
+ networkId: portfolio_core_1.NetworkId.solana,
26
+ }, (arr) => (0, arrayToMap_1.arrayToMap)(arr || [], 'marketPubkey'));
23
27
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
24
28
  const connection = (0, clients_1.getClientSolana)();
25
29
  const accounts = (yield (0, solana_1.getAutoParsedProgramAccounts)(connection, constants_1.banxIdlItem, [
@@ -35,19 +39,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
35
39
  ])).filter((acc) => acc.buyOrdersQuantity !== '0');
36
40
  if (accounts.length === 0)
37
41
  return [];
38
- const tokenPrices = yield cache.getTokenPricesAsMap([solana_1.usdcSolanaMint, portfolio_core_1.solanaNativeAddress], portfolio_core_1.NetworkId.solana);
39
- if (collectionLastUpdate + constants_1.collectionRefreshInterval < Date.now()) {
40
- const collectionsArr = yield cache.getItem(constants_1.collectionsCacheKey, {
41
- prefix: constants_1.cachePrefix,
42
- networkId: portfolio_core_1.NetworkId.solana,
43
- });
44
- if (collectionsArr) {
45
- collectionsArr.forEach((cc) => {
46
- collections.set(cc.marketPubkey, cc);
47
- });
48
- }
49
- collectionLastUpdate = Date.now();
50
- }
42
+ const [tokenPrices, collections] = yield Promise.all([
43
+ cache.getTokenPricesAsMap([solana_1.usdcSolanaMint, portfolio_core_1.solanaNativeAddress], portfolio_core_1.NetworkId.solana),
44
+ collectionsMemo.getItem(cache),
45
+ ]);
51
46
  const elements = [];
52
47
  accounts.forEach((acc) => {
53
48
  const collection = collections.get(acc.hadoMarket);
@@ -64,7 +59,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
64
59
  .dividedBy(Math.pow(10, tokenPrice.decimals))
65
60
  .toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
66
61
  const name = `${Number(acc.buyOrdersQuantity) > 1 ? `${acc.buyOrdersQuantity} ` : ''}Lend Offer${Number(acc.buyOrdersQuantity) > 1 ? 's' : ''} on ${collection.collectionName}`;
67
- const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, []);
62
+ const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({
63
+ suppliedAssets,
64
+ borrowedAssets,
65
+ rewardAssets: [],
66
+ });
68
67
  if (suppliedValue && suppliedValue > 0)
69
68
  elements.push({
70
69
  networkId: portfolio_core_1.NetworkId.solana,
@@ -1 +1 @@
1
- {"version":3,"file":"offersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/offersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,+CAI4B;AAC5B,qGAA6E;AAC7E,2CAOqB;AAGrB,MAAM,WAAW,GAA4B,IAAI,GAAG,EAAE,CAAC;AACvD,IAAI,oBAAoB,GAAG,CAAC,CAAC;AAE7B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,CACf,MAAM,IAAA,qCAA4B,EAAc,UAAU,EAAE,uBAAW,EAAE;QACvE;YACE,QAAQ,EAAE,6BAAiB;SAC5B;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,GAAG;aACZ;SACF;KACF,CAAC,CACH,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,iBAAiB,KAAK,GAAG,CAAC,CAAC;IACjD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IA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Ae,OAAO,CAAC"}
1
+ {"version":3,"file":"offersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/offersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,+CAG4B;AAC5B,qGAA6E;AAC7E,2CAMqB;AAErB,kEAA+D;AAC/D,4DAAyD;AAEzD,MAAM,eAAe,GAAG,IAAI,6BAAa,CAIvC,+BAAmB,EACnB;IACE,MAAM,EAAE,uBAAW;IACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,IAAI,EAAE,EAAE,cAAc,CAAC,CAC/C,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,CACf,MAAM,IAAA,qCAA4B,EAAc,UAAU,EAAE,uBAAW,EAAE;QACvE;YACE,QAAQ,EAAE,6BAAiB;SAC5B;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,GAAG;aACZ;SACF;KACF,CAAC,CACH,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,iBAAiB,KAAK,GAAG,CAAC,CAAC;IAEjD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACnD,KAAK,CAAC,mBAAmB,CACvB,CAAC,uBAAc,EAAE,oCAAmB,CAAC,EACrC,0BAAS,CAAC,MAAM,CACjB;QACD,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC;KAC/B,CAAC,CAAC;IAEH,MAAM,QAAQ,GA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AAC;YACpC,QAAQ,CAAC,IAAI,CAAC;gBACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,KAAK,EAAE,SAAS;gBAChB,UAAU,EAAV,sBAAU;gBACV,IAAI,EAAE,qCAAoB,CAAC,UAAU;gBACrC,KAAK,EAAE,aAAa;gBACpB,IAAI;gBACJ,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,YAAY,EAAE,EAAE;oBAChB,WAAW;oBACX,WAAW;oBACX,KAAK,EAAE,aAAa;iBACrB;aACF,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -57,7 +57,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
57
57
  .toNumber();
58
58
  borrowedAssets.push((0, tokenPriceToAssetToken_1.default)(constants_1.buckId, borrowedQuantity, portfolio_core_1.NetworkId.sui, buckPrice));
59
59
  suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(collateral.tokenId, suppliedQuantity, portfolio_core_1.NetworkId.sui, tokenPrice));
60
- const { borrowedValue, healthRatio, suppliedValue, value, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets);
60
+ const { borrowedValue, healthRatio, suppliedValue, value, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({ suppliedAssets, borrowedAssets, rewardAssets });
61
61
  const element = {
62
62
  type: portfolio_core_1.PortfolioElementType.borrowlend,
63
63
  networkId: portfolio_core_1.NetworkId.sui,
@@ -1 +1 @@
1
- {"version":3,"file":"collateralFetcher.js","s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OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"collateralFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bucket/collateralFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAGrC,2CAA8D;AAC9D,iDAAmD;AAEnD,qGAA6E;AAC7E,iFAA8E;AAE9E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,kBAAM,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;IACnE,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAC1B,MAAM,QAAQ,GAAuB,EAAE,CAAC;IAExC,KAAK,MAAM,UAAU,IAAI,uBAAW,EAAE,CAAC;QACrC,MAAM,cAAc,GAAqB,EAAE,CAAC;QAC5C,MAAM,cAAc,GAAc,EAAE,CAAC;QACrC,MAAM,cAAc,GAAqB,EAAE,CAAC;QAC5C,MAAM,cAAc,GAAc,EAAE,CAAC;QACrC,MAAM,YAAY,GAAqB,EAAE,CAAC;QAC1C,MAAM,KAAK,GAAG;YACZ,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,IAAI,EAAE;gBACJ,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,KAAK;aACb;SACF,CAAC;QACF,MAAM,YAAY,GAAG,MAAM,IAAA,6CAAqB,EAC9C,MAAM,EACN,KAAK,CACN,CAAC;QACF,IAAI,CAAC,YAAY,CAAC,IAAI;YAAE,SAAS;QAEjC,MAAM,UAAU,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SAAS;YAChB,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;SACF,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"collectionsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/collectionsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA0B;AAG1B,2CAKqB;AAGrB,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,CAAa,6BAAiB,EAAE;QAClC,OAAO,EAAE,IAAI;KACd,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,KAAK,CAAC,mBAAmB,GAAG,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,+BAAmB,EAAE,GAAG,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"collectionsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/collectionsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA0B;AAG1B,2CAKqB;AAGrB,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,CAAe,6BAAiB,EAAE;QACpC,OAAO,EAAE,IAAI;KACd,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,KAAK,CAAC,mBAAmB,GAAG,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,+BAAmB,EAAE,GAAG,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,kBAAe,GAAG,CAAC"}
@@ -8,5 +8,4 @@ export declare const cachePrefix = "citrus";
8
8
  export declare const collectionsApiUrl = "https://citrus.famousfoxes.com/citrus/allCollections";
9
9
  export declare const citrusProgram: PublicKey;
10
10
  export declare const loanDataSize = 464;
11
- export declare const collectionRefreshInterval = 3600000;
12
11
  export declare const citrusIdlItem: IdlItem;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.citrusIdlItem = exports.collectionRefreshInterval = exports.loanDataSize = exports.citrusProgram = exports.collectionsApiUrl = exports.cachePrefix = exports.collectionsCacheKey = exports.platform = exports.platformId = void 0;
3
+ exports.citrusIdlItem = exports.loanDataSize = exports.citrusProgram = exports.collectionsApiUrl = exports.cachePrefix = exports.collectionsCacheKey = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  const idl_1 = require("./idl");
6
6
  exports.platformId = 'citrus';
@@ -17,7 +17,6 @@ exports.cachePrefix = `${exports.platformId}`;
17
17
  exports.collectionsApiUrl = 'https://citrus.famousfoxes.com/citrus/allCollections';
18
18
  exports.citrusProgram = new web3_js_1.PublicKey('JCFRaPv7852ESRwJJGRy2mysUMydXZgVVhrMLmExvmVp');
19
19
  exports.loanDataSize = 464;
20
- exports.collectionRefreshInterval = 3600000;
21
20
  exports.citrusIdlItem = {
22
21
  programId: exports.citrusProgram.toString(),
23
22
  idl: idl_1.CitrusIDL,
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,+BAAkC;AAErB,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,QAAQ,EAAE,sCAAsC;CAC9D,CAAC;AACW,QAAA,mBAAmB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAClD,QAAA,WAAW,GAAG,GAAG,kBAAU,EAAE,CAAC;AAE9B,QAAA,iBAAiB,GAC5B,sDAAsD,CAAC;AAE5C,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,YAAY,GAAG,GAAG,CAAC;AACnB,QAAA,yBAAyB,GAAG,OAAO,CAAC;AAEpC,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,qBAAa,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,eAAS;IACd,OAAO,EAAE,QAAQ;CACP,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,+BAAkC;AAErB,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,QAAQ,EAAE,sCAAsC;CAC9D,CAAC;AACW,QAAA,mBAAmB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAClD,QAAA,WAAW,GAAG,GAAG,kBAAU,EAAE,CAAC;AAE9B,QAAA,iBAAiB,GAC5B,sDAAsD,CAAC;AAE5C,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,YAAY,GAAG,GAAG,CAAC;AAEnB,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,qBAAa,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,eAAS;IACd,OAAO,EAAE,QAAQ;CACP,CAAC"}
@@ -22,8 +22,12 @@ const getAssetBatchDas_1 = require("../../utils/solana/das/getAssetBatchDas");
22
22
  const getSolanaDasEndpoint_1 = __importDefault(require("../../utils/clients/getSolanaDasEndpoint"));
23
23
  const heliusAssetToAssetCollectible_1 = require("../../utils/solana/das/heliusAssetToAssetCollectible");
24
24
  const filters_1 = require("./filters");
25
- const collections = new Map();
26
- let collectionLastUpdate = 0;
25
+ const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
26
+ const arrayToMap_1 = require("../../utils/misc/arrayToMap");
27
+ const collectionsMemo = new MemoizedCache_1.MemoizedCache(constants_1.collectionsCacheKey, {
28
+ prefix: constants_1.cachePrefix,
29
+ networkId: portfolio_core_1.NetworkId.solana,
30
+ }, (arr) => (0, arrayToMap_1.arrayToMap)(arr || [], 'id'));
27
31
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
28
32
  const connection = (0, clients_1.getClientSolana)();
29
33
  const dasUrl = (0, getSolanaDasEndpoint_1.default)();
@@ -36,26 +40,15 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
36
40
  );
37
41
  if (accounts.length === 0)
38
42
  return [];
39
- const [solTokenPrice, heliusAssets] = yield Promise.all([
43
+ const [solTokenPrice, heliusAssets, collections] = yield Promise.all([
40
44
  cache.getTokenPrice(portfolio_core_1.solanaNativeAddress, portfolio_core_1.NetworkId.solana),
41
45
  (0, getAssetBatchDas_1.getAssetBatchDasAsMap)(dasUrl, accounts
42
46
  .map((acc) => acc.mint)
43
47
  .filter((mint) => mint && mint !== '11111111111111111111111111111111')),
48
+ collectionsMemo.getItem(cache),
44
49
  ]);
45
- if (!solTokenPrice)
50
+ if (!solTokenPrice || !collections)
46
51
  return [];
47
- if (collectionLastUpdate + constants_1.collectionRefreshInterval < Date.now()) {
48
- const collectionsArr = yield cache.getItem(constants_1.collectionsCacheKey, {
49
- prefix: constants_1.cachePrefix,
50
- networkId: portfolio_core_1.NetworkId.solana,
51
- });
52
- if (collectionsArr) {
53
- collectionsArr.forEach((cc) => {
54
- collections.set(cc.id, cc);
55
- });
56
- }
57
- collectionLastUpdate = Date.now();
58
- }
59
52
  const elements = [];
60
53
  accounts.forEach((acc) => {
61
54
  const collection = collections.get(acc.collectionConfig);
@@ -115,13 +108,18 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
115
108
  }
116
109
  }
117
110
  if (suppliedAssets.length > 0) {
118
- const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, []);
111
+ const { borrowedValue, suppliedValue, rewardValue, value } = (0, portfolio_core_1.getElementNFTLendingValues)({
112
+ suppliedAssets,
113
+ borrowedAssets,
114
+ rewardAssets: [],
115
+ lender: acc.lender === owner.toString(),
116
+ });
119
117
  elements.push({
120
118
  networkId: portfolio_core_1.NetworkId.solana,
121
119
  label: 'Lending',
122
120
  platformId: constants_1.platformId,
123
121
  type: portfolio_core_1.PortfolioElementType.borrowlend,
124
- value: suppliedValue,
122
+ value,
125
123
  name,
126
124
  data: {
127
125
  borrowedAssets,
@@ -132,8 +130,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
132
130
  suppliedYields: [],
133
131
  rewardAssets: [],
134
132
  rewardValue,
135
- healthRatio,
136
- value: suppliedValue,
133
+ healthRatio: null,
134
+ value,
137
135
  expireOn: acc.status.active || acc.status.onSale
138
136
  ? Number(acc.startTime) + Number(acc.loanTerms.duration)
139
137
  : undefined,
@@ -1 +1 @@
1
- {"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AAEtD,+CAG4B;AAC5B,qGAA6E;AAC7E,8EAAgF;AAChF,oGAA4E;AAC5E,wGAAqG;AACrG,uCAA2C;AAE3C,MAAM,WAAW,GAA4B,IAAI,GAAG,EAAE,CAAC;AACvD,IAAI,oBAAoB,GAAG,CAAC,CAAC;AAE7B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,MAAM,GAAG,IAAA,8BAAoB,GAAE,CAAC;IAEtC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAA,wBAAc,EAAC,KAAK,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,CAClB,MAAM,OAAO,CAAC,GAAG,C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AAW,EAAE,GAC9D,IAAA,wCAAuB,EAAC,cAAc,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC;YAE9D,QAAQ,CAAC,IAAI,CAAC;gBACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,KAAK,EAAE,SAAS;gBAChB,UAAU,EAAV,sBAAU;gBACV,IAAI,EAAE,qCAAoB,CAAC,UAAU;gBACrC,KAAK,EAAE,aAAa;gBACpB,IAAI;gBACJ,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,YAAY,EAAE,EAAE;oBAChB,WAAW;oBACX,WAAW;oBACX,KAAK,EAAE,aAAa;oBACpB,QAAQ,EACN,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM;wBACpC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC;wBACxD,CAAC,CAAC,SAAS;iBAChB;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,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":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gEAAqC;AAErC,2CAKqB;AAErB,iDAAsD;AAEtD,+CAAkE;AAClE,qGAA6E;AAC7E,8EAAgF;AAChF,oGAA4E;AAC5E,wGAAqG;AACrG,uCAA2C;AAC3C,kEAA+D;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0, function* (
57
57
  }
58
58
  if (suppliedAssets.length === 0 && borrowedAssets.length === 0)
59
59
  continue;
60
- const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets);
60
+ const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({ suppliedAssets, borrowedAssets, rewardAssets });
61
61
  elements.push({
62
62
  type: portfolio_core_1.PortfolioElementType.borrowlend,
63
63
  networkId: portfolio_core_1.NetworkId.solana,
@@ -100,7 +100,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
100
100
  }
101
101
  }
102
102
  if (suppliedAssets.length !== 0 && borrowedAssets.length !== 0) {
103
- const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets);
103
+ const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({ suppliedAssets, borrowedAssets, rewardAssets });
104
104
  elements.push({
105
105
  type: portfolio_core_1.PortfolioElementType.borrowlend,
106
106
  networkId: portfolio_core_1.NetworkId.solana,
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/clone/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AAGpC,2CAAmD;AACnD,iDAAsD;AACtD,uCAA2C;AAC3C,kFAA+E;AAC/E,uCAAuC;AAEvC,+CAAsE;AACtE,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,GAAG,GAAG,IAAA,wBAAc,EAAC,KAAK,CAAC,CAAC;IAElC,MAAM,WAAW,GAAG,MAAM,IAAA,2CAAoB,EAAC,MAAM,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AAC,CAAC;QAExE,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;YACrC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,KAAK;YACL,IAAI,EAAE,OAAO;YACb,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,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":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/clone/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AAGpC,2CAAmD;AACnD,iDAAsD;AACtD,uCAA2C;AAC3C,kFAA+E;AAC/E,uCAAuC;AAEvC,+CAAsE;AACtE,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,GAAG,GAAG,IAAA,wBAAc,EAAC,KAAK,CAAC,CAAC;IAElC,MAAM,WAAW,GAAG,MAAM,IAAA,2CAAoB,EAAC,MAAM,EAAE,oBAAU,EAAE,GAAG,CAAC,CAAC;IACxE,IAAI,CAAC,WAAW;QAAE,OAAO,EAAE,CAAC;IAE5B,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAS,oBAAQ,EAAE;QAClD,MAAM,EAAE,sBAAU;QAClB,SAA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AS;YAChB,KAAK;YACL,IAAI,EAAE,OAAO;YACb,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,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"}
@@ -93,7 +93,7 @@ function getPositionsV2Fetcher(networkId, platformId) {
93
93
  }
94
94
  if (borrowedAssets.length === 0 && suppliedAssets.length === 0)
95
95
  return [];
96
- const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets);
96
+ const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({ suppliedAssets, borrowedAssets, rewardAssets });
97
97
  return [
98
98
  {
99
99
  type: portfolio_core_1.PortfolioElementType.borrowlend,
@@ -1 +1 @@
1
- {"version":3,"file":"getPositionsV2Fetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/getPositionsV2Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAIrC,iCAAuC;AACvC,uDAA6D;AAC7D,iDAAmD;AACnD,qGAA6E;AAC7E,2CAA+C;AAC/C,uCAAwC;AAExC,SAAwB,qBAAqB,CAC3C,SAA2B,EAC3B,UAAkB;IAElB,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,SAAS,CAAC,CAAC;QACvC,MAAM,OAAO,GAAG,K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AAI,cAAc,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAE1E,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC,cAAc,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;QACxE,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,UAAU;gBACrC,SAAS;gBACT,UAAU;gBACV,KAAK,EAAE,SAAS;gBAChB,KAAK;gBACL,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc;oBACd,cAAc;oBACd,aAAa;oBACb,cAAc;oBACd,WAAW;oBACX,YAAY;oBACZ,WAAW;oBACX,KAAK;iBACN;aACF;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,GAAG,UAAU,IAAI,SAAS,eAAe;QAC7C,SAAS;QACT,QAAQ;KACT,CAAC;AACJ,CAAC;AAlJD,wCAkJC"}
1
+ {"version":3,"file":"getPositionsV2Fetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/getPositionsV2Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAIrC,iCAAuC;AACvC,uDAA6D;AAC7D,iDAAmD;AACnD,qGAA6E;AAC7E,2CAA+C;AAC/C,uCAAwC;AAExC,SAAwB,qBAAqB,CAC3C,SAA2B,EAC3B,UAAkB;IAElB,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,SAAS,CAAC,CAAC;QACvC,MAAM,OAAO,GAAG,KAAsB,CAAC;QAEvC,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO,CAAmB,4BAAgB,EAAE;YACtE,MAAM,EAAE,UAAU;YAClB,SAAS;SACV,CAAC,CAAC;QACH,IAAI,CA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