@sonarwatch/portfolio-plugins 0.11.128 → 0.11.130

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/CHANGELOG.md +1239 -1231
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/plugins/abex/marketsJob.js +2 -2
  5. package/src/plugins/abex/marketsJob.js.map +1 -1
  6. package/src/plugins/aftermath/poolsJob.js +2 -2
  7. package/src/plugins/aftermath/poolsJob.js.map +1 -1
  8. package/src/plugins/atrix/poolsV1Job.js +1 -1
  9. package/src/plugins/atrix/poolsV1Job.js.map +1 -1
  10. package/src/plugins/auxexchange/aptosLpJob.js +2 -2
  11. package/src/plugins/auxexchange/aptosLpJob.js.map +1 -1
  12. package/src/plugins/balancer/helpers/pools.js +21 -21
  13. package/src/plugins/bskt/vestingFetcher.js +1 -0
  14. package/src/plugins/bskt/vestingFetcher.js.map +1 -1
  15. package/src/plugins/flexlend/depositsFetcher.js +8 -4
  16. package/src/plugins/flexlend/depositsFetcher.js.map +1 -1
  17. package/src/plugins/fluxbeam/poolsJob.js +2 -2
  18. package/src/plugins/fluxbeam/poolsJob.js.map +1 -1
  19. package/src/plugins/jupiter/helpers.d.ts +1 -1
  20. package/src/plugins/jupiter/helpers.js +3 -3
  21. package/src/plugins/jupiter/helpers.js.map +1 -1
  22. package/src/plugins/jupiter/index.js +0 -2
  23. package/src/plugins/jupiter/index.js.map +1 -1
  24. package/src/plugins/kai/vaultsJob.js +2 -2
  25. package/src/plugins/kai/vaultsJob.js.map +1 -1
  26. package/src/plugins/lifinity/xLfntyJob.js +4 -4
  27. package/src/plugins/lifinity/xLfntyJob.js.map +1 -1
  28. package/src/plugins/liquiditypools-sei/job.js +2 -2
  29. package/src/plugins/liquiditypools-sei/job.js.map +1 -1
  30. package/src/plugins/liquidswap/aptosLpJob.js +2 -2
  31. package/src/plugins/liquidswap/aptosLpJob.js.map +1 -1
  32. package/src/plugins/meteora/poolsJob.js +2 -2
  33. package/src/plugins/meteora/poolsJob.js.map +1 -1
  34. package/src/plugins/orca/lpTokensJob.js +2 -2
  35. package/src/plugins/orca/lpTokensJob.js.map +1 -1
  36. package/src/plugins/pancakeswap/aptosLpJob.js +2 -2
  37. package/src/plugins/pancakeswap/aptosLpJob.js.map +1 -1
  38. package/src/plugins/raydium/lpTokensJob.js +2 -2
  39. package/src/plugins/raydium/lpTokensJob.js.map +1 -1
  40. package/src/plugins/solend/obligationsFetcher.js +1 -10
  41. package/src/plugins/solend/obligationsFetcher.js.map +1 -1
  42. package/src/plugins/sushiswap/aptos/poolsJob.js +2 -2
  43. package/src/plugins/sushiswap/aptos/poolsJob.js.map +1 -1
  44. package/src/plugins/sushiswap/helpers.js +24 -24
  45. package/src/plugins/symmetry/basketsJob.js +16 -12
  46. package/src/plugins/symmetry/basketsJob.js.map +1 -1
  47. package/src/plugins/symmetry/helpers.d.ts +2 -0
  48. package/src/plugins/symmetry/helpers.js +9 -0
  49. package/src/plugins/symmetry/helpers.js.map +1 -0
  50. package/src/plugins/symmetry/structs.d.ts +5 -1
  51. package/src/plugins/symmetry/structs.js +7 -2
  52. package/src/plugins/symmetry/structs.js.map +1 -1
  53. package/src/plugins/tokens/fetchers/aptos.js +1 -0
  54. package/src/plugins/tokens/fetchers/aptos.js.map +1 -1
  55. package/src/plugins/tokens/fetchers/sui.js +1 -0
  56. package/src/plugins/tokens/fetchers/sui.js.map +1 -1
  57. package/src/plugins/uniswap-v2/helpers.js +22 -22
  58. package/src/utils/misc/getLpTokenSource.d.ts +1 -1
  59. package/src/utils/misc/getLpTokenSource.js +2 -1
  60. package/src/utils/misc/getLpTokenSource.js.map +1 -1
  61. package/src/utils/misc/getLpTokenSourceRaw.d.ts +1 -1
  62. package/src/utils/misc/getLpTokenSourceRaw.js +3 -3
  63. package/src/utils/misc/getLpTokenSourceRaw.js.map +1 -1
  64. package/src/utils/misc/tokenPriceToLiquidity.js +1 -0
  65. package/src/utils/misc/tokenPriceToLiquidity.js.map +1 -1
  66. package/src/utils/sei/constants.js +8 -8
  67. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  68. package/src/utils/solana/getDecimals.d.ts +3 -0
  69. package/src/utils/solana/getDecimals.js +26 -0
  70. package/src/utils/solana/getDecimals.js.map +1 -0
  71. package/src/utils/solana/getMultipleDecimals.d.ts +3 -0
  72. package/src/utils/solana/getMultipleDecimals.js +32 -0
  73. package/src/utils/solana/getMultipleDecimals.js.map +1 -0
  74. package/src/plugins/jupiter/testFetcher.d.ts +0 -3
  75. package/src/plugins/jupiter/testFetcher.js +0 -77
  76. package/src/plugins/jupiter/testFetcher.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAC5C,gEAAqC;AACrC,2CAAyD;AACzD,iDAAsD;AACtD,+CAO4B;AAC5B,mCAAgC;AAChC,gGAA6F;AAC7F,qCAAsD;AACtD,uCAAqE;AAGrE,6FAAoE;AACpE,+FAAuE;AAEvE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,yCAAyC;IACzC,MAAM,qBAAqB,GAAG,MAAM,IAAA,iCAAwB,EAC1D,MAAM,EACN,wBAAe,EACf,0BAAc,EACd,8BAAoB,CACrB,CAAC;IACF,MAAM,mBAAmB,GAAG,MAAM,IAAA,iCAAwB,EACxD,MAAM,EACN,wBAAe,EACf,0BAAc,EACd,4BAAkB,CACnB,CAAC;IAEF,SAAS;IACT,MAAM,YAAY,GAAG,aAAK,CAAC;IAC3B,6BAA6B;IAC7B,MAAM,iBAAiB,GAAmB,IAAI,GAAG,EAAE,CAAC;IACpD,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC5B,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAA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AAG,WAAW,GAAG,MAAM,CAAC;QAEnC,MAAM,KAAK,CAAC,mBAAmB,CAAC;YAC9B,EAAE,EAAE,sBAAU;YACd,MAAM,EAAE,CAAC;YACT,OAAO;YACP,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,QAAQ;YACR,KAAK;YACL,WAAW;YACX,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAC5C,gEAAqC;AACrC,2CAAyD;AACzD,iDAAsD;AACtD,+CAO4B;AAC5B,mCAAgC;AAChC,gGAA6F;AAC7F,qCAAsD;AACtD,uCAAqE;AAGrE,6FAAoE;AACpE,+FAAuE;AAEvE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,yCAAyC;IACzC,MAAM,qBAAqB,GAAG,MAAM,IAAA,iCAAwB,EAC1D,MAAM,EACN,wBAAe,EACf,0BAAc,EACd,8BAAoB,CACrB,CAAC;IACF,MAAM,mBAAmB,GAAG,MAAM,IAAA,iCAAwB,EACxD,MAAM,EACN,wBAAe,EACf,0BAAc,EACd,4BAAkB,CACnB,CAAC;IAEF,SAAS;IACT,MAAM,YAAY,GAAG,aAAK,CAAC;IAC3B,6BAA6B;IAC7B,MAAM,iBAAiB,GAAmB,IAAI,GAAG,EAAE,CAAC;IACpD,YAAY,CAAC,OAAO,CAAC,CAAC,IA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G,yBAAyB,CAAC;QAEvD,IAAI,WAAW,IAAI,CAAC;YAAE,SAAS;QAC/B,MAAM,KAAK,GAAG,WAAW,GAAG,MAAM,CAAC;QAEnC,MAAM,KAAK,CAAC,mBAAmB,CAAC;YAC9B,EAAE,EAAE,sBAAU;YACd,MAAM,EAAE,CAAC;YACT,OAAO;YACP,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,QAAQ;YACR,KAAK;YACL,WAAW;YACX,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -102,7 +102,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
102
102
  yield cache.setTokenPriceSource(underlyingSource);
103
103
  if (!tokenPriceA || !tokenPriceB)
104
104
  continue;
105
- const lpSource = (0, getLpTokenSourceRaw_1.default)(portfolio_core_1.NetworkId.solana, lpMint.toString(), constants_1.platformId, 'Aquafarms (deprecated)', { address: lpMint.toString(), decimals: lpDecimals, supplyRaw: lpSupply }, [
105
+ const lpSource = (0, getLpTokenSourceRaw_1.default)(portfolio_core_1.NetworkId.solana, lpMint.toString(), constants_1.platformId, { address: lpMint.toString(), decimals: lpDecimals, supplyRaw: lpSupply }, [
106
106
  {
107
107
  address: tokenPriceA.address,
108
108
  decimals: tokenPriceA.decimals,
@@ -115,7 +115,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
115
115
  price: tokenPriceB.price,
116
116
  reserveAmountRaw: pcAmountWei,
117
117
  },
118
- ]);
118
+ ], 'Aquafarms (deprecated)');
119
119
  yield cache.setTokenPriceSource(lpSource);
120
120
  // const poolData: PoolData = {
121
121
  // id: lpMint.toString(),
@@ -1 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ACtB,KAAK;YACL,WAAW,EAAE,SAAS,CAAC,WAAW;YAClC,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -101,7 +101,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
101
101
  yield cache.setTokenPriceSource(underlyingSource);
102
102
  if (!tokenPriceX || !tokenPriceY)
103
103
  continue;
104
- const lpSource = (0, getLpTokenSourceRaw_1.default)(portfolio_core_1.NetworkId.aptos, lpType, constants_1.platformId, '', {
104
+ const lpSource = (0, getLpTokenSourceRaw_1.default)(portfolio_core_1.NetworkId.aptos, lpType, constants_1.platformId, {
105
105
  address: lpType,
106
106
  decimals: lpDecimals,
107
107
  supplyRaw: lpSupply,
@@ -118,7 +118,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
118
118
  price: tokenPriceY.price,
119
119
  reserveAmountRaw: reserveAmountRawY,
120
120
  },
121
- ]);
121
+ ], '');
122
122
  yield cache.setTokenPriceSource(lpSource);
123
123
  }
124
124
  });
@@ -1 +1 @@
1
- {"version":3,"file":"aptosLpJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pancakeswap/aptosLpJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAAuD;AAGvD,2CAA+E;AAE/E,iDAAqD;AACrD,6CAM2B;AAC3B,6FAAoE;AACpE,6GAAqF;AACrF,8EAA2E;AAC3E,+FAAuE;AAEvE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAChC,MAAM,SAAS,GAAG,MAAM,IAAA,2BAAmB,EAAC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O;gBAC5B,QAAQ,EAAE,WAAW,CAAC,QAAQ;gBAC9B,KAAK,EAAE,WAAW,CAAC,KAAK;gBACxB,gBAAgB,EAAE,iBAAiB;aACpC;SACF,EACD,EAAE,CACH,CAAC;QAEF,MAAM,KAAK,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -161,7 +161,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
161
161
  : lpMintAccount.supply;
162
162
  if (lpSupply.isZero())
163
163
  continue;
164
- tokenPriceSources.push((0, getLpTokenSourceRaw_1.default)(portfolio_core_1.NetworkId.solana, lpMint.toString(), constants_1.platformId, amm.ammName, {
164
+ tokenPriceSources.push((0, getLpTokenSourceRaw_1.default)(portfolio_core_1.NetworkId.solana, lpMint.toString(), constants_1.platformId, {
165
165
  address: lpMint.toString(),
166
166
  decimals: lpDecimals,
167
167
  supplyRaw: lpSupply,
@@ -178,7 +178,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
178
178
  price: tokenPriceB.price,
179
179
  reserveAmountRaw: tokenAmountB,
180
180
  },
181
- ]));
181
+ ], amm.ammName));
182
182
  }
183
183
  }
184
184
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lpTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/lpTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AAEvD,gEAAqC;AAGrC,iDAAsD;AACtD,2CAA+E;AAC/E,yCAAkE;AAClE,+CAK4B;AAC5B,uCAAqD;AACrD,mCAA8C;AAC9C,6EAAqD;AACrD,gGAA6F;AAE7F,6GAAqF;AACrF,+FAAuE;AACvE,gEAA0E;AAC1E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E,WAAW,CAAC,QAAQ;wBAC9B,KAAK,EAAE,WAAW,CAAC,KAAK;wBACxB,gBAAgB,EAAE,YAAY;qBAC/B;iBACF,CACF,CACF,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,IAAA,oBAAU,EACd,iBAAiB,CAAC,GAAG,CACnB,CAAC,gBAAgB,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CACxE,CACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"lpTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/lpTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AAEvD,gEAAqC;AAGrC,iDAAsD;AACtD,2CAA+E;AAC/E,yCAAkE;AAClE,+CAK4B;AAC5B,uCAAqD;AACrD,mCAA8C;AAC9C,6EAAqD;AACrD,gGAA6F;AAE7F,6GAAqF;AACrF,+FAAuE;AACvE,gEAA0E;AAC1E,6FAAoE;AAEpE,MAAM,WAAW,GAAG;IAClB;QACE,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,sBAAe;QACvB,SAAS,EAAE,6BAAiB;QAC5B,OAAO,EAAE,qBAAW;QACpB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,sBAAe;QACvB,SAAS,EAAE,6BAAiB;QAC5B,OAAO,EAAE,qBAAW;QACpB,IAAI,EAAE,UAAU;KACjB;CACF,CAAC;AAEF,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,iBAAiB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;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -35,12 +35,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
35
35
  return [];
36
36
  const marketsByAddress = new Map();
37
37
  markets.forEach((market) => {
38
- if (market)
39
- marketsByAddress.set(market.address.toString(), market);
38
+ marketsByAddress.set(market.address.toString(), market);
40
39
  });
41
40
  for (const marketInfo of markets) {
42
- if (!marketInfo)
43
- continue;
44
41
  const seeds = [
45
42
  (0, helpers_1.getObligationSeed)(marketInfo.address, 0),
46
43
  (0, helpers_1.getObligationSeed)(marketInfo.address, 1),
@@ -52,18 +49,12 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
52
49
  obligationAddresses.push(obligationAddress);
53
50
  }
54
51
  }
55
- console.log('constexecutor:FetcherExecutor= ~ owner:', owner);
56
52
  // Flexlend, only support the main pool on Solend
57
- // mainMarket = 4UpD2fh7xH3VP9QQaXtsS1YY3bxzWhtfpks7FatyKvdY
58
53
  const marketSeed = constants_1.mainMarket.slice(0, 16);
59
- // owner = 5MBMRrJcAFmkQ39iSB3v6U8ifz4HqizS32voDrmSC6nu
60
54
  const ownerSeed = owner.slice(0, 16);
61
55
  const obligationSeed = ownerSeed + marketSeed;
62
- // AUTOMATION PUBLIC KEY = 8PWR75ppAGonv9dXStjficjXmdsuDKmDoVNcy4oYhAMs
63
56
  const oldFlexlendObligAddress = yield web3_js_1.PublicKey.createWithSeed(constants_2.AUTOMATION_PUBLIC_KEY, obligationSeed, constants_1.pid);
64
- // -> gives : 3UHaFeLkzaHn1Rnks1p8s1xJdwHqMzD4JazWZH4PkzJ9 (correct)
65
57
  const newFlexlendObligAddress = yield web3_js_1.PublicKey.createWithSeed(new web3_js_1.PublicKey(owner), obligationSeed, constants_1.pid);
66
- // -> gives : AnwJKJf4YYKqYz6QBDbf1GhUFhPCExGAH4tNGjKXMBtP (inccorect)
67
58
  obligationAddresses.push(...[oldFlexlendObligAddress, newFlexlendObligAddress]);
68
59
  const obligations = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.obligationStruct, obligationAddresses);
69
60
  if (obligations.length === 0)
@@ -1 +1 @@
1
- {"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,2CAOqB;AACrB,uCAA6D;AAE7D,+CAAmE;AACnE,iDAAsD;AACtD,uCAA6C;AAC7C,qGAA6E;AAC7E,6EAAqD;AACrD,qDAA8D;AAC9D,6DAAiE;AAEjE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,mBAAmB,GAAG,EAAE,CAAC;IAE/B,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,WAAW,CAAa;QAClD,MAAM,EAAE,yBAAa;QACrB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACpC,MAAM,gBAAgB,GAA4B,IAAI,GAAG,EAAE,CAAC;IAC5D,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACzB,IAAI,MAAM;YAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;IAEH,KAAK,MAAM,UAAU,IAAI,OAAO,EAAE,CAAC;QACjC,IAAI,CAAC,UAAU;YAAE,SAAS;QAC1B,MAAM,KAAK,GAAG;YACZ,IAAA,2BAAiB,EAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC;YACxC,IAAA,2BAAiB,EAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC;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AAc,CAAC,MAAM,KAAK,CAAC,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC;YAAE,SAAS;QAEzE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EACrB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,eAAe,CAChB,CAAC;QAEJ,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,MAAM,CAAC,IAAI;YACjB,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,eAAe,EAAE,IAAI;gBAErB,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,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,2CAOqB;AACrB,uCAA6D;AAE7D,+CAAmE;AACnE,iDAAsD;AACtD,uCAA6C;AAC7C,qGAA6E;AAC7E,6EAAqD;AACrD,qDAA8D;AAC9D,6DAAiE;AAEjE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG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CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -61,7 +61,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
61
61
  const [tokenPriceX, tokenPriceY] = yield cache.getTokenPrices([typeX, typeY], portfolio_core_1.NetworkId.aptos);
62
62
  if (!tokenPriceX || !tokenPriceY)
63
63
  continue;
64
- const source = (0, getLpTokenSourceRaw_1.default)(portfolio_core_1.NetworkId.aptos, constants_2.platformId, constants_2.platformId, undefined, {
64
+ const source = (0, getLpTokenSourceRaw_1.default)(portfolio_core_1.NetworkId.aptos, constants_2.platformId, constants_2.platformId, {
65
65
  address: lpType,
66
66
  decimals: lpDecimals,
67
67
  supplyRaw: lpSupply,
@@ -78,7 +78,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
78
78
  price: tokenPriceY.price,
79
79
  reserveAmountRaw: new bignumber_js_1.default(tokenPairData.balance_y.value),
80
80
  },
81
- ]);
81
+ ], undefined);
82
82
  yield cache.setTokenPriceSource(source);
83
83
  }
84
84
  });
@@ -1 +1 @@
1
- {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/sushiswap/aptos/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAAuD;AACvD,oDAAwD;AAGxD,2CAAmE;AACnE,gDAK8B;AAC9B,4CAA0C;AAE1C,kGAA0E;AAE1E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAChC,MAAM,SAAS,GAAG,MAAM,IAAA,2BAAmB,EAAC,MAAM,EAAE,0BAAc,CAAC,CAAC;IACpE,IAAI,CAAC,SAAS;QAAE,OAAO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AAG;YAAE,SAAS;QAEpD,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,MAAM,KAAK,CAAC,cAAc,CAC3D,CAAC,KAAK,EAAE,KAAK,CAAC,EACd,0BAAS,CAAC,KAAK,CAChB,CAAC;QACF,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW;YAAE,SAAS;QAE3C,MAAM,MAAM,GAAG,IAAA,6BAAmB,EAChC,0BAAS,CAAC,KAAK,EACf,sBAAU,EACV,sBAAU,EACV;YACE,OAAO,EAAE,MAAM;YACf,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,QAAQ;SACpB,EACD;YACE;gBACE,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE,aAAa,CAAC,eAAe,CAAC,QAAQ;gBAChD,KAAK,EAAE,WAAW,CAAC,KAAK;gBACxB,gBAAgB,EAAE,IAAI,sBAAS,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC;aAC/D;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE,aAAa,CAAC,eAAe,CAAC,QAAQ;gBAChD,KAAK,EAAE,WAAW,CAAC,KAAK;gBACxB,gBAAgB,EAAE,IAAI,sBAAS,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC;aAC/D;SACF,EACD,SAAS,CACV,CAAC;QACF,MAAM,KAAK,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -54,30 +54,30 @@ function sushiV3PairToUniV2(pair) {
54
54
  }
55
55
  function getV3PairsAddresses(url, length = 300) {
56
56
  return __awaiter(this, void 0, void 0, function* () {
57
- const query = (0, graphql_request_1.gql) `
58
- {
59
- pools(
60
- orderBy: totalValueLockedUSD
61
- first: ${length}
62
- orderDirection: desc
63
- where: { volumeUSD_not: "0", liquidity_not: "0" }
64
- ) {
65
- id
66
- token0Price
67
- token1Price
68
- liquidity
69
- token0 {
70
- id
71
- totalSupply
72
- decimals
73
- }
74
- token1 {
75
- id
76
- totalSupply
77
- decimals
78
- }
79
- }
80
- }
57
+ const query = (0, graphql_request_1.gql) `
58
+ {
59
+ pools(
60
+ orderBy: totalValueLockedUSD
61
+ first: ${length}
62
+ orderDirection: desc
63
+ where: { volumeUSD_not: "0", liquidity_not: "0" }
64
+ ) {
65
+ id
66
+ token0Price
67
+ token1Price
68
+ liquidity
69
+ token0 {
70
+ id
71
+ totalSupply
72
+ decimals
73
+ }
74
+ token1 {
75
+ id
76
+ totalSupply
77
+ decimals
78
+ }
79
+ }
80
+ }
81
81
  `;
82
82
  const res = yield (0, graphql_request_1.default)(url, query);
83
83
  const pools = res.pools;
@@ -12,6 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
+ /* eslint-disable no-labels */
15
16
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
17
  const constants_1 = require("./constants");
17
18
  const solana_1 = require("../../utils/solana");
@@ -19,27 +20,27 @@ const clients_1 = require("../../utils/clients");
19
20
  const structs_1 = require("./structs");
20
21
  const filters_1 = require("./filters");
21
22
  const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
23
+ const helpers_1 = require("./helpers");
22
24
  const getLpTokenSourceRaw_1 = __importDefault(require("../../utils/misc/getLpTokenSourceRaw"));
23
- const runInBatch_1 = __importDefault(require("../../utils/misc/runInBatch"));
24
- const helpers_1 = require("../../utils/solana/pyth/helpers");
25
+ const helpers_2 = require("../../utils/solana/pyth/helpers");
25
26
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
26
27
  const connection = (0, clients_1.getClientSolana)();
27
28
  const tokenListRes = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(connection, structs_1.tokenListStruct, constants_1.tokenListAddress);
28
29
  if (!tokenListRes)
29
30
  return;
30
- const tokenSettings = tokenListRes.list
31
- .map((t) => t)
32
- .slice(0, tokenListRes.numTokens.toNumber());
31
+ const tokenSettings = [...tokenListRes.list].slice(0, tokenListRes.numTokens.toNumber());
33
32
  // Add tokens prices from Pyth Oracles
34
- const sources = yield (0, helpers_1.getPythTokenPriceSources)(connection, tokenSettings.map((ts) => ({
33
+ const pythSources = yield (0, helpers_2.getPythTokenPriceSources)(connection, tokenSettings
34
+ .filter((ts) => ts.oracleType === structs_1.OracleType.Pyth)
35
+ .map((ts) => ({
35
36
  mint: ts.tokenMint,
36
37
  oracle: ts.oracleAccount,
37
38
  })));
38
- yield cache.setTokenPriceSources(sources);
39
+ yield cache.setTokenPriceSources(pythSources);
39
40
  const tokenPrices = yield cache.getTokenPrices(tokenSettings.map((ts) => ts.tokenMint.toString()), portfolio_core_1.NetworkId.solana);
40
41
  const accounts = yield (0, solana_1.getParsedProgramAccounts)(connection, structs_1.fundStruct, constants_1.basketProgramId, filters_1.fundFilters);
41
42
  const lpSources = [];
42
- for (let i = 0; i < accounts.length; i++) {
43
+ mainLoop: for (let i = 0; i < accounts.length; i++) {
43
44
  const account = accounts[i];
44
45
  if (account.supplyOutstanding.isZero())
45
46
  continue;
@@ -48,24 +49,27 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
48
49
  const tokenIndex = account.currentCompToken[j].toNumber();
49
50
  const tokenPrice = tokenPrices[tokenIndex];
50
51
  if (!tokenPrice)
52
+ continue mainLoop;
53
+ const reserveAmountRaw = account.currentCompAmount[j];
54
+ if (reserveAmountRaw.isZero())
51
55
  continue;
52
56
  poolUnderlyingRaw.push({
53
57
  address: tokenPrice.address,
54
58
  decimals: tokenPrice.decimals,
55
59
  price: tokenPrice.price,
56
- reserveAmountRaw: account.currentCompAmount[j],
60
+ reserveAmountRaw,
57
61
  });
58
62
  }
59
63
  if (poolUnderlyingRaw.length === 0)
60
64
  continue;
61
- const lpSource = (0, getLpTokenSourceRaw_1.default)(portfolio_core_1.NetworkId.solana, constants_1.platformId, constants_1.platformId, 'Basket', {
65
+ const lpSource = (0, getLpTokenSourceRaw_1.default)(portfolio_core_1.NetworkId.solana, constants_1.platformId, constants_1.platformId, {
62
66
  address: account.fundToken.toString(),
63
67
  decimals: 6,
64
68
  supplyRaw: account.supplyOutstanding,
65
- }, poolUnderlyingRaw);
69
+ }, poolUnderlyingRaw, 'Basket', (0, helpers_1.getSymbol)(account));
66
70
  lpSources.push(lpSource);
67
71
  }
68
- yield (0, runInBatch_1.default)(lpSources.map((s) => () => cache.setTokenPriceSource(s)), 20);
72
+ yield cache.setTokenPriceSources(lpSources);
69
73
  });
70
74
  const job = {
71
75
  id: `${constants_1.platformId}-baskets`,
@@ -1 +1 @@
1
- {"version":3,"file":"basketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/symmetry/basketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAyE;AAGzE,2CAA4E;AAC5E,+CAA8D;AAC9D,iDAAsD;AACtD,uCAAwD;AACxD,uCAAwC;AACxC,kFAA+E;AAC/E,+FAE8C;AAC9C,6EAAqD;AACrD,6DAA2E;AAE3E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,YAAY,GAAG,MAAM,IAAA,2CAAoB,EAC7C,UAAU,EACV,yBAAe,EACf,4BAAgB,CACjB,CAAC;IACF,IAAI,CAAC,YAAY;QAAE,OAAO;IAC1B,MAAM,aAAa,GAAG,YAAY,CAAC,IAAI;SACpC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;SACb,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;IAE/C,sCAA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,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Fund } from './structs';
2
+ export declare function getSymbol(fund: Fund): string | undefined;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSymbol = void 0;
4
+ function getSymbol(fund) {
5
+ const symbol = String.fromCharCode.apply(null, fund.symbol.slice(0, fund.symbolLength));
6
+ return symbol.length !== 0 ? symbol : undefined;
7
+ }
8
+ exports.getSymbol = getSymbol;
9
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/symmetry/helpers.ts"],"names":[],"mappings":";;;AAEA,SAAgB,SAAS,CAAC,IAAU;IAClC,MAAM,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CACtC,IAAI,EACJ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC,CACxC,CAAC;IACF,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AAClD,CAAC;AAND,8BAMC"}
@@ -52,12 +52,16 @@ export type Fund = {
52
52
  extraBytes: number[];
53
53
  };
54
54
  export declare const fundStruct: BeetStruct<Fund, Partial<Fund>>;
55
+ export declare enum OracleType {
56
+ Pyth = 0,
57
+ CustomSwitchboard = 1
58
+ }
55
59
  export type TokenSettings = {
56
60
  tokenMint: PublicKey;
57
61
  decimals: number;
58
62
  coingeckoId: number[];
59
63
  pdaTokenAccount: PublicKey;
60
- oracleType: number;
64
+ oracleType: OracleType;
61
65
  oracleAccount: PublicKey;
62
66
  oracleIndex: number;
63
67
  oracleConfidencePct: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tokenListStruct = exports.tokenSettingsStruct = exports.fundStruct = void 0;
3
+ exports.tokenListStruct = exports.tokenSettingsStruct = exports.OracleType = exports.fundStruct = void 0;
4
4
  const beet_solana_1 = require("@metaplex-foundation/beet-solana");
5
5
  const beet_1 = require("@metaplex-foundation/beet");
6
6
  const solana_1 = require("../../utils/solana");
@@ -53,6 +53,11 @@ exports.fundStruct = new beet_1.BeetStruct([
53
53
  ['uri', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 300)],
54
54
  ['extraBytes', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 394)],
55
55
  ], (args) => args);
56
+ var OracleType;
57
+ (function (OracleType) {
58
+ OracleType[OracleType["Pyth"] = 0] = "Pyth";
59
+ OracleType[OracleType["CustomSwitchboard"] = 1] = "CustomSwitchboard";
60
+ })(OracleType || (exports.OracleType = OracleType = {}));
56
61
  exports.tokenSettingsStruct = new beet_1.BeetStruct([
57
62
  ['tokenMint', beet_solana_1.publicKey],
58
63
  ['decimals', beet_1.u8],
@@ -73,6 +78,6 @@ exports.tokenSettingsStruct = new beet_1.BeetStruct([
73
78
  exports.tokenListStruct = new beet_1.FixableBeetStruct([
74
79
  ['buffer', (0, solana_1.blob)(8)],
75
80
  ['numTokens', solana_1.u64],
76
- ['list', (0, beet_1.uniformFixedSizeArray)(exports.tokenSettingsStruct, 20)],
81
+ ['list', (0, beet_1.uniformFixedSizeArray)(exports.tokenSettingsStruct, 200)],
77
82
  ], (args) => args);
78
83
  //# sourceMappingURL=structs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/symmetry/structs.ts"],"names":[],"mappings":";;;AAAA,kEAA6D;AAC7D,oDAKmC;AAGnC,+CAA+C;AAqDlC,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAA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,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,UAAU,EAAE,SAAE,CAAC;IAChB,CAAC,aAAa,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC;IAC9C,CAAC,iBAAiB,EAAE,uBAAS,CAAC;IAC9B,CAAC,YAAY,EAAE,SAAE,CAAC;IAClB,CAAC,eAAe,EAAE,uBAAS,CAAC;IAC5B,CAAC,aAAa,EAAE,SAAE,CAAC;IACnB,CAAC,qBAAqB,EAAE,SAAE,CAAC;IAC3B,CAAC,oBAAoB,EAAE,SAAE,CAAC;IAC1B,CAAC,wBAAwB,EAAE,SAAE,CAAC;IAC9B,CAAC,yBAAyB,EAAE,SAAE,CAAC;IAC/B,CAAC,QAAQ,EAAE,SAAE,CAAC;IACd,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,cAAc,EAAE,SAAE,CAAC;IACpB,CAAC,gBAAgB,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC;CAClD,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAqB,CAChC,CAAC;AAQW,QAAA,eAAe,GAAG,IAAI,wBAAiB,CAClD;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,MAAM,EAAE,IAAA,4BAAqB,EAAC,2BAAmB,EAAE,GAAG,CAAC,CAAC;CAC1D,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC"}
@@ -59,6 +59,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
59
59
  rewardAssetsValue: 0,
60
60
  value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
61
61
  yields: [],
62
+ name: tokenPrice.liquidityName,
62
63
  };
63
64
  if (!liquiditiesByPlatformId[tokenPrice.platformId]) {
64
65
  liquiditiesByPlatformId[tokenP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C,EAAE,QAAQ;IACtC,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -50,6 +50,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
50
50
  rewardAssetsValue: 0,
51
51
  value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
52
52
  yields: [],
53
+ name: tokenPrice.liquidityName,
53
54
  };
54
55
  const tag = (0, helpers_1.getLpTag)(tokenPrice.platformId, tokenPrice.elementName);
55
56
  if (!liquiditiesByTag[tag]) {
@@ -1 +1 @@
1
- {"version":3,"file":"sui.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/tokens/fetchers/sui.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AAIpC,oDAAsD;AACtD,wGAAgF;AAChF,4CAAoD;AACpD,0GAAkF;AAClF,wCAAkD;AAElD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7D,MAAM,UAAU,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACxE,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;IAC3E,MAAM,cAAc,GAA4B,IAAI,GAAG,EAAE,CAAC;IAC1D,YAAY,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;QAC1B,IAAI,CAAC,EAAE;YAAE,OAAO;QAChB,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,EA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