@sonarwatch/portfolio-plugins 0.12.35 → 0.12.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. package/CHANGELOG.md +9 -5
  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 +12 -0
  12. package/src/plugins/allbridge/constants.js +26 -0
  13. package/src/plugins/allbridge/constants.js.map +1 -0
  14. package/src/plugins/allbridge/getPoolInfo.d.ts +3 -0
  15. package/src/plugins/allbridge/getPoolInfo.js +28 -0
  16. package/src/plugins/allbridge/getPoolInfo.js.map +1 -0
  17. package/src/plugins/allbridge/helpers.d.ts +5 -0
  18. package/src/plugins/allbridge/helpers.js +25 -0
  19. package/src/plugins/allbridge/helpers.js.map +1 -0
  20. package/src/plugins/allbridge/idl.d.ts +58 -0
  21. package/src/plugins/allbridge/idl.js +476 -0
  22. package/src/plugins/allbridge/idl.js.map +1 -0
  23. package/src/plugins/allbridge/index.d.ts +6 -0
  24. package/src/plugins/allbridge/index.js +13 -0
  25. package/src/plugins/allbridge/index.js.map +1 -0
  26. package/src/plugins/allbridge/poolsJob.d.ts +3 -0
  27. package/src/plugins/allbridge/poolsJob.js +40 -0
  28. package/src/plugins/allbridge/poolsJob.js.map +1 -0
  29. package/src/plugins/allbridge/positionsFetcher.js +88 -0
  30. package/src/plugins/allbridge/positionsFetcher.js.map +1 -0
  31. package/src/plugins/allbridge/types.d.ts +38 -0
  32. package/src/plugins/allbridge/types.js +3 -0
  33. package/src/plugins/allbridge/types.js.map +1 -0
  34. package/src/plugins/aptin/depositsFetcher.js +6 -1
  35. package/src/plugins/aptin/depositsFetcher.js.map +1 -1
  36. package/src/plugins/aries/depositsFetcher.js +7 -1
  37. package/src/plugins/aries/depositsFetcher.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/loansFetcher.js +16 -7
  42. package/src/plugins/banx/loansFetcher.js.map +1 -1
  43. package/src/plugins/banx/offersFetcher.js +5 -1
  44. package/src/plugins/banx/offersFetcher.js.map +1 -1
  45. package/src/plugins/bucket/collateralFetcher.js +1 -1
  46. package/src/plugins/bucket/collateralFetcher.js.map +1 -1
  47. package/src/plugins/citrus/loansFetcher.js +5 -1
  48. package/src/plugins/citrus/loansFetcher.js.map +1 -1
  49. package/src/plugins/clone/depositsFetcher.js +2 -2
  50. package/src/plugins/clone/depositsFetcher.js.map +1 -1
  51. package/src/plugins/compound/getPositionsV2Fetcher.js +1 -1
  52. package/src/plugins/compound/getPositionsV2Fetcher.js.map +1 -1
  53. package/src/plugins/compound/getPositionsV3Fetcher.js +5 -1
  54. package/src/plugins/compound/getPositionsV3Fetcher.js.map +1 -1
  55. package/src/plugins/drift/depositsFetcher.d.ts +3 -0
  56. package/src/plugins/drift/{deposits.js → depositsFetcher.js} +4 -4
  57. package/src/plugins/drift/depositsFetcher.js.map +1 -0
  58. package/src/plugins/drift/index.js +2 -2
  59. package/src/plugins/drift/index.js.map +1 -1
  60. package/src/plugins/flash/perpetualFetcher.js +1 -1
  61. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  62. package/src/plugins/flexlend/depositsFetcher.js +2 -2
  63. package/src/plugins/flexlend/depositsFetcher.js.map +1 -1
  64. package/src/plugins/jupiter/exchange/perpetualFetcher.js +8 -8
  65. package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
  66. package/src/plugins/jupiter/pricingJob.js +7 -22
  67. package/src/plugins/jupiter/pricingJob.js.map +1 -1
  68. package/src/plugins/kamino/lendsFetcher.js +21 -3
  69. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  70. package/src/plugins/maker/vaultsFetcher.js +1 -1
  71. package/src/plugins/maker/vaultsFetcher.js.map +1 -1
  72. package/src/plugins/mango/boostFetcher.js +1 -1
  73. package/src/plugins/mango/boostFetcher.js.map +1 -1
  74. package/src/plugins/mango/collateralFetcher.js +1 -1
  75. package/src/plugins/mango/collateralFetcher.js.map +1 -1
  76. package/src/plugins/mango/redeemFetcher.js +1 -1
  77. package/src/plugins/mango/redeemFetcher.js.map +1 -1
  78. package/src/plugins/maple/ethereumFetcher.js +1 -1
  79. package/src/plugins/maple/ethereumFetcher.js.map +1 -1
  80. package/src/plugins/marginfi/helpers.js +7 -1
  81. package/src/plugins/marginfi/helpers.js.map +1 -1
  82. package/src/plugins/mole/farmsFetcher.js +5 -1
  83. package/src/plugins/mole/farmsFetcher.js.map +1 -1
  84. package/src/plugins/morpho/aaveV3CollateralFetcher.js +1 -1
  85. package/src/plugins/morpho/aaveV3CollateralFetcher.js.map +1 -1
  86. package/src/plugins/native-stake/solana/solanaFetcher.js +2 -0
  87. package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
  88. package/src/plugins/navi/collateralFetcher.js +6 -1
  89. package/src/plugins/navi/collateralFetcher.js.map +1 -1
  90. package/src/plugins/nosana/stakingFetcher.js +8 -2
  91. package/src/plugins/nosana/stakingFetcher.js.map +1 -1
  92. package/src/plugins/port/obligationsFetcher.js +1 -1
  93. package/src/plugins/port/obligationsFetcher.js.map +1 -1
  94. package/src/plugins/rain/loansFetcher.js +1 -1
  95. package/src/plugins/rain/loansFetcher.js.map +1 -1
  96. package/src/plugins/rain/poolsFetcher.js +1 -1
  97. package/src/plugins/rain/poolsFetcher.js.map +1 -1
  98. package/src/plugins/sanctum/constants.d.ts +4 -0
  99. package/src/plugins/sanctum/constants.js +14 -0
  100. package/src/plugins/sanctum/constants.js.map +1 -0
  101. package/src/plugins/sanctum/index.d.ts +6 -0
  102. package/src/plugins/sanctum/index.js +12 -0
  103. package/src/plugins/sanctum/index.js.map +1 -0
  104. package/src/plugins/sanctum/lstsJob.d.ts +3 -0
  105. package/src/plugins/sanctum/lstsJob.js +36 -0
  106. package/src/plugins/sanctum/lstsJob.js.map +1 -0
  107. package/src/plugins/scallop/lendingsFetcher.js +1 -1
  108. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  109. package/src/plugins/scallop/obligationsFetcher.js +1 -1
  110. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  111. package/src/plugins/sharky/loansFetcher.js +5 -1
  112. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  113. package/src/plugins/solend/helpers.js +7 -1
  114. package/src/plugins/solend/helpers.js.map +1 -1
  115. package/src/plugins/suilend/obligationsFetcher.js +7 -1
  116. package/src/plugins/suilend/obligationsFetcher.js.map +1 -1
  117. package/src/plugins/thala/vaultsFetcher.js +1 -1
  118. package/src/plugins/thala/vaultsFetcher.js.map +1 -1
  119. package/src/plugins/zeta/airdropFetcher.d.ts +3 -0
  120. package/src/plugins/zeta/airdropFetcher.js +105 -0
  121. package/src/plugins/zeta/airdropFetcher.js.map +1 -0
  122. package/src/plugins/zeta/constants.d.ts +3 -0
  123. package/src/plugins/zeta/constants.js +4 -1
  124. package/src/plugins/zeta/constants.js.map +1 -1
  125. package/src/plugins/zeta/index.js +2 -1
  126. package/src/plugins/zeta/index.js.map +1 -1
  127. package/src/plugins/zeta/types.d.ts +14 -0
  128. package/src/plugins/zeta/types.js +3 -0
  129. package/src/plugins/zeta/types.js.map +1 -0
  130. package/src/plugins/banx/calculateLoanRepayValue.js.map +0 -1
  131. package/src/plugins/drift/deposits.js.map +0 -1
  132. /package/src/plugins/{drift/deposits.d.ts → allbridge/positionsFetcher.d.ts} +0 -0
@@ -0,0 +1,38 @@
1
+ export type UserDeposit = {
2
+ userAddress: string;
3
+ mint: string;
4
+ lpAmount: string;
5
+ rewardDebt: string;
6
+ };
7
+ export type Pools = {
8
+ bridgeAddress: string;
9
+ swapAddress: string;
10
+ tokens: TokenPool[];
11
+ };
12
+ export type TokenPool = {
13
+ apr: string;
14
+ apr7d: string;
15
+ apr30d: string;
16
+ cctpAddress: string;
17
+ cctpFeeShare: string;
18
+ decimals: number;
19
+ feeShare: string;
20
+ lpRate: string;
21
+ name: string;
22
+ poolAddress: string;
23
+ poolInfo: PoolInfo;
24
+ symbol: string;
25
+ tokenAddress: string;
26
+ };
27
+ export type PoolInfo = {
28
+ aValue: string;
29
+ accRewardPerShareP: string;
30
+ dValue: string;
31
+ p: number;
32
+ tokenBalance: string;
33
+ totalLpAmount: string;
34
+ vUsdBalance: string;
35
+ };
36
+ export type PoolsRes = {
37
+ SOL: Pools;
38
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/allbridge/types.ts"],"names":[],"mappings":""}
@@ -83,7 +83,12 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
83
83
  borrowedAssets.push((0, tokenPriceToAssetToken_1.default)(coinType, amount, portfolio_core_1.NetworkId.aptos, tokenPrices[address] || undefined));
84
84
  borrowedYields.push([]);
85
85
  }
86
- const { borrowedValue, healthRatio, suppliedValue, value, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets, suppliedLtvs);
86
+ const { borrowedValue, healthRatio, suppliedValue, value, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({
87
+ suppliedAssets,
88
+ borrowedAssets,
89
+ rewardAssets,
90
+ suppliedLtvs,
91
+ });
87
92
  const element = {
88
93
  type: portfolio_core_1.PortfolioElementType.borrowlend,
89
94
  networkId: portfolio_core_1.NetworkId.aptos,
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../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Aa,EAAE,KAAK,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EACrB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,CACb,CAAC;IAEJ,MAAM,OAAO,GAAqB;QAChC,IAAI,EAAE,qCAAoB,CAAC,UAAU;QACrC,SAAS,EAAE,0BAAS,CAAC,KAAK;QAC1B,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,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aptin/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gEAAqC;AAGrC,2CAMqB;AAOrB,qGAA6E;AAC7E,iDAAqD;AACrD,6CAA4E;AAE5E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAEhC,MAAM,aAAa,GAAG,MAAM,IAAA,0BAAkB,EAC5C,MAAM,EACN,KAAK,EACL,6BAAiB,CAClB,CAAC;IACF,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,CAAC;IAC9B,IACE,aAAa,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC;QACvC,aAAa,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC;QAEvC,OAAO,EAAE,CAAC;IAEZ,MAAM,YA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C5B,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -107,7 +107,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
107
107
  suppliedAssets.length === 0 &&
108
108
  rewardAssets.length === 0)
109
109
  continue;
110
- const { borrowedValue, suppliedValue, value, rewardValue, healthRatio } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets, suppliedLtvs, borrowedWeights);
110
+ const { borrowedValue, suppliedValue, value, rewardValue, healthRatio } = (0, portfolio_core_1.getElementLendingValues)({
111
+ suppliedAssets,
112
+ borrowedAssets,
113
+ rewardAssets,
114
+ suppliedLtvs,
115
+ borrowedWeights,
116
+ });
111
117
  elements.push({
112
118
  type: portfolio_core_1.PortfolioElementType.borrowlend,
113
119
  networkId: portfolio_core_1.NetworkId.aptos,
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aries/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAMqB;AAErB,uCAAuD;AACvD,qGAA6E;AAC7E,6CAAuD;AACvD,iDAAqD;AAErD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAEhC,kDAAkD;IAClD,MAAM,eAAe,GAAG,MAAM,IAAA,0BAAkB,EAC9C,MAAM,EACN,KAAK,EACL,+BAAmB,CACpB,CAAC;IACF,IAAI,CAAC,eAAe;QAAE,OAAO,EAAE,CAAC;IAChC,MAAM,iBAAiB,GAAG,eAAe,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAChE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CACvB,CAAC;IACF,IAAI,iBAAiB,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Ac;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aries/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAMqB;AAErB,uCAAuD;AACvD,qGAA6E;AAC7E,6CAAuD;AACvD,iDAAqD;AAErD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAEhC,kDAAkD;IAClD,MAAM,eAAe,GAAG,MAAM,IAAA,0BAAkB,EAC9C,MAAM,EACN,KAAK,EACL,+BAAmB,CACpB,CAAC;IACF,IAAI,CAAC,eAAe;QAAE,OAAO,EAAE,CAAC;IAChC,MAAM,iBAAiB,GAAG,eAAe,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAChE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CACvB,CAAC;IACF,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAC9C,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,GAAG,CACjC,iBAAiB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CACjC,IAAA,0BAAkB,EAAU,MAAM,EAAE,QAAQ,EAAE,uBAAW,CAAC,CAC3D,CACF,CAAC;IACF,MAAM,QAAQ,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AAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -2,3 +2,4 @@ import BigNumber from 'bignumber.js';
2
2
  import { ParsedAccount } from '../../utils/solana';
3
3
  import { BondTradeTransactionV3 } from './types';
4
4
  export declare const calculateLoanRepayValue: (acc: ParsedAccount<BondTradeTransactionV3>) => BigNumber;
5
+ export declare const calculateDebtValue: (acc: ParsedAccount<BondTradeTransactionV3>) => BigNumber;
@@ -3,7 +3,7 @@ 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.calculateLoanRepayValue = void 0;
6
+ exports.calculateDebtValue = exports.calculateLoanRepayValue = void 0;
7
7
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
8
8
  const BONDS = {
9
9
  PROGRAM_PUBKEY: '4tdmkuY6EStxbS6Y8s5ueznL3VPMSugrvQuDeAHGZhSt',
@@ -34,4 +34,31 @@ const calculateLoanRepayValue = (acc) => {
34
34
  return new bignumber_js_1.default(loanValue).plus(calculatedInterest);
35
35
  };
36
36
  exports.calculateLoanRepayValue = calculateLoanRepayValue;
37
- //# sourceMappingURL=calculateLoanRepayValue.js.map
37
+ const getInterestRepaid = (acc) => {
38
+ const currentLoanValue = Number(acc.solAmount) + Number(acc.feeAmount);
39
+ return new bignumber_js_1.default(acc.redeemedAt !== '0'
40
+ ? calculateCurrentInterestSolPure({
41
+ loanValue: currentLoanValue,
42
+ startTime: acc.soldAt,
43
+ currentTime: Number(acc.redeemedAt),
44
+ rateBasePoints: acc.amountOfBonds,
45
+ })
46
+ : 0);
47
+ };
48
+ const calculateDebtValue = (acc) => {
49
+ const loanValue = Number(acc.solAmount);
50
+ const calculatedInterest = calculateCurrentInterestSolPure({
51
+ loanValue,
52
+ startTime: Number(acc.soldAt),
53
+ currentTime: Date.now() / 1000,
54
+ rateBasePoints: Number(acc.amountOfBonds) + BONDS.PROTOCOL_REPAY_FEE,
55
+ });
56
+ const repaid = getInterestRepaid(acc);
57
+ const principal = new bignumber_js_1.default(acc.solAmount);
58
+ return principal
59
+ .minus(repaid.toNumber())
60
+ .plus(calculatedInterest)
61
+ .plus(Number(acc.feeAmount));
62
+ };
63
+ exports.calculateDebtValue = calculateDebtValue;
64
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAIrC,MAAM,KAAK,GAAG;IACZ,cAAc,EAAE,8CAA8C;IAC9D,YAAY,EAAE,6CAA6C;IAC3D,oBAAoB,EAAE,GAAG,EAAE,gBAAgB;IAC3C,kBAAkB,EAAE,GAAG,EAAE,gBAAgB;CAC1C,CAAC;AAEF,MAAM,OAAO,GAAG,GAAG,CAAC;AACpB,MAAM,eAAe,GAAG,QAAQ,CAAC;AACjC,MAAM,WAAW,GAAG,KAAK,CAAC;AAE1B,MAAM,MAAM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC;AAEvE,MAAM,MAAM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AAEvE,MAAM,gBAAgB,GAAG,CAAC,UAAkB,EAAE,EAAE,CAC9C,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,OAAO,CAAC,GAAG,WAAW,CAAC,CAAC;AAEnD,MAAM,+BAA+B,GAAG,CAAC,EACvC,SAAS,EACT,SAAS,EACT,WAAW,EACX,cAAc,GAMf,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,WAAW,GAAG,SAA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AC;AACJ,CAAC,CAAC;AAEK,MAAM,kBAAkB,GAAG,CAChC,GAA0C,EAC/B,EAAE;IACb,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAExC,MAAM,kBAAkB,GAAG,+BAA+B,CAAC;QACzD,SAAS;QACT,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;QAC7B,WAAW,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI;QAC9B,cAAc,EAAE,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,kBAAkB;KACrE,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAEtC,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAE/C,OAAO,SAAS;SACb,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;SACxB,IAAI,CAAC,kBAAkB,CAAC;SACxB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;AACjC,CAAC,CAAC;AApBW,QAAA,kBAAkB,sBAoB7B"}
@@ -22,7 +22,7 @@ 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
27
  const collections = new Map();
28
28
  let collectionLastUpdate = 0;
@@ -35,6 +35,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
35
35
  ]))
36
36
  .flat()
37
37
  .filter((acc) => acc.bondTradeTransactionState.perpetualActive ||
38
+ acc.bondTradeTransactionState.perpetualPartialRepaid ||
38
39
  acc.bondTradeTransactionState.perpetualRefinancedActive ||
39
40
  acc.bondTradeTransactionState.active);
40
41
  if (accounts.length === 0)
@@ -78,6 +79,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
78
79
  const bondOffer = bondOffersMap.get(acc.bondOffer);
79
80
  if (!fbondTokenMint || !bondOffer || !bondOffer.hadoMarket)
80
81
  return;
82
+ if (!fbondTokenMint.fraktBondState.perpetualActive &&
83
+ !fbondTokenMint.fraktBondState.active)
84
+ return;
81
85
  const collection = collections.get(bondOffer.hadoMarket);
82
86
  if (!collection)
83
87
  return;
@@ -106,13 +110,12 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
106
110
  });
107
111
  }
108
112
  }
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
113
  const name = `Active Loan`;
113
114
  if (acc.user === owner.toString()) {
114
115
  // LENDER
115
- suppliedAssets.push(solAsset);
116
+ suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPrice.address, (0, helpers_1.calculateLoanRepayValue)(acc)
117
+ .dividedBy(Math.pow(10, tokenPrice.decimals))
118
+ .toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
116
119
  if (mintAsset)
117
120
  borrowedAssets.push(mintAsset);
118
121
  }
@@ -120,10 +123,16 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
120
123
  // BORROWER
121
124
  if (mintAsset)
122
125
  suppliedAssets.push(mintAsset);
123
- borrowedAssets.push(solAsset);
126
+ borrowedAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPrice.address, (0, helpers_1.calculateDebtValue)(acc)
127
+ .dividedBy(Math.pow(10, tokenPrice.decimals))
128
+ .toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
124
129
  }
125
130
  if (suppliedAssets.length > 0) {
126
- const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, []);
131
+ const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({
132
+ suppliedAssets,
133
+ borrowedAssets,
134
+ rewardAssets: [],
135
+ });
127
136
  elements.push({
128
137
  networkId: portfolio_core_1.NetworkId.solana,
129
138
  label: 'Lending',
@@ -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,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;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IAAI,CAAC,QAAQ,CAAC,CAAC;YAC9B,IAAI,SAAS;gBAAE,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAChD,CAAC;aAAM,CAAC;YACN,WAAW;YACX,IAAI,SAAS;gBAAE,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC9C,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC;QAED,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,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;iBACrB;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/banx/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;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,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,WAAW,EAAE,GAC9D,IAAA,wCAAuB,EAAC;gBACtB,cAAc;gBACd,cAAc;gBACd,YAAY,EAAE,EAAE;aACjB,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,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;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"}
@@ -64,7 +64,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
64
64
  .dividedBy(Math.pow(10, tokenPrice.decimals))
65
65
  .toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
66
66
  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, []);
67
+ const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({
68
+ suppliedAssets,
69
+ borrowedAssets,
70
+ rewardAssets: [],
71
+ });
68
72
  if (suppliedValue && suppliedValue > 0)
69
73
  elements.push({
70
74
  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;IAErC,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACjD,CAAC,uBAAc,EAAE,oCAAmB,CAAC,EACrC,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,IAAI,oBA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,MAAM,IAAI,GAAG,GACX,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC,EACpE,aAAa,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,OACvD,UAAU,CAAC,cACb,EAAE,CAAC;QAEH,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,GAC9D,IAAA,wCAAuB,EAAC,cAAc,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC;QAE9D,IAAI,aAAa,IAAI,aAAa,GAAG,CAAC;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"}
1
+ {"version":3,"file":"offersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/offersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAO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SACjB,CAAC,CAAC;QAEL,IAAI,aAAa,IAAI,aAAa,GAAG,CAAC;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","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,GAAG,MAAM,KAAK,CAAC,aAAa,CAC1C,UAAU,CAAC,OAAO,EAClB,0BAAS,CAAC,GAAG,CACd,CAAC;QACF,IAAI,CAAC,UAAU;YAAE,SAAS;QAE1B,MAAM,cAAc,GAClB,MAAA,YAAY,CAAC,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,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
+ {"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,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,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,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"}
@@ -115,7 +115,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
115
115
  }
116
116
  }
117
117
  if (suppliedAssets.length > 0) {
118
- const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, []);
118
+ const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({
119
+ suppliedAssets,
120
+ borrowedAssets,
121
+ rewardAssets: [],
122
+ });
119
123
  elements.push({
120
124
  networkId: portfolio_core_1.NetworkId.solana,
121
125
  label: 'Lending',
@@ -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;A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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"}
@@ -57,7 +57,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 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,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,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACpD,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,uBAAc,CAAC,EACpE,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,cAAc,GAAG,cAAc,CAAC,GAAG,CAAC,uBAAc,CAAC,CAAC;IAE1D,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAEvC,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,EACJ,gBAAgB,EA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AE,EAAE,CAAC;YACrB,cAAc,CAAC,IAAI,CACjB,IAAA,gCAAsB,EACpB,UAAU,CAAC,OAAO,EAClB,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EACtD,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CACF,CAAC;QACJ,CAAC;IACH,CAAC;IACD,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/D,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC,cAAc,EAAE,cAAc,EAAE,YAAY,CAAC,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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EAAE,EACtD,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CACF,CAAC;QACJ,CAAC;IACH,CAAC;IACD,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/D,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,CAAC;QAE5E,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"}
@@ -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,KAAsB,CAAC;QAEvC,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO,CAAmB,4BAAgB,EAAE;YACtE,MAAM,EAAE,UAAU;YAClB,SAAS;SACV,CAAC,CAAC;QACH,IAAI,CAAC,OAAO;YAAE,OAAO,EAAE,CAAC;QAExB,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5D,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,cAAc,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;QAC3E,MAAM,cAAc,GAA4B,IAAI,GAAG,EAAE,CAAC;QAC1D,YAAY,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAC1B,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAC7C,CAAC;QAEF,MAAM,CAAC,WAAW,EAAE,gBAAgB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YACxD,MAAM,CAAC,SAAS,CAAC;gBACf,S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,MAAM,CAAC,QAAQ,EAAE,CAAC;qBAC3C,SAAS,CAAC,SAAA,EAAE,EAAI,SAAS,CAAA,CAAC;qBAC1B,QAAQ,EAAE,EACb,SAAS,EACT,UAAU,CACX,CACF,CACF,CAAC;gBACF,MAAM,SAAS,GACb,MAAM,CAAC,kBAAkB,IAAI,MAAM,CAAC,sBAAsB,CAAC;gBAC7D,IAAI,SAAS,EAAE,CAAC;oBACd,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,IAAA,yBAAQ,EAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;gBACxE,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,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":";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AC;gBACF,MAAM,SAAS,GACb,MAAM,CAAC,kBAAkB,IAAI,MAAM,CAAC,sBAAsB,CAAC;gBAC7D,IAAI,SAAS,EAAE,CAAC;oBACd,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,IAAA,yBAAQ,EAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;gBACxE,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,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,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,CAAC;QAC5E,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"}
@@ -120,7 +120,11 @@ function getPositionsV3Fetcher(networkId) {
120
120
  suppliedAssets.length === 0 &&
121
121
  rewardAssets.length === 0)
122
122
  continue;
123
- const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets);
123
+ const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({
124
+ suppliedAssets,
125
+ borrowedAssets,
126
+ rewardAssets,
127
+ });
124
128
  elements.push({
125
129
  type: portfolio_core_1.PortfolioElementType.borrowlend,
126
130
  networkId,
@@ -1 +1 @@
1
- {"version":3,"file":"getPositionsV3Fetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/getPositionsV3Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAErC,2CAIqB;AAErB,iDAAmD;AACnD,iCAAmC;AAEnC,0DAAwD;AACxD,qGAA6E;AAC7E,uDAA6D;AAE7D,SAAwB,qBAAqB,CAC3C,SAA2B;IAE3B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,OAAO,GAAG,yBAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO;YAAE,OAAO,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,SAAS,CAAC,CAAC;QAEvC,SAAS;QACT,MAAM,uBAAuB,GAAG,OAAO;aACpC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACT,CAAC,CAAC,MAAM,CAAC,GAAG,CACV,CAAC,KAAK,EAAE,EAAE,CACR,CAAC;YACC,GAAG,EAAE,gBAAS;YACd,OAAO,EAAE,CAAC,CAAC,YAAY;YACvB,YAAY,EAAE,gBAAgB;YAC9B,IAAI,EAAE,CAAC,KAAsB,EAAE,KAAK,CAAC,OAAO,CAAC;SACpC,CAAA,CACd,CACF;aACA,IAAI,EAAE,CAAC;QAEV,MAAM,2BAA2B,GAAG,OAAO,CAAC,GAAG,CAC7C,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC;YACC,GAAG,EAAE,4BAAiB;YACtB,YAAY,EAAE,WAAW;YACzB,OAAO,EAAE,CAAC,CAAC,YAAY;YACvB,IAAI,EAAE,CAAC,KAAsB,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oBACjB,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;oBAC/B,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAC1B,CAAC;YACH,CAAC;YAED,IACE,cAAc,CAAC,MAAM,KAAK,CAAC;gBAC3B,cAAc,CAAC,MAAM,KAAK,CAAC;gBAC3B,YAAY,CAAC,MAAM,KAAK,CAAC;gBAEzB,SAAS;YACX,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC,cAAc,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;YACxE,QAAQ,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;gBACrC,SAAS;gBACT,UAAU,EAAV,sBAAU;gBACV,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,aAAa;gBACnB,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,CAAC,CAAC;QACL,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,GAAG,sBAAU,IAAI,SAAS,eAAe;QAC7C,SAAS;QACT,QAAQ;KACT,CAAC;AACJ,CAAC;AAxLD,wCAwLC"}
1
+ {"version":3,"file":"getPositionsV3Fetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/getPositionsV3Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAErC,2CAIqB;AAErB,iDAAmD;AACnD,iCAAmC;AAEnC,0DAAwD;AACxD,qGAA6E;AAC7E,uDAA6D;AAE7D,SAAwB,qBAAqB,CAC3C,SAA2B;IAE3B,MAAM,QAAQ,GAAoB,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AE,qCAAoB,CAAC,UAAU;gBACrC,SAAS;gBACT,UAAU,EAAV,sBAAU;gBACV,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,aAAa;gBACnB,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,CAAC,CAAC;QACL,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,GAAG,sBAAU,IAAI,SAAS,eAAe;QAC7C,SAAS;QACT,QAAQ;KACT,CAAC;AACJ,CAAC;AA5LD,wCA4LC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -133,15 +133,15 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
133
133
  .toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
134
134
  borrowedYields.push([
135
135
  {
136
- apr: spotMarket.borrowApr,
137
- apy: (0, portfolio_core_1.aprToApy)(spotMarket.borrowApr),
136
+ apr: -spotMarket.borrowApr,
137
+ apy: -(0, portfolio_core_1.aprToApy)(spotMarket.borrowApr),
138
138
  },
139
139
  ]);
140
140
  }
141
141
  }
142
142
  if (suppliedAssets.length === 0 && borrowedAssets.length === 0)
143
143
  continue;
144
- const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets);
144
+ const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({ suppliedAssets, borrowedAssets, rewardAssets });
145
145
  elements.push({
146
146
  type: portfolio_core_1.PortfolioElementType.borrowlend,
147
147
  networkId: portfolio_core_1.NetworkId.solana,
@@ -171,4 +171,4 @@ const fetcher = {
171
171
  executor,
172
172
  };
173
173
  exports.default = fetcher;
174
- //# sourceMappingURL=deposits.js.map
174
+ //# sourceMappingURL=depositsFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,2CAA0E;AAC1E,qCAIkB;AAClB,uCAMmB;AAEnB,+CAG4B;AAC5B,iDAAsD;AACtD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,WAAW,CAAqB;QACnE,MAAM,EAAE,6BAAiB;QACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IAEH,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE7C,MAAM,iBAAiB,GAAoC,IAAI,GAAG,EAAE,CAAC;IACrE,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,MAAM,mCAAmC,GAAgB,EAAE,CAAC;IAC5D,KAAK,MAAM,cAAc,IAAI,gBAAgB,EAAE,CAAC;QAC9C,mCAAmC,CAAC,cAAc,CAAC,WAAW,CAAC;YAC7D,IAAA,mDAAyC,EACvC,wBAAY,EACZ,IAAI,mBAAS,CAAC,KAAK,CAAC,EACpB,cAAc,CAAC,WAAW,CAC3B,CAAC;QACJ,iBAAiB,CAAC,GAAG,CAAC,cAAc,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;QAClE,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnD,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,cAA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AoB,CAAC,UAAU;YACrC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,YAAY;gBACZ,WAAW;gBACX,WAAW;gBACX,KAAK;aACN;YACD,IAAI,EAAE,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC;SACxC,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"}
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.airdropFetcher = exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const spotMarketsJob_1 = __importDefault(require("./spotMarketsJob"));
9
- const deposits_1 = __importDefault(require("./deposits"));
9
+ const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
10
10
  const premarketJob_1 = __importDefault(require("./premarketJob"));
11
11
  const airdropFetcher_1 = __importDefault(require("./airdropFetcher"));
12
12
  exports.platforms = [constants_1.platform];
13
13
  exports.jobs = [spotMarketsJob_1.default, premarketJob_1.default];
14
- exports.fetchers = [deposits_1.default, airdropFetcher_1.default];
14
+ exports.fetchers = [depositsFetcher_1.default, airdropFetcher_1.default];
15
15
  var helpersAirdrop_1 = require("./helpersAirdrop");
16
16
  Object.defineProperty(exports, "airdropFetcher", { enumerable: true, get: function () { return helpersAirdrop_1.airdropFetcher; } });
17
17
  //# 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,0DAA8C;AAC9C,kEAA0C;AAC1C,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,wBAAc,EAAE,sBAAY,CAAC,CAAC;AAC7C,QAAA,QAAQ,GAAc,CAAC,kBAAoB,EAAE,wBAAc,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":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAC9C,wEAAgD;AAChD,kEAA0C;AAC1C,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,wBAAc,EAAE,sBAAY,CAAC,CAAC;AAC7C,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,wBAAc,CAAC,CAAC;AACrE,mDAAkD;AAAzC,gHAAA,cAAc,OAAA"}
@@ -130,7 +130,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
130
130
  // });
131
131
  if (suppliedAssets.length === 0 && borrowedAssets.length === 0)
132
132
  continue;
133
- const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets);
133
+ const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({ suppliedAssets, borrowedAssets, rewardAssets });
134
134
  const value = collateralUsd.dividedBy(usdFactor).plus(pnl).toNumber();
135
135
  const side = isLong ? 'Long' : 'Short';
136
136
  elements.push({
@@ -1 +1 @@
1
- {"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/perpetualFetcher.ts"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,SAAS,EAAE,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,+DAQoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,2CAA+D;AAC/D,iDAAsD;AACtD,+CAA8D;AAC9D,6DAAqE;AACrE,mDAA8D;AAC9D,uCAAsD;AACtD,uCAA2C;AAE3C,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,OAAO,EAAE,CAAC;IAE7B,MAAM,cAAc,GAAgB,EAAE,CAAC;IACvC,MAAM,UAAU,GAA4B,IAAI,GAAG,EAAE,CAAC;IACtD,YAAY,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QAC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