@sonarwatch/portfolio-plugins 0.12.177 → 0.12.179

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/src/index.js +12 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/adrena/constants.d.ts +8 -0
  6. package/src/plugins/adrena/constants.js +18 -0
  7. package/src/plugins/adrena/constants.js.map +1 -0
  8. package/src/plugins/adrena/custodiesJob.d.ts +3 -0
  9. package/src/plugins/adrena/custodiesJob.js +34 -0
  10. package/src/plugins/adrena/custodiesJob.js.map +1 -0
  11. package/src/plugins/adrena/filters.d.ts +3 -0
  12. package/src/plugins/adrena/filters.js +21 -0
  13. package/src/plugins/adrena/filters.js.map +1 -0
  14. package/src/plugins/adrena/helpers.d.ts +5 -0
  15. package/src/plugins/adrena/helpers.js +22 -0
  16. package/src/plugins/adrena/helpers.js.map +1 -0
  17. package/src/plugins/adrena/index.d.ts +6 -0
  18. package/src/plugins/adrena/index.js +14 -0
  19. package/src/plugins/adrena/index.js.map +1 -0
  20. package/src/plugins/adrena/positionsFetcher.d.ts +3 -0
  21. package/src/plugins/adrena/positionsFetcher.js +49 -0
  22. package/src/plugins/adrena/positionsFetcher.js.map +1 -0
  23. package/src/plugins/adrena/stakingFetcher.d.ts +3 -0
  24. package/src/plugins/adrena/stakingFetcher.js +69 -0
  25. package/src/plugins/adrena/stakingFetcher.js.map +1 -0
  26. package/src/plugins/adrena/structs.d.ts +187 -0
  27. package/src/plugins/adrena/structs.js +175 -0
  28. package/src/plugins/adrena/structs.js.map +1 -0
  29. package/src/plugins/adrena/types.d.ts +9 -0
  30. package/src/plugins/adrena/types.js +3 -0
  31. package/src/plugins/adrena/types.js.map +1 -0
  32. package/src/plugins/elemental/depositFetcher.js +0 -8
  33. package/src/plugins/elemental/depositFetcher.js.map +1 -1
  34. package/src/plugins/flash/helpers.js +16 -1
  35. package/src/plugins/flash/helpers.js.map +1 -1
  36. package/src/plugins/flash/types.d.ts +5 -0
  37. package/src/plugins/hawksight/positionsFetcher.js +4 -0
  38. package/src/plugins/hawksight/positionsFetcher.js.map +1 -1
  39. package/src/plugins/joule/constants.d.ts +6 -0
  40. package/src/plugins/joule/constants.js +16 -0
  41. package/src/plugins/joule/constants.js.map +1 -0
  42. package/src/plugins/joule/depositFetcher.d.ts +3 -0
  43. package/src/plugins/joule/depositFetcher.js +71 -0
  44. package/src/plugins/joule/depositFetcher.js.map +1 -0
  45. package/src/plugins/joule/index.d.ts +6 -0
  46. package/src/plugins/joule/index.js +13 -0
  47. package/src/plugins/joule/index.js.map +1 -0
  48. package/src/plugins/joule/marketsJob.d.ts +3 -0
  49. package/src/plugins/joule/marketsJob.js +33 -0
  50. package/src/plugins/joule/marketsJob.js.map +1 -0
  51. package/src/plugins/joule/structs.d.ts +19 -0
  52. package/src/plugins/joule/structs.js +22 -0
  53. package/src/plugins/joule/structs.js.map +1 -0
  54. package/src/plugins/joule/types.d.ts +50 -0
  55. package/src/plugins/joule/types.js +3 -0
  56. package/src/plugins/joule/types.js.map +1 -0
  57. package/src/plugins/jupiter/exchange/constants.d.ts +1 -0
  58. package/src/plugins/jupiter/exchange/constants.js +2 -1
  59. package/src/plugins/jupiter/exchange/constants.js.map +1 -1
  60. package/src/plugins/jupiter/exchange/filters.d.ts +1 -0
  61. package/src/plugins/jupiter/exchange/filters.js +11 -1
  62. package/src/plugins/jupiter/exchange/filters.js.map +1 -1
  63. package/src/plugins/jupiter/exchange/lockFetcher.d.ts +3 -0
  64. package/src/plugins/jupiter/exchange/lockFetcher.js +47 -0
  65. package/src/plugins/jupiter/exchange/lockFetcher.js.map +1 -0
  66. package/src/plugins/jupiter/exchange/structs.d.ts +19 -0
  67. package/src/plugins/jupiter/exchange/structs.js +19 -1
  68. package/src/plugins/jupiter/exchange/structs.js.map +1 -1
  69. package/src/plugins/jupiter/index.js +2 -0
  70. package/src/plugins/jupiter/index.js.map +1 -1
  71. package/src/plugins/meso/constants.d.ts +7 -0
  72. package/src/plugins/meso/constants.js +17 -0
  73. package/src/plugins/meso/constants.js.map +1 -0
  74. package/src/plugins/meso/depositFetcher.d.ts +3 -0
  75. package/src/plugins/meso/depositFetcher.js +93 -0
  76. package/src/plugins/meso/depositFetcher.js.map +1 -0
  77. package/src/plugins/meso/index.d.ts +6 -0
  78. package/src/plugins/meso/index.js +13 -0
  79. package/src/plugins/meso/index.js.map +1 -0
  80. package/src/plugins/meso/marketsJob.d.ts +3 -0
  81. package/src/plugins/meso/marketsJob.js +37 -0
  82. package/src/plugins/meso/marketsJob.js.map +1 -0
  83. package/src/plugins/meso/structs.d.ts +19 -0
  84. package/src/plugins/meso/structs.js +22 -0
  85. package/src/plugins/meso/structs.js.map +1 -0
  86. package/src/plugins/meso/types.d.ts +100 -0
  87. package/src/plugins/meso/types.js +9 -0
  88. package/src/plugins/meso/types.js.map +1 -0
  89. package/src/plugins/navi/collateralFetcher.js +42 -81
  90. package/src/plugins/navi/collateralFetcher.js.map +1 -1
  91. package/src/plugins/orca/getWhirlpoolPositions.js +4 -0
  92. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  93. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +1 -1
  94. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -1
@@ -16,81 +16,75 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
16
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
17
17
  const constants_1 = require("./constants");
18
18
  const clients_1 = require("../../utils/clients");
19
- const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
20
19
  const getDynamicFieldObject_1 = require("../../utils/sui/getDynamicFieldObject");
21
20
  const getAvailableRewards_1 = require("./getAvailableRewards");
21
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
22
22
  const amountFactor = new bignumber_js_1.default(Math.pow(10, 36));
23
23
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
24
24
  var _a, _b, _c, _d;
25
25
  const client = (0, clients_1.getClientSui)();
26
- const borrowedAssets = [];
27
- const borrowedYields = [];
28
- const suppliedAssets = [];
29
- const suppliedYields = [];
30
- const rewardAssets = [];
31
- const suppliedLtvs = [];
32
26
  const reservesData = yield cache.getItem(constants_1.reservesKey, {
33
27
  prefix: constants_1.reservesPrefix,
34
28
  networkId: portfolio_core_1.NetworkId.sui,
35
29
  });
36
30
  if (!reservesData)
37
31
  return [];
38
- const [tokenPrices, rewards] = yield Promise.all([
39
- cache.getTokenPricesAsMap(reservesData.map((r) => r.value.fields.coin_type), portfolio_core_1.NetworkId.sui),
40
- (0, getAvailableRewards_1.getAvailableRewards)(client, owner),
41
- ]);
32
+ const [rewards] = yield Promise.all([(0, getAvailableRewards_1.getAvailableRewards)(client, owner)]);
33
+ const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.sui, constants_1.platformId);
34
+ const element = elementRegistry.addElementBorrowlend({ label: 'Lending' });
42
35
  for (const rData of reservesData) {
43
- const borrowBalancePromise = (0, getDynamicFieldObject_1.getDynamicFieldObject)(client, {
44
- parentId: rData.value.fields.borrow_balance.fields.user_state.fields.id.id,
45
- name: { type: 'address', value: owner },
46
- });
47
- const supplyBalancePromise = (0, getDynamicFieldObject_1.getDynamicFieldObject)(client, {
48
- parentId: rData.value.fields.supply_balance.fields.user_state.fields.id.id,
49
- name: { type: 'address', value: owner },
50
- });
51
36
  const [borrowBalance, supplyBalance] = yield Promise.all([
52
- borrowBalancePromise,
53
- supplyBalancePromise,
37
+ (0, getDynamicFieldObject_1.getDynamicFieldObject)(client, {
38
+ parentId: rData.value.fields.borrow_balance.fields.user_state.fields.id.id,
39
+ name: { type: 'address', value: owner },
40
+ }),
41
+ (0, getDynamicFieldObject_1.getDynamicFieldObject)(client, {
42
+ parentId: rData.value.fields.supply_balance.fields.user_state.fields.id.id,
43
+ name: { type: 'address', value: owner },
44
+ }),
54
45
  ]);
55
- const tokenPrice = tokenPrices.get((0, portfolio_core_1.formatTokenAddress)(rData.value.fields.coin_type, portfolio_core_1.NetworkId.sui));
56
46
  if (!borrowBalance.error && ((_a = borrowBalance.data) === null || _a === void 0 ? void 0 : _a.content)) {
57
47
  const borrowInfo = (_b = borrowBalance.data.content) === null || _b === void 0 ? void 0 : _b.fields;
58
48
  if (borrowInfo.value) {
59
- const borrowAsset = (0, tokenPriceToAssetToken_1.default)(rData.value.fields.coin_type, new bignumber_js_1.default(borrowInfo.value)
60
- .times(rData.value.fields.current_borrow_index)
61
- .dividedBy(amountFactor)
62
- .toNumber(), portfolio_core_1.NetworkId.sui, tokenPrice);
63
- if (borrowAsset.value === null || borrowAsset.value > 0.002) {
64
- borrowedAssets.push(borrowAsset);
65
- const apy = new bignumber_js_1.default(rData.value.fields.current_borrow_rate)
66
- .dividedBy(Math.pow(10, constants_1.rateFactor))
67
- .toNumber();
68
- borrowedYields.push([
69
- {
70
- apr: -(0, portfolio_core_1.apyToApr)(apy),
71
- apy: -apy,
72
- },
73
- ]);
74
- }
49
+ element.addBorrowedAsset({
50
+ address: rData.value.fields.coin_type,
51
+ amount: new bignumber_js_1.default(borrowInfo.value)
52
+ .times(rData.value.fields.current_borrow_index)
53
+ .dividedBy(amountFactor),
54
+ alreadyShifted: true,
55
+ });
56
+ const apy = new bignumber_js_1.default(rData.value.fields.current_borrow_rate)
57
+ .dividedBy(Math.pow(10, constants_1.rateFactor))
58
+ .toNumber();
59
+ element.addBorrowedYield([
60
+ {
61
+ apr: -(0, portfolio_core_1.apyToApr)(apy),
62
+ apy: -apy,
63
+ },
64
+ ]);
75
65
  }
76
66
  }
77
67
  if (!supplyBalance.error && ((_d = (_c = supplyBalance.data) === null || _c === void 0 ? void 0 : _c.content) === null || _d === void 0 ? void 0 : _d.fields)) {
78
68
  const supplyInfo = supplyBalance.data.content.fields;
79
69
  if (supplyInfo.value) {
80
- suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(rData.value.fields.coin_type, new bignumber_js_1.default(supplyInfo.value)
70
+ const amount = new bignumber_js_1.default(supplyInfo.value)
81
71
  .times(rData.value.fields.current_supply_index)
82
- .dividedBy(amountFactor)
83
- .toNumber(), portfolio_core_1.NetworkId.sui, tokenPrice));
72
+ .dividedBy(amountFactor);
73
+ element.addSuppliedAsset({
74
+ address: rData.value.fields.coin_type,
75
+ amount,
76
+ alreadyShifted: true,
77
+ });
84
78
  const apy = new bignumber_js_1.default(rData.value.fields.current_supply_rate)
85
79
  .dividedBy(Math.pow(10, constants_1.rateFactor))
86
80
  .toNumber();
87
- suppliedYields.push([
81
+ element.addSuppliedYield([
88
82
  {
89
83
  apr: (0, portfolio_core_1.apyToApr)(apy),
90
84
  apy,
91
85
  },
92
86
  ]);
93
- suppliedLtvs.push(new bignumber_js_1.default(rData.value.fields.liquidation_factors.fields.threshold)
87
+ element.addSuppliedLtv(new bignumber_js_1.default(rData.value.fields.liquidation_factors.fields.threshold)
94
88
  .div(Math.pow(10, 27))
95
89
  .toNumber());
96
90
  }
@@ -98,46 +92,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
98
92
  }
99
93
  if (rewards.size > 0) {
100
94
  rewards.forEach((amount, coinType) => {
101
- if (amount > 0) {
102
- const tokenPrice = tokenPrices.get((0, portfolio_core_1.formatTokenAddress)(coinType, portfolio_core_1.NetworkId.sui));
103
- if (tokenPrice) {
104
- rewardAssets.push((0, tokenPriceToAssetToken_1.default)(coinType, new bignumber_js_1.default(amount)
105
- .dividedBy(Math.pow(10, tokenPrice.decimals))
106
- .toNumber(), portfolio_core_1.NetworkId.sui, tokenPrice));
107
- }
108
- }
95
+ element.addRewardAsset({
96
+ address: coinType,
97
+ amount,
98
+ });
109
99
  });
110
100
  }
111
- if (suppliedAssets.length === 0 &&
112
- borrowedAssets.length === 0 &&
113
- rewardAssets.length === 0)
114
- return [];
115
- const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({
116
- suppliedAssets,
117
- borrowedAssets,
118
- rewardAssets,
119
- suppliedLtvs,
120
- });
121
- const element = {
122
- type: portfolio_core_1.PortfolioElementType.borrowlend,
123
- networkId: portfolio_core_1.NetworkId.sui,
124
- platformId: constants_1.platformId,
125
- label: 'Lending',
126
- value,
127
- data: {
128
- borrowedAssets,
129
- borrowedValue,
130
- borrowedYields,
131
- suppliedAssets,
132
- suppliedValue,
133
- suppliedYields,
134
- healthRatio,
135
- rewardAssets,
136
- rewardValue,
137
- value,
138
- },
139
- };
140
- return [element];
101
+ return elementRegistry.getElements(cache);
141
102
  });
142
103
  const fetcher = {
143
104
  id: `${constants_1.platformId}-collateral`,
@@ -1 +1 @@
1
- {"version":3,"file":"collateralFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/navi/collateralFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gEAAqC;AAGrC,2CAKqB;AACrB,iDAAmD;AACnD,qGAA6E;AAE7E,iFAA8E;AAC9E,+DAA4D;AAE5D,MAAM,YAAY,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,EAAE,CAAA,CAAC,CAAC;AAE7C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,cAAc,GAAqB,EAAE,CAAC;IAC5C,MAAM,cAAc,GAAc,EAAE,CAAC;IACrC,MAAM,cAAc,GAAqB,EAAE,CAAC;IAC5C,MAAM,cAAc,GAAc,EAAE,CAAC;IACrC,MAAM,YAAY,GAAqB,EAAE,CAAC;IAC1C,MAAM,YAAY,GAAa,EAAE,CAAC;IAElC,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,OAAO,CAAgB,uBAAW,EAAE;QACnE,MAAM,EAAE,0BAAc;QACtB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,YAAY;QAAE,OAAO,EAAE,CAAC;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C,MAAM,CAAC;yBAClB,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC;yBACpC,QAAQ,EAAE,EACb,0BAAS,CAAC,GAAG,EACb,UAAU,CACX,CACF,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IACE,cAAc,CAAC,MAAM,KAAK,CAAC;QAC3B,cAAc,CAAC,MAAM,KAAK,CAAC;QAC3B,YAAY,CAAC,MAAM,KAAK,CAAC;QAEzB,OAAO,EAAE,CAAC;IAEZ,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC;QACtB,cAAc;QACd,cAAc;QACd,YAAY;QACZ,YAAY;KACb,CAAC,CAAC;IACL,MAAM,OAAO,GAAqB;QAChC,IAAI,EAAE,qCAAoB,CAAC,UAAU;QACrC,SAAS,EAAE,0BAAS,CAAC,GAAG;QACxB,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS;QAChB,KAAK;QACL,IAAI,EAAE;YACJ,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;YACd,aAAa;YACb,cAAc;YACd,WAAW;YACX,YAAY;YACZ,WAAW;YACX,KAAK;SACN;KACF,CAAC;IACF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,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/navi/collateralFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AAGrC,2CAKqB;AACrB,iDAAmD;AAEnD,iFAA8E;AAC9E,+D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AO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -96,6 +96,9 @@ function getOrcaNftFetcher(platformId, programId) {
96
96
  continue;
97
97
  const assetTokenA = (0, tokenPriceToAssetToken_1.default)(whirlpoolInfo.tokenMintA.toString(), tokenAmountA.dividedBy(Math.pow(10, tokenPriceA.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceA);
98
98
  const assetTokenB = (0, tokenPriceToAssetToken_1.default)(whirlpoolInfo.tokenMintB.toString(), tokenAmountB.dividedBy(Math.pow(10, tokenPriceB.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceB);
99
+ const tags = [];
100
+ if (tokenAmountA.isZero() || tokenAmountB.isZero())
101
+ tags.push('Out Of Range');
99
102
  /* const feesAndRewards = calcFeesAndRewards(
100
103
  whirlpoolInfo,
101
104
  positionInfo,
@@ -209,6 +212,7 @@ function getOrcaNftFetcher(platformId, programId) {
209
212
  },
210
213
  ],
211
214
  },
215
+ tags,
212
216
  });
213
217
  }
214
218
  return elements;
@@ -1 +1 @@
1
- {"version":3,"file":"getWhirlpoolPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/getWhirlpoolPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,2CAIqB;AACrB,iDAAsD;AACtD,+CAG4B;AAE5B,mDAAgE;AAChE,qGAA6E;AAC7E,wFAAyF;AAEzF,iDAIwB;AAEX,QAAA,qBAAqB,GAAG,iBAAiB,CACpD,sBAAc,EACd,4BAAgB,CACjB,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,UAAkB,EAClB,SAAoB;IAEpB,OAAO,CACL,KAAY,EACZ,IAAiC,EACJ,EAAE;QAC/B,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CA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WAAW,EAAE,KAAK;4BAClB,YAAY;4BACZ,iBAAiB;4BACjB,KAAK,EAAE,KAAK,GAAG,CAAC,iBAAiB,IAAI,CAAC,CAAC;4BACvC,MAAM,EAAE,EAAE;yBACX;qBACF;iBACF;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAA,CAAC;AACJ,CAAC;AAhPD,8CAgPC"}
1
+ {"version":3,"file":"getWhirlpoolPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/getWhirlpoolPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,2CAIqB;AACrB,iDAAsD;AACtD,+CAG4B;AAE5B,mDAAgE;AAChE,qGAA6E;AAC7E,wFAAyF;AAEzF,iDAIwB;AAEX,QAAA,qBAAqB,GAAG,iBAAiB,CACpD,sBAAc,EACd,4BAAgB,CACjB,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,UAAkB,EAClB,SAAoB;IAEpB,OAAO,CACL,KAAY,EACZ,IAAiC,EACJ,EAAE;QAC/B,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,uBAAuB,GAAgB,EAAE,CAAC;QAEhD,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,MAAM,OAAO,GAAG,IAAI,mBAAS,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEhD,MAAM,YAAY,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;YAEnE,MAAM,CAAC,cAAc,CAAC,GAAG,mBAAS,CAAC,sBAAsB,CACvD,YAAY,EACZ,SAAS,CACV,CAAC;YACF,uBAAuB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;QACH,IAAI,uBAAuB,CAAC,MAAM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ter((a) => a !== null);
54
54
  const borrowedAssets = this.borrowedAssets
55
55
  .map((a) => a.get(networkId, tokenPrices))
56
- .filter((a) => a !== null);
56
+ .filter((a) => a !== null && a.value && a.value > 0.002);
57
57
  const rewardAssets = this.rewardAssets
58
58
  .map((a) => a.get(networkId, tokenPrices))
59
59
  .filter((a) => a !== null);
@@ -1 +1 @@
1
- {"version":3,"file":"ElementBorrowlendBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementBorrowlendBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AACpC,qDAAkD;AAClD,iDAA8C;AAK9C,MAAa,wBAAyB,SAAQ,+BAAc;IAU1D,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED,gBAAgB,CAAC,MAA4B;QAC3C,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,gBAAgB,CAAC,MAA4B;QAC3C,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,cAAc,CAAC,MAA4B;QACzC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,kBAAkB,CAAC,MAA4B;QAC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a;gBACb,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,cAAc;gBACd,aAAa;gBACb,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,YAAY;gBACZ,WAAW;gBACX,WAAW;gBACX,SAAS,EAAE;oBACT,MAAM,EAAE,eAAe;oBACvB,KAAK,EAAE,cAAc;iBACtB;gBACD,KAAK;aACN;YACD,KAAK;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;QAEF,OAAO,OAA2B,CAAC;IACrC,CAAC;CACF;AA3ID,4DA2IC"}
1
+ {"version":3,"file":"ElementBorrowlendBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementBorrowlendBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AACpC,qDAAkD;AAClD,iDAA8C;AAK9C,MAAa,wBAAyB,SAAQ,+BAAc;IAU1D,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED,gBAAgB,CAAC,MAA4B;QAC3C,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,gBAAgB,CAAC,MAA4B;QAC3C,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD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