@sonarwatch/portfolio-plugins 0.14.127 → 0.14.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/CHANGELOG.md +2124 -2110
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.d.ts +1 -0
  5. package/src/index.js +8 -1
  6. package/src/index.js.map +1 -1
  7. package/src/plugins/adrena/positionsFetcher.js +1 -0
  8. package/src/plugins/adrena/positionsFetcher.js.map +1 -1
  9. package/src/plugins/allbridge/positionsFetcher.js +9 -1
  10. package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
  11. package/src/plugins/armada-staking/stakingFetcher.js +4 -1
  12. package/src/plugins/armada-staking/stakingFetcher.js.map +1 -1
  13. package/src/plugins/aurory/stakingFetcher.js +5 -1
  14. package/src/plugins/aurory/stakingFetcher.js.map +1 -1
  15. package/src/plugins/balancer/helpers/pools.js +21 -21
  16. package/src/plugins/bonfida/offersFetcher.js +30 -37
  17. package/src/plugins/bonfida/offersFetcher.js.map +1 -1
  18. package/src/plugins/bonkrewards/positionFetcher.js +16 -22
  19. package/src/plugins/bonkrewards/positionFetcher.js.map +1 -1
  20. package/src/plugins/cyberfrogs/thorDepositFetcher.js +2 -0
  21. package/src/plugins/cyberfrogs/thorDepositFetcher.js.map +1 -1
  22. package/src/plugins/daos/realmsDepositsFetcher.js +29 -43
  23. package/src/plugins/daos/realmsDepositsFetcher.js.map +1 -1
  24. package/src/plugins/debridge/dlmmVaultsFetcher.js +16 -10
  25. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
  26. package/src/plugins/defiland/stakingFetcher.js +8 -1
  27. package/src/plugins/defiland/stakingFetcher.js.map +1 -1
  28. package/src/plugins/defituna/lendingFetcher.js +3 -0
  29. package/src/plugins/defituna/lendingFetcher.js.map +1 -1
  30. package/src/plugins/defituna/positionsFetcher.js +7 -1
  31. package/src/plugins/defituna/positionsFetcher.js.map +1 -1
  32. package/src/plugins/defituna/structs.d.ts +1 -0
  33. package/src/plugins/defituna/structs.js.map +1 -1
  34. package/src/plugins/divvy/constants.d.ts +1 -0
  35. package/src/plugins/divvy/constants.js +2 -1
  36. package/src/plugins/divvy/constants.js.map +1 -1
  37. package/src/plugins/divvy/housePoolFetcher.js +3 -0
  38. package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
  39. package/src/plugins/divvy/stakingFetcher.js +3 -1
  40. package/src/plugins/divvy/stakingFetcher.js.map +1 -1
  41. package/src/plugins/drift/depositsFetcher.js +15 -0
  42. package/src/plugins/drift/depositsFetcher.js.map +1 -1
  43. package/src/plugins/drift-market-maker-vault/depositsFetcher.js +2 -1
  44. package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
  45. package/src/plugins/drift-market-maker-vault/index.js +5 -2
  46. package/src/plugins/drift-market-maker-vault/index.js.map +1 -1
  47. package/src/plugins/elemental/depositFetcher.js +3 -0
  48. package/src/plugins/elemental/depositFetcher.js.map +1 -1
  49. package/src/plugins/ensofi/solanaLoansFetcher.js +6 -0
  50. package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
  51. package/src/plugins/exponent/liquidityFetcher.js +1 -0
  52. package/src/plugins/exponent/liquidityFetcher.js.map +1 -1
  53. package/src/plugins/exponent/tradeFetcher.js +1 -0
  54. package/src/plugins/exponent/tradeFetcher.js.map +1 -1
  55. package/src/plugins/famousfoxfederation/stakingFetcher.js +18 -22
  56. package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -1
  57. package/src/plugins/flash/perpetualFetcher.js +1 -1
  58. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  59. package/src/plugins/fragmetric/pricingJob.js +6 -0
  60. package/src/plugins/fragmetric/pricingJob.js.map +1 -1
  61. package/src/plugins/francium/lendingFetcher.js +1 -0
  62. package/src/plugins/francium/lendingFetcher.js.map +1 -1
  63. package/src/plugins/futarchy/daosJob.js +9 -0
  64. package/src/plugins/futarchy/daosJob.js.map +1 -1
  65. package/src/plugins/genesysgo/stakingFetcher.js +12 -25
  66. package/src/plugins/genesysgo/stakingFetcher.js.map +1 -1
  67. package/src/plugins/goosefx/stakingFetcher.js +18 -27
  68. package/src/plugins/goosefx/stakingFetcher.js.map +1 -1
  69. package/src/plugins/gpool/stakingFetcher.js +5 -1
  70. package/src/plugins/gpool/stakingFetcher.js.map +1 -1
  71. package/src/plugins/guano/constants.d.ts +8 -0
  72. package/src/plugins/guano/constants.js +15 -0
  73. package/src/plugins/guano/constants.js.map +1 -0
  74. package/src/plugins/guano/filters.d.ts +20 -0
  75. package/src/plugins/guano/filters.js +41 -0
  76. package/src/plugins/guano/filters.js.map +1 -0
  77. package/src/plugins/guano/index.d.ts +6 -0
  78. package/src/plugins/guano/index.js +10 -0
  79. package/src/plugins/guano/index.js.map +1 -0
  80. package/src/plugins/guano/stakingFetcher.d.ts +3 -0
  81. package/src/plugins/guano/stakingFetcher.js +70 -0
  82. package/src/plugins/guano/stakingFetcher.js.map +1 -0
  83. package/src/plugins/guano/structs.d.ts +34 -0
  84. package/src/plugins/guano/structs.js +33 -0
  85. package/src/plugins/guano/structs.js.map +1 -0
  86. package/src/plugins/guano/types.d.ts +15 -0
  87. package/src/plugins/guano/types.js +3 -0
  88. package/src/plugins/guano/types.js.map +1 -0
  89. package/src/plugins/hedgehog/ammJob.js +8 -0
  90. package/src/plugins/hedgehog/ammJob.js.map +1 -1
  91. package/src/plugins/hxro/stakingFetcher.js +2 -0
  92. package/src/plugins/hxro/stakingFetcher.js.map +1 -1
  93. package/src/plugins/iloop/depositsFetcher.js +8 -0
  94. package/src/plugins/iloop/depositsFetcher.js.map +1 -1
  95. package/src/plugins/jupiter/exchange/dcaFetcher.js +5 -1
  96. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  97. package/src/plugins/jupiter/exchange/limitFetcher.js +2 -0
  98. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
  99. package/src/plugins/jupiter/exchange/valueAverageFetcher.js +1 -0
  100. package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
  101. package/src/plugins/kamino/lendsFetcher.js +6 -0
  102. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  103. package/src/plugins/kamino/ordersFetcher.js +2 -0
  104. package/src/plugins/kamino/ordersFetcher.js.map +1 -1
  105. package/src/plugins/layer3/stakingFetcher.js +1 -0
  106. package/src/plugins/layer3/stakingFetcher.js.map +1 -1
  107. package/src/plugins/lifinity/lockerFetcher.js +14 -17
  108. package/src/plugins/lifinity/lockerFetcher.js.map +1 -1
  109. package/src/plugins/loverflow/airdropClaimFetcher.js +1 -0
  110. package/src/plugins/loverflow/airdropClaimFetcher.js.map +1 -1
  111. package/src/plugins/magiceden/escrowFetcher.js +12 -18
  112. package/src/plugins/magiceden/escrowFetcher.js.map +1 -1
  113. package/src/plugins/marginfi/helpers.d.ts +2 -1
  114. package/src/plugins/marginfi/helpers.js +8 -2
  115. package/src/plugins/marginfi/helpers.js.map +1 -1
  116. package/src/plugins/marinade/ticketsFetcher.js +14 -31
  117. package/src/plugins/marinade/ticketsFetcher.js.map +1 -1
  118. package/src/plugins/metaplex/resizableNftFetcher.js +1 -0
  119. package/src/plugins/metaplex/resizableNftFetcher.js.map +1 -1
  120. package/src/plugins/nxfinance/positionsFetcher.js +19 -2
  121. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  122. package/src/plugins/orca/getWhirlpoolPositions.js +10 -1
  123. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  124. package/src/plugins/parcl/depositsFetcher.js +1 -1
  125. package/src/plugins/parcl/depositsFetcher.js.map +1 -1
  126. package/src/plugins/parcl/marginFetcher.js +1 -1
  127. package/src/plugins/parcl/marginFetcher.js.map +1 -1
  128. package/src/plugins/parcl/stakingFetcher.js +6 -3
  129. package/src/plugins/parcl/stakingFetcher.js.map +1 -1
  130. package/src/plugins/photofinish/stakingFetcher.js +6 -1
  131. package/src/plugins/photofinish/stakingFetcher.js.map +1 -1
  132. package/src/plugins/picasso/unstakingPositionsFetcher.js +3 -2
  133. package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
  134. package/src/plugins/pluto/earnFetcher.js +1 -1
  135. package/src/plugins/pluto/earnFetcher.js.map +1 -1
  136. package/src/plugins/pluto/leverageFetcher.js +37 -26
  137. package/src/plugins/pluto/leverageFetcher.js.map +1 -1
  138. package/src/plugins/pluto/structs.d.ts +0 -2
  139. package/src/plugins/pluto/structs.js +0 -2
  140. package/src/plugins/pluto/structs.js.map +1 -1
  141. package/src/plugins/quarry/calculatePositions.js +7 -1
  142. package/src/plugins/quarry/calculatePositions.js.map +1 -1
  143. package/src/plugins/quarry/positionsFetcher.js +2 -0
  144. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  145. package/src/plugins/quarry/types.d.ts +3 -0
  146. package/src/plugins/ratex/positionsFetcher.js +2 -0
  147. package/src/plugins/ratex/positionsFetcher.js.map +1 -1
  148. package/src/plugins/saber/lpTokensJob.js +1 -0
  149. package/src/plugins/saber/lpTokensJob.js.map +1 -1
  150. package/src/plugins/sandglass/depositFetcher.js +3 -0
  151. package/src/plugins/sandglass/depositFetcher.js.map +1 -1
  152. package/src/plugins/sharky/loansFetcher.js +1 -0
  153. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  154. package/src/plugins/solayer/airdropFetcher.d.ts +3 -0
  155. package/src/plugins/solayer/airdropFetcher.js +55 -0
  156. package/src/plugins/solayer/airdropFetcher.js.map +1 -0
  157. package/src/plugins/solayer/constants.d.ts +5 -0
  158. package/src/plugins/solayer/constants.js +13 -1
  159. package/src/plugins/solayer/constants.js.map +1 -1
  160. package/src/plugins/solayer/index.d.ts +2 -0
  161. package/src/plugins/solayer/index.js +4 -2
  162. package/src/plugins/solayer/index.js.map +1 -1
  163. package/src/plugins/solayer/proofsFetcher.js +7 -6
  164. package/src/plugins/solayer/proofsFetcher.js.map +1 -1
  165. package/src/plugins/solayer/types.d.ts +8 -0
  166. package/src/plugins/solayer/types.js +3 -0
  167. package/src/plugins/solayer/types.js.map +1 -0
  168. package/src/plugins/spdr/stakingFetcher.js +3 -0
  169. package/src/plugins/spdr/stakingFetcher.js.map +1 -1
  170. package/src/plugins/stabble/poolsJob.js +1 -0
  171. package/src/plugins/stabble/poolsJob.js.map +1 -1
  172. package/src/plugins/staratlas/lockersFetcher.js +2 -0
  173. package/src/plugins/staratlas/lockersFetcher.js.map +1 -1
  174. package/src/plugins/staratlas/stakingFetcher.js +2 -1
  175. package/src/plugins/staratlas/stakingFetcher.js.map +1 -1
  176. package/src/plugins/streamflow/vestingFetcher.js +1 -1
  177. package/src/plugins/streamflow/vestingFetcher.js.map +1 -1
  178. package/src/plugins/sushiswap/helpers.js +24 -24
  179. package/src/plugins/tensor/bidsFetcher.js +1 -1
  180. package/src/plugins/tensor/bidsFetcher.js.map +1 -1
  181. package/src/plugins/texture/loansFetcher.js +2 -1
  182. package/src/plugins/texture/loansFetcher.js.map +1 -1
  183. package/src/plugins/tokens/fetchers/solana-simple.d.ts +3 -0
  184. package/src/plugins/tokens/fetchers/solana-simple.js +66 -0
  185. package/src/plugins/tokens/fetchers/solana-simple.js.map +1 -0
  186. package/src/plugins/tokens/getTokenListsJob.js +1 -1
  187. package/src/plugins/tokens/getTokenListsJob.js.map +1 -1
  188. package/src/plugins/tokens/index.d.ts +2 -0
  189. package/src/plugins/tokens/index.js +3 -1
  190. package/src/plugins/tokens/index.js.map +1 -1
  191. package/src/plugins/tulip/depositsFetcher.js +3 -1
  192. package/src/plugins/tulip/depositsFetcher.js.map +1 -1
  193. package/src/plugins/uniswap-v2/helpers.js +22 -22
  194. package/src/plugins/uxd/stakingFetcher.js +4 -3
  195. package/src/plugins/uxd/stakingFetcher.js.map +1 -1
  196. package/src/plugins/vaultka/lendingFetcher.js +5 -0
  197. package/src/plugins/vaultka/lendingFetcher.js.map +1 -1
  198. package/src/plugins/vaultka/strategyFetcher.js +3 -0
  199. package/src/plugins/vaultka/strategyFetcher.js.map +1 -1
  200. package/src/plugins/whalesmarket/depositFetcher.js +7 -5
  201. package/src/plugins/whalesmarket/depositFetcher.js.map +1 -1
  202. package/src/plugins/zelo/positionsFetcher.js +2 -0
  203. package/src/plugins/zelo/positionsFetcher.js.map +1 -1
  204. package/src/plugins/zeta/airdropFetcher.js +14 -14
  205. package/src/plugins/zeta/depositsFetcher.js +5 -1
  206. package/src/plugins/zeta/depositsFetcher.js.map +1 -1
  207. package/src/utils/sei/constants.js +8 -8
  208. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -8,8 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
13
17
  const constants_1 = require("./constants");
14
18
  const clients_1 = require("../../utils/clients");
15
19
  const helper_1 = require("./helper");
@@ -30,7 +34,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
30
34
  return [];
31
35
  const vaults = yield leverageVaultsMemo.getItem(cache);
32
36
  if (!vaults.length)
33
- return [];
37
+ throw new Error('Vaults not cached');
34
38
  // used only for vault name, non necessary
35
39
  const vaultsApi = yield leverageVaultsApiMemo.getItem(cache);
36
40
  const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
@@ -39,43 +43,50 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
39
43
  if (!vault)
40
44
  return;
41
45
  const vaultFromApi = vaultsApi.find((v) => v.leverageVault === vault.pubkey.toString());
42
- const element = elementRegistry.addElementBorrowlend({
43
- name: `Leverage ${vaultFromApi ? vaultFromApi.leverageName.replace('-', '/') : ''}`,
44
- label: 'Leverage',
45
- ref: acc.pubkey,
46
- sourceRefs: [
47
- {
48
- name: 'Vault',
49
- address: vault.pubkey.toString(),
50
- },
51
- ],
52
- link: 'https://app.pluto.so/leverage',
53
- });
54
- for (const position of acc.positions) {
55
- if (position.unit.toString() === '0') {
56
- continue;
46
+ acc.positions.forEach((position) => {
47
+ if (position.unit.isZero()) {
48
+ return;
57
49
  }
58
- const amount = position.token_collateral_amount
59
- .shiftedBy(-vault.tokenCollateralTokenDecimal)
50
+ const amount = position.unit
51
+ .shiftedBy(-8)
52
+ .multipliedBy(new bignumber_js_1.default(vault.index).shiftedBy(-12));
53
+ const apy = new bignumber_js_1.default(vault.apy.ema7d).shiftedBy(-5).toNumber();
54
+ const borrowingUnit = position.borrowing_unit.shiftedBy(-8);
55
+ const borrowingIndex = new bignumber_js_1.default(vault.borrowingIndex).shiftedBy(-12);
56
+ const borrowingAmount = borrowingUnit.multipliedBy(borrowingIndex);
57
+ const borrowingApy = new bignumber_js_1.default(vault.borrowingApy.ema7d)
58
+ .shiftedBy(-5)
60
59
  .toNumber();
60
+ const tokenCollateralAmount = position.token_collateral_amount.shiftedBy(-vault.tokenCollateralTokenDecimal);
61
+ const tokenCollateralPrice = position.token_collateral_price.shiftedBy(-position.token_collateral_price_exponent);
62
+ const borrowAmount = borrowingUnit.multipliedBy(position.avg_borrowing_index.shiftedBy(-12));
63
+ const borrowUSD = borrowAmount.multipliedBy(tokenCollateralPrice);
64
+ const openLV = borrowUSD.dividedBy(tokenCollateralAmount).plus(1);
65
+ const element = elementRegistry.addElementBorrowlend({
66
+ name: `Leverage ${vaultFromApi ? vaultFromApi.leverageName.replace('-', '/') : ''} ${parseFloat(openLV.toFixed(2))}x`,
67
+ label: 'Leverage',
68
+ ref: acc.pubkey,
69
+ sourceRefs: [
70
+ {
71
+ name: 'Vault',
72
+ address: vault.pubkey.toString(),
73
+ },
74
+ ],
75
+ link: 'https://app.pluto.so/leverage',
76
+ });
61
77
  element.addSuppliedAsset({
62
- address: vault.tokenCollateralTokenMint.toString(),
78
+ address: vault.nativeCollateralTokenMint,
63
79
  amount,
64
80
  alreadyShifted: true,
65
81
  });
66
- const apy = Number(vault.apy.ema7d / 1e5);
67
82
  element.addSuppliedYield([
68
83
  {
69
84
  apy,
70
85
  apr: (0, portfolio_core_1.apyToApr)(apy),
71
86
  },
72
87
  ]);
73
- const borrowingUnit = position.borrowing_unit.toNumber() / 1e8;
74
- const borrowingIndex = vault.borrowingIndex / 1e12;
75
- const borrowingAmount = borrowingUnit * borrowingIndex;
76
- const borrowingApy = Number(vault.borrowingApy.ema7d / 1e5);
77
88
  element.addBorrowedAsset({
78
- address: vault.tokenCollateralTokenMint.toString(),
89
+ address: vault.tokenCollateralTokenMint,
79
90
  amount: borrowingAmount,
80
91
  alreadyShifted: true,
81
92
  });
@@ -85,7 +96,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
85
96
  apr: (0, portfolio_core_1.apyToApr)(borrowingApy),
86
97
  },
87
98
  ]);
88
- }
99
+ });
89
100
  });
90
101
  return elementRegistry.getElements(cache);
91
102
  });
@@ -1 +1 @@
1
- {"version":3,"file":"leverageFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pluto/leverageFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAiE;AAEjE,2CAIqB;AACrB,iDAAsD;AAEtD,qCAAkD;AAClD,kEAA+D;AAG/D,gFAA6E;AAG7E,MAAM,kBAAkB,GAAG,IAAI,6BAAa,CAC1C,6BAAiB,EACjB;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CACF,CAAC;AAEF,MAAM,qBAAqB,GAAG,IAAI,6BAAa,CAC7C,gCAAoB,EACpB;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CACF,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KA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CAAC,gBAAgB,CAAC;gBACvB;oBACE,GAAG,EAAE,YAAY;oBACjB,GAAG,EAAE,IAAA,yBAAQ,EAAC,YAAY,CAAC;iBAC5B;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"leverageFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pluto/leverageFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AAErC,2CAIqB;AACrB,iDAAsD;AAEtD,qCAAkD;AAClD,kEAA+D;AAG/D,gFAA6E;AAG7E,MAAM,kBAAkB,GAAG,IAAI,6BAAa,CAC1C,6BAAiB,EACjB;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CACF,CAAC;AAEF,MAAM,qBAAqB,GAAG,IAAI,6BAAa,CAC7C,gCAAoB,EACpB;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CACF,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,+BAAsB,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC7D,IAAI,CAAC,QAAQ,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEhC,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC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M,CAAC,QAAQ,EAAE;qBACjC;iBACF;gBACD,IAAI,EAAE,+BAA+B;aACtC,CAAC,CAAC;YAEH,OAAO,CAAC,gBAAgB,CAAC;gBACvB,OAAO,EAAE,KAAK,CAAC,yBAAyB;gBACxC,MAAM;gBACN,cAAc,EAAE,IAAI;aACrB,CAAC,CAAC;YAEH,OAAO,CAAC,gBAAgB,CAAC;gBACvB;oBACE,GAAG;oBACH,GAAG,EAAE,IAAA,yBAAQ,EAAC,GAAG,CAAC;iBACnB;aACF,CAAC,CAAC;YAEH,OAAO,CAAC,gBAAgB,CAAC;gBACvB,OAAO,EAAE,KAAK,CAAC,wBAAwB;gBACvC,MAAM,EAAE,eAAe;gBACvB,cAAc,EAAE,IAAI;aACrB,CAAC,CAAC;YAEH,OAAO,CAAC,gBAAgB,CAAC;gBACvB;oBACE,GAAG,EAAE,YAAY;oBACjB,GAAG,EAAE,IAAA,yBAAQ,EAAC,YAAY,CAAC;iBAC5B;aACF,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -19,8 +19,6 @@ interface Rate {
19
19
  ema90d: number;
20
20
  ema180d: number;
21
21
  ema365d: number;
22
- align2: number[];
23
- padding1: number[];
24
22
  }
25
23
  export declare const vaultEarnBeet: BeetStruct<VaultEarn, Partial<VaultEarn>>;
26
24
  export interface VaultEarn {
@@ -19,8 +19,6 @@ const rateBeet = new beet_1.BeetStruct([
19
19
  ['ema90d', beet_1.u32],
20
20
  ['ema180d', beet_1.u32],
21
21
  ['ema365d', beet_1.u32],
22
- ['align2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 4)],
23
- ['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u32, 10)], // array of 64 u64, 64 * 8 = 512 bytes
24
22
  ], (args) => args);
25
23
  // Define the VaultEarn struct using BeetStruct
26
24
  exports.vaultEarnBeet = new beet_1.BeetStruct([
@@ -1 +1 @@
1
- {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pluto/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,+CAAoD,CAAC,mCAAmC;AAExF,MAAM,QAAQ,GAAG,IAAI,iBAAU,CAC7B;IACE,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,WAAW,EAAE,UAAG,CAAC;IAClB,CAAC,QAAQ,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACxC,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,WAAW,EAAE,UAAG,CAAC;IAClB,CAAC,QAAQ,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACxC,CAAC,mBAAmB,EAAE,YAAG,CAAC;IAC1B,CAAC,OAAO,EAAE,UAAG,CAAC;IACd,CAAC,OAAO,EAAE,UAAG,CAAC;IACd,CAAC,QAAQ,EAAE,UAAG,CAAC;IACf,CAAC,QAAQ,EAAE,UAAG,CAAC;IACf,CAAC,QAAQ,EAAE,UAAG,CAAC;IACf,CAAC,SAAS,EAAE,UAAG,CAAC;IAChB,CAAC,SAAS,EAAE,UAAG,CAAC;IAChB,CAAC,QAAQ,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACxC,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,UAAG,EAAE,EAAE,CAAC,CAAC,EAAE,sCAAsC;CACrF,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC;AAqBF,+CAA+C;AAClC,QAAA,aAA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W,QAAA,sBAAsB,GAAG,IAAI,iBAAU,CAClD;IACE,CAAC,eAAe,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC/C,CAAC,gBAAgB,EAAE,WAAI,CAAC,EAAE,iBAAiB;IAC3C,CAAC,SAAS,EAAE,SAAE,CAAC,EAAE,eAAe;IAChC,CAAC,MAAM,EAAE,SAAE,CAAC,EAAE,eAAe;IAC7B,CAAC,OAAO,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC,EAAE,yBAAyB;IAClE,CAAC,OAAO,EAAE,uBAAS,CAAC,EAAE,wBAAwB;IAC9C,CAAC,UAAU,EAAE,uBAAS,CAAC,EAAE,wBAAwB;IACjD,CAAC,OAAO,EAAE,uBAAS,CAAC,EAAE,wBAAwB;IAC9C,CAAC,cAAc,EAAE,uBAAS,CAAC,EAAE,wBAAwB;IACrD,CAAC,cAAc,EAAE,YAAG,CAAC,EAAE,iBAAiB;IACxC,CAAC,WAAW,EAAE,IAAA,4BAAqB,EAAC,4BAAoB,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,EAAE,CAAC,CAAC,EAAE,sCAAsC;CACrF,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA0B,CACrC,CAAC"}
@@ -27,12 +27,14 @@ const calculatePositions = (mergeMinerAccounts, minerAccounts, replicaMinerAccou
27
27
  const primaryQuarryAccount = quarryAccounts.find((q) => q.pubkey.toString() === primaryQuarry.quarry.toString());
28
28
  if (!primaryQuarryAccount)
29
29
  return;
30
+ let minerAccount;
30
31
  if ((0, helpers_1.isMinerAccount)(account)) {
32
+ minerAccount = account;
31
33
  rewardsTokenInfo.push(primaryRewarder.rewardsTokenInfo);
32
34
  rewardsBalance.push((0, getClaimableRewards_1.getClaimableRewards)(primaryQuarryAccount, account));
33
35
  }
34
36
  else {
35
- const minerAccount = replicaMinerAccounts[i].find((a) => a.quarry === primaryQuarryAccount.pubkey.toString());
37
+ minerAccount = replicaMinerAccounts[i].find((a) => a.quarry === primaryQuarryAccount.pubkey.toString());
36
38
  if (!minerAccount)
37
39
  return;
38
40
  rewardsTokenInfo.push(primaryRewarder.rewardsTokenInfo);
@@ -55,6 +57,10 @@ const calculatePositions = (mergeMinerAccounts, minerAccounts, replicaMinerAccou
55
57
  });
56
58
  }
57
59
  positions.push({
60
+ ref: minerAccount.pubkey.toString(),
61
+ sourceRefs: [
62
+ { name: 'Pool', address: primaryQuarryAccount.pubkey.toString() },
63
+ ],
58
64
  primaryRewarder: {
59
65
  slug: primaryRewarder.slug,
60
66
  name: (_a = primaryRewarder.info) === null || _a === void 0 ? void 0 : _a.name,
@@ -1 +1 @@
1
- {"version":3,"file":"calculatePositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/calculatePositions.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAW5C,uCAA0D;AAC1D,+DAA4D;AAErD,MAAM,kBAAkB,GAAG,CAChC,kBAA+C,EAC/C,aAAqC,EACrC,oBAA8C,EAC9C,YAAwB,EACxB,cAA2C,EAC3C,KAAa,EACb,EAAE;IACF,MAAM,SAAS,GAAe,EAAE,CAAC;IAEjC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,YAAY,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAErE,CAAC,GAAG,kBAAkB,EAAE,GAAG,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE;;QAC/D,IAAI,CAAC,OAAO;YAAE,OAAO;QAErB,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CACtC,IAAA,wBAAc,EAAC,OAAO,CAAC;YACrB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;YACvD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YACJ,CAAC,CAAC,CAAC;QACL,CAAC;QAED,SAAS,CAAC,IAAI,CAAC;YACb,eAAe,EAAE;gBACf,IAAI,EAAE,eAAe,CAAC,IAAI;gBAC1B,IAAI,EAAE,MAAA,eAAe,CAAC,IAAI,0CAAE,IAAI;aACjC;YACD,aAAa,EAAE,IAAA,wBAAc,EAAC,OAAO,CAAC;gBACpC,CAAC,CAAC,OAAO,CAAC,OAAO;gBACjB,CAAC,CAAC,OAAO,CAAC,cAAc;YAC1B,eAAe,EAAE,aAAa,CAAC,gBAAgB;YAC/C,gBAAgB;YAChB,cAAc;SACf,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AA7FW,QAAA,kBAAkB,sBA6F7B"}
1
+ {"version":3,"file":"calculatePositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/calculatePositions.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAW5C,uCAA0D;AAC1D,+DAA4D;AAErD,MAAM,kBAAkB,GAAG,CAChC,kBAA+C,EAC/C,aAAqC,EACrC,oBAA8C,EAC9C,YAAwB,EACxB,cAA2C,EAC3C,KAAa,EACb,EAAE;IACF,MAAM,SAAS,GAAe,EAAE,CAAC;IAEjC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,YAAY,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAErE,CAAC,GAAG,kBAAkB,EAAE,GAAG,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE;;QAC/D,IAAI,CAAC,OAAO;YAAE,OAAO;QAErB,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CACtC,IAAA,wBAAc,EAAC,OAAO,CAAC;YACrB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,QAAQ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IAAA,yCAAmB,EAAC,aAAa,EAAE,mBAAmB,CAAC,CACxD,CAAC;YACJ,CAAC,CAAC,CAAC;QACL,CAAC;QAED,SAAS,CAAC,IAAI,CAAC;YACb,GAAG,EAAE,YAAY,CAAC,MAAM,CAAC,QAAQ,EAAE;YACnC,UAAU,EAAE;gBACV,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE;aAClE;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,eAAe,CAAC,IAAI;gBAC1B,IAAI,EAAE,MAAA,eAAe,CAAC,IAAI,0CAAE,IAAI;aACjC;YACD,aAAa,EAAE,IAAA,wBAAc,EAAC,OAAO,CAAC;gBACpC,CAAC,CAAC,OAAO,CAAC,OAAO;gBACjB,CAAC,CAAC,OAAO,CAAC,cAAc;YAC1B,eAAe,EAAE,aAAa,CAAC,gBAAgB;YAC/C,gBAAgB;YAChB,cAAc;SACf,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAnGW,QAAA,kBAAkB,sBAmG7B"}
@@ -139,6 +139,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
139
139
  rewardAssetsValue,
140
140
  value,
141
141
  yields: [],
142
+ ref: position.ref,
143
+ sourceRefs: position.sourceRefs,
142
144
  },
143
145
  ],
144
146
  },
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,gEAAqC;AACrC,6CAA4C;AAE5C,2CAOqB;AACrB,qDAAyE;AACzE,kDAAmE;AAEnE,iDAAsD;AACtD,+CAI4B;AAQ5B,kEAA+D;AAC/D,qGAA6E;AAC7E,uGAA+E;AAC/E,uCAA4D;AAC5D,6DAA0D;AAE1D,MAAM,aAAa,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AAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3E,MAAM,KAAK,GAAG,WAAW,CAAC;QAE1B,IAAI,iBAAiB,CAAC;QAEtB,QAAQ,eAAe,CAAC,IAAI,EAAE,CAAC;YAC7B,KAAK,OAAO;gBACV,iBAAiB,GAAG,sBAAkB,CAAC;gBACvC,MAAM;YACR,KAAK,OAAO;gBACV,iBAAiB,GAAG,sBAAe,CAAC;gBACpC,MAAM;YACR;gBACE,iBAAiB,GAAG,sBAAU,CAAC;QACnC,CAAC;QAED,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,iBAAiB;YAC7B,IAAI,EAAE,qCAAoB,CAAC,SAAS;YACpC,KAAK;YACL,IAAI,EACF,iBAAiB,KAAK,sBAAU,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI;YACzE,IAAI,EAAE;gBACJ,WAAW,EAAE;oBACX;wBACE,MAAM;wBACN,WAAW;wBACX,YAAY;wBACZ,iBAAiB;wBACjB,KAAK;wBACL,MAAM,EAAE,EAAE;qBACX;iBACF;aACF;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,gEAAqC;AACrC,6CAA4C;AAE5C,2CAOqB;AACrB,qDAAyE;AACzE,k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e,OAAO,CAAC"}
@@ -1,6 +1,7 @@
1
1
  /// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
2
2
  /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
3
  import { PublicKey } from '@solana/web3.js';
4
+ import { SourceRef } from '@sonarwatch/portfolio-core';
4
5
  import BigNumber from 'bignumber.js';
5
6
  export type TokenInfo = {
6
7
  decimals: number;
@@ -86,6 +87,8 @@ export type Redeemer = {
86
87
  redemptionMint: string;
87
88
  };
88
89
  export type Position = {
90
+ ref: string;
91
+ sourceRefs: SourceRef[];
89
92
  primaryRewarder: {
90
93
  slug: string;
91
94
  name?: string;
@@ -45,6 +45,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
45
45
  if (marginPosition.balance !== 0) {
46
46
  const element = elementRegistry.addElementMultiple({
47
47
  label: 'Margin',
48
+ link: 'https://app.rate-x.io/trade',
48
49
  ref: user.pubkey,
49
50
  });
50
51
  element.addAsset({
@@ -69,6 +70,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
69
70
  const o = (0, tokenPricesFromSqrt_1.sqrtPriceX64ToPrice)(new bignumber_js_1.default(ammpool.pool.sqrtPrice), 9, 9);
70
71
  const element = elementRegistry.addElementMultiple({
71
72
  label: 'LiquidityPool',
73
+ link: 'https://app.rate-x.io/liquidity',
72
74
  ref: lpData.pubkey,
73
75
  sourceRefs: [
74
76
  {
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/ratex/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAA2D;AAE3D,gFAA6E;AAC7E,kEAA+D;AAE/D,wFAAyF;AACzF,uCAKmB;AACnB,8EAA2E;AAE3E,MAAM,YAAY,GAAG,IAAI,6BAAa,CAAY,4BAAgB,EAAE;IAClE,MAAM,EAAE,sBAAU;IAClB,SAAS,EA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tB,GAAG,EAAE,MAAM,CAAC,MAAM;oBAClB,UAAU,EAAE;wBACV;4BACE,IAAI,EAAE,MAAM;4BACZ,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;yBACnC;qBACF;iBACF,CAAC,CAAC;gBACH,OAAO,CAAC,QAAQ,CAAC;oBACf,OAAO,EAAE,OAAO,CAAC,IAAI;oBACrB,MAAM,EAAE,eAAe;yBACpB,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;yBACnB,IAAI,CAAC,gBAAgB,CAAC;yBACtB,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;oBAC1B,cAAc,EAAE,IAAI;iBACrB,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/ratex/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAA2D;AAE3D,gFAA6E;AAC7E,kEAA+D;AAE/D,wFAAyF;AACzF,uCAKmB;AACnB,8EAA2E;AAE3E,MAAM,YAAY,GAAG,IAAI,6BAAa,CAAY,4BAAgB,EAAE;IAClE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,C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M,CAAC,QAAQ,EAAE;yBACnC;qBACF;iBACF,CAAC,CAAC;gBACH,OAAO,CAAC,QAAQ,CAAC;oBACf,OAAO,EAAE,OAAO,CAAC,IAAI;oBACrB,MAAM,EAAE,eAAe;yBACpB,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;yBACnB,IAAI,CAAC,gBAAgB,CAAC;yBACtB,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;oBAC1B,cAAc,EAAE,IAAI;iBACrB,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -108,6 +108,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
108
108
  price: lpTokenPrice.toNumber(),
109
109
  underlyings,
110
110
  timestamp: Date.now(),
111
+ sourceRefs: [{ address: swap.addresses.swapAccount, name: 'Pool' }],
111
112
  });
112
113
  }
113
114
  });
@@ -1 +1 @@
1
- {"version":3,"file":"lpTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/saber/lpTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,6CAA4C;AAC5C,kDAA6C;AAC7C,+DAIoC;AAGpC,iDAAsD;AACtD,2CAAsD;AACtD,gGAA6F;AAC7F,+CAA2E;AAG3E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,aAAa,GAAsC,MAAM,eAAK;SACjE,GAAG,CAAC,uBAAW,CAAC;SAChB,KAAK,CAAC,GAAG,EAAE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IAC7B,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -38,6 +38,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
38
38
  const element = registry.addElementMultiple({
39
39
  label: 'Staked',
40
40
  name: marketName,
41
+ ref: account.pubkey,
42
+ link: 'https://sandglass.so/markets',
43
+ sourceRefs: [{ name: 'Market', address: market.pubkey }],
41
44
  });
42
45
  const { stakePtAmount, stakeYtAmount, stakeLpAmount } = account.stakeInfo;
43
46
  element.addAsset({ address: market.ptMint, amount: stakePtAmount });
@@ -1 +1 @@
1
- {"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAKqB;AACrB,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAmD;AACnD,uCAA+C;AAE/C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,gCAAsB,EACtB,qBAAS,EACT,IAAA,4BAAkB,EAAC,KAAK,CAAC,CAC1B,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,OAAO,CAAe,0BAAc,EAAE;QACrE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,YAAY;QAAE,OAAO,EAAE,CAAC;IAE7B,MAAM,cAAc,GAA4B,IAAI,GAAG,EAAE,CAAC;IAC1D,YAAY,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EA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G,+BAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC1D,MAAM,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC;YAC1C,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,OAAO,CAAC,MAAM;YACnB,IAAI,EAAE,8BAA8B;YACpC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;SACzD,CAAC,CAAC;QACH,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC;QAC1E,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;QACpE,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;QACpE,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -127,6 +127,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
127
127
  rewardValue,
128
128
  healthRatio: null,
129
129
  value,
130
+ ref: acc.pubkey.toString(),
130
131
  expireOn: acc.loanState.taken
131
132
  ? (Number(acc.loanState.taken.taken.terms.time.start) +
132
133
  Number(acc.loanState.taken.taken.terms.time.duration)) *
@@ -1 +1 @@
1
- {"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sharky/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gEAAqC;AAErC,2CAKqB;AAErB,iDAAsD;AACtD,+CAG4B;AAE5B,qGAA6E;AAC7E,8EAAgF;AAChF,oGAA4E;AAC5E,wGAAqG;AACrG,uCAA2C;AAC3C,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,WAAW,CAAC,CAC5C,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,8BAAoB,GAAE,CAAC;IACtC,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,IAAA,wBAAc,EAAC,KAAK,CAAC,CAAC;IAC1D,MAAM,QAAQ,GAAG,CACf,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,qCAA4B,EAAO,UAAU,EAAE,yBAAa,EAAE,OAAO,CAAC;QACtE,IAAA,qCAA4B,EAAO,UAAU,EAAE,yBAAa,EAAE,OAAO,CAAC;QACtE,IAAA,qCAA4B,EAAO,UAAU,EAAE,yBAAa,EAAE,OAAO,CAAC;KACvE,CAAC,CACH,CAAC,IAAI,EAAE,CAAC;IACT,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,CAAC,aAAa,EAAE,YAAY,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,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,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sharky/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gEAAqC;AAErC,2CAKqB;AAErB,iDAAsD;AACtD,+CAG4B;AAE5B,qGAA6E;AAC7E,8EAAgF;AAChF,oGAA4E;AAC5E,wGAAqG;AACrG,uCAA2C;AAC3C,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,WAAW,CAAC,CAC5C,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,8BAAoB,GAAE,CAAC;IACtC,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,IAAA,wBAAc,EAAC,KAAK,CAAC,CAAC;IAC1D,MAAM,QAAQ,GAAG,CACf,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,qCAA4B,EAAO,UAAU,EAAE,yBAAa,EAAE,OAAO,CAAC;QACtE,IAAA,qCAA4B,EAAO,UAAU,EAAE,yBAAa,EAAE,OAAO,CAAC;QACtE,IAAA,qCAA4B,EAAO,UAAU,EAAE,yBAAa,EAAE,OAAO,CAAC;KACvE,CAAC,CACH,CAAC,IAAI,EAAE,CAAC;IACT,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,CAAC,aAAa,EAA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ClB,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"}
@@ -0,0 +1,3 @@
1
+ import { AirdropFetcher } from '../../AirdropFetcher';
2
+ export declare const airdropFetcher: AirdropFetcher;
3
+ export declare const fetcher: import("../..").Fetcher;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.fetcher = exports.airdropFetcher = void 0;
16
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
+ const axios_1 = __importDefault(require("axios"));
18
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
19
+ const AirdropFetcher_1 = require("../../AirdropFetcher");
20
+ const constants_1 = require("./constants");
21
+ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
22
+ const res = yield axios_1.default.get(constants_1.airdropApi + owner);
23
+ if (!res.data || res.data.totalAmount === '0')
24
+ return (0, AirdropFetcher_1.getAirdropRaw)({
25
+ statics: constants_1.airdropStatics,
26
+ items: [
27
+ {
28
+ amount: 0,
29
+ isClaimed: false,
30
+ label: 'LAYER',
31
+ address: constants_1.layerMint,
32
+ },
33
+ ],
34
+ });
35
+ const amount = (0, bignumber_js_1.default)(res.data.totalAmount);
36
+ const isClaimed = amount.isEqualTo(Number(res.data.claimedAmount));
37
+ return (0, AirdropFetcher_1.getAirdropRaw)({
38
+ statics: constants_1.airdropStatics,
39
+ items: [
40
+ {
41
+ amount: amount.dividedBy(Math.pow(10, constants_1.layerDecimals)).toNumber(),
42
+ isClaimed,
43
+ label: 'LAYER',
44
+ address: constants_1.layerMint,
45
+ },
46
+ ],
47
+ });
48
+ });
49
+ exports.airdropFetcher = {
50
+ id: constants_1.airdropStatics.id,
51
+ networkId: portfolio_core_1.NetworkId.solana,
52
+ executor,
53
+ };
54
+ exports.fetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(exports.airdropFetcher, constants_1.platform.id, 'solayer-airdrop', constants_1.airdropStatics.claimEnd);
55
+ //# sourceMappingURL=airdropFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAC7C,gEAAqC;AACrC,yDAK8B;AAC9B,2CAMqB;AAGrB,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,GAAG,GAAmC,MAAM,eAAK,CAAC,GAAG,CACzD,sBAAU,GAAG,KAAK,CACnB,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,WAAW,KAAK,GAAG;QAC3C,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,0BAAc;YACvB,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,CAAC;oBACT,SAAS,EAAE,KAAK;oBAChB,KAAK,EAAE,OAAO;oBACd,OAAO,EAAE,qBAAS;iBACnB;aACF;SACF,CAAC,CAAC;IAEL,MAAM,MAAM,GAAG,IAAA,sBAAS,EAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IAEnE,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,0BAAc;QACvB,KAAK,EAAE;YACL;gBACE,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,yBAAa,CAAA,CAAC,CAAC,QAAQ,EAAE;gBACxD,SAAS;gBACT,KAAK,EAAE,OAAO;gBACd,OAAO,EAAE,qBAAS;aACnB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AACW,QAAA,OAAO,GAAG,IAAA,wCAAuB,EAC5C,sBAAc,EACd,oBAAQ,CAAC,EAAE,EACX,iBAAiB,EACjB,0BAAc,CAAC,QAAQ,CACxB,CAAC"}
@@ -2,10 +2,15 @@
2
2
  /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
3
  import { PublicKey } from '@solana/web3.js';
4
4
  import { Platform } from '@sonarwatch/portfolio-core';
5
+ import { AirdropStatics } from '../../AirdropFetcher';
5
6
  export declare const platformId = "solayer";
6
7
  export declare const platform: Platform;
7
8
  export declare const programId: PublicKey;
8
9
  export declare const solayersUSDCPid: PublicKey;
10
+ export declare const airdropApi = "https://airdrop-apis-101797961016.us-central1.run.app/airdrop?walletAddr=";
11
+ export declare const layerMint = "LAYER4xPpTCb3QL8S9u41EAhAX7mhBn8Q6xMTwY2Yzc";
12
+ export declare const layerDecimals = 9;
13
+ export declare const airdropStatics: AirdropStatics;
9
14
  export declare const solayerLstPool = "po1osKDWYF9oiVEGmzKA4eTs8eMveFRMox3bUKazGN2";
10
15
  export declare const solayerLstMint = "sSo1wxKKr6zW2hqf5hZrp2CawLibcwi1pMBqk5bg2G4";
11
16
  export declare const solayerRstMint = "sSo14endRuUbvQaJS3dq36Q829a3A6BEfoeeRGJywEh";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.avsTokens = exports.solayerLstDecimals = exports.solayersUSDMint = exports.solayerRstMint = exports.solayerLstMint = exports.solayerLstPool = exports.solayersUSDCPid = exports.programId = exports.platform = exports.platformId = void 0;
3
+ exports.avsTokens = exports.solayerLstDecimals = exports.solayersUSDMint = exports.solayerRstMint = exports.solayerLstMint = exports.solayerLstPool = exports.airdropStatics = exports.layerDecimals = exports.layerMint = exports.airdropApi = exports.solayersUSDCPid = exports.programId = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'solayer';
6
6
  exports.platform = {
@@ -13,6 +13,18 @@ exports.platform = {
13
13
  };
14
14
  exports.programId = new web3_js_1.PublicKey('sSo1iU21jBrU9VaJ8PJib1MtorefUV4fzC9GURa2KNn');
15
15
  exports.solayersUSDCPid = new web3_js_1.PublicKey('s1aysqpEyZyijPybUV89oBGeooXrR22wMNLjnG2SWJA');
16
+ exports.airdropApi = 'https://airdrop-apis-101797961016.us-central1.run.app/airdrop?walletAddr=';
17
+ exports.layerMint = 'LAYER4xPpTCb3QL8S9u41EAhAX7mhBn8Q6xMTwY2Yzc';
18
+ exports.layerDecimals = 9;
19
+ exports.airdropStatics = {
20
+ claimLink: 'https://claim.solayer.foundation/',
21
+ emitterLink: 'https://solayer.foundation/',
22
+ emitterName: exports.platform.name,
23
+ id: 'solayer-airdrop',
24
+ image: 'https://sonar.watch/img/platforms/solayer.webp',
25
+ claimStart: 1739275200000,
26
+ claimEnd: 1741089600000,
27
+ };
16
28
  // export const stakePoolProgramId = 'SPoo1Ku8WFXoNDMHPsrGSTSG1Y47rzgn41SLUNakuHy'
17
29
  exports.solayerLstPool = 'po1osKDWYF9oiVEGmzKA4eTs8eMveFRMox3bUKazGN2';
18
30
  exports.solayerLstMint = 'sSo1wxKKr6zW2hqf5hZrp2CawLibcwi1pMBqk5bg2G4';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,4BAA4B;IACrC,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEF,kFAAkF;AACrE,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,eAAe,GAAG,6CAA6C,CAAC;AAChE,QAAA,kBAAkB,GAAG,CAAC,CAAC;AAEvB,QAAA,SAAS,GAAG;IACvB,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,8CAA8C;IAC9C,6CAA6C;IAC7C,6CAA6C;CAC9C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,4BAA4B;IACrC,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,UAAU,GACrB,2EAA2E,CAAC;AACjE,QAAA,SAAS,GAAG,6CAA6C,CAAC;AAC1D,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,cAAc,GAAmB;IAC5C,SAAS,EAAE,mCAAmC;IAC9C,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EAAE,gBAAQ,CAAC,IAAI;IAC1B,EAAE,EAAE,iBAAiB;IACrB,KAAK,EAAE,gDAAgD;IACvD,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;CACxB,CAAC;AAEF,kFAAkF;AACrE,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,eAAe,GAAG,6CAA6C,CAAC;AAChE,QAAA,kBAAkB,GAAG,CAAC,CAAC;AAEvB,QAAA,SAAS,GAAG;IACvB,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,8CAA8C;IAC9C,6CAA6C;IAC7C,6CAA6C;CAC9C,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
2
  import { Fetcher } from '../../Fetcher';
3
3
  import { Job } from '../../Job';
4
+ import { airdropFetcher } from './airdropFetcher';
4
5
  export declare const platforms: Platform[];
5
6
  export declare const jobs: Job[];
6
7
  export declare const fetchers: Fetcher[];
8
+ export { airdropFetcher };
@@ -3,12 +3,14 @@ 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.fetchers = exports.jobs = exports.platforms = void 0;
6
+ exports.airdropFetcher = exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const poolsJob_1 = __importDefault(require("./poolsJob"));
9
9
  const delegateJob_1 = __importDefault(require("./delegateJob"));
10
10
  const proofsFetcher_1 = __importDefault(require("./proofsFetcher"));
11
+ const airdropFetcher_1 = require("./airdropFetcher");
12
+ Object.defineProperty(exports, "airdropFetcher", { enumerable: true, get: function () { return airdropFetcher_1.airdropFetcher; } });
11
13
  exports.platforms = [constants_1.platform];
12
14
  exports.jobs = [poolsJob_1.default, delegateJob_1.default];
13
- exports.fetchers = [proofsFetcher_1.default];
15
+ exports.fetchers = [proofsFetcher_1.default, airdropFetcher_1.fetcher];
14
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,0DAAkC;AAClC,gEAAwC;AACxC,oEAA4C;AAE/B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,EAAE,qBAAW,CAAC,CAAC;AACtC,QAAA,QAAQ,GAAc,CAAC,uBAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,0DAAkC;AAClC,gEAAwC;AACxC,oEAA4C;AAC5C,qDAA2D;AAKlD,+FALA,+BAAc,OAKA;AAHV,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,EAAE,qBAAW,CAAC,CAAC;AACtC,QAAA,QAAQ,GAAc,CAAC,uBAAa,EAAE,wBAAO,CAAC,CAAC"}
@@ -35,20 +35,19 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
35
35
  const element = registry.addElementMultiple({
36
36
  label: 'Deposit',
37
37
  name: 'sUSD Restaking',
38
+ link: 'https://app.solayer.org/',
38
39
  });
39
40
  accounts.forEach((account) => {
40
41
  const isDeposit = account.mint.toString() === solana_1.usdcSolanaMint;
42
+ if (!pool)
43
+ return;
41
44
  // If batchId of the pool is greater than batchId from account and it's a deposit
42
45
  // It means the deposits have all been processed and user receive it's sUSD in the wallet
43
- if (pool &&
44
- isDeposit &&
45
- pool.currentDepositId.isGreaterThan(account.batchId))
46
+ if (isDeposit && pool.currentDepositId.isGreaterThan(account.batchId))
46
47
  return;
47
48
  // If batchId of the pool is greater than batchId from account and it's a withdraw
48
49
  // It means the user can claim it's USDC
49
- const isClaimable = !!(pool &&
50
- !isDeposit &&
51
- pool.currentWithdrawId.isGreaterThan(account.batchId));
50
+ const isClaimable = !!(!isDeposit && pool.currentWithdrawId.isGreaterThan(account.batchId));
52
51
  element.addAsset({
53
52
  address: account.mint.toString(),
54
53
  amount: account.amount,
@@ -56,6 +55,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
56
55
  isClaimable,
57
56
  tags: [isDeposit ? 'Deposit' : 'Withdraw'],
58
57
  },
58
+ ref: account.pubkey,
59
+ sourceRefs: [{ name: 'Pool', address: pool.pubkey.toString() }],
59
60
  });
60
61
  });
61
62
  return registry.getElements(cache);