@sonarwatch/portfolio-plugins 0.12.153 → 0.12.154
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.12.154](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.153...plugins-0.12.154) (2024-08-27)
|
6
|
+
|
7
|
+
|
8
|
+
|
5
9
|
## [0.12.153](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.152...plugins-0.12.153) (2024-08-26)
|
6
10
|
|
7
11
|
|
package/package.json
CHANGED
@@ -24,12 +24,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
24
24
|
const userFarmAccountsPromises = farmsJob_1.userFarmConfigs.map((userFarmConfig) => (0, solana_1.getParsedProgramAccounts)(client, userFarmConfig.struct, userFarmConfig.programId, userFarmConfig.filters(owner)));
|
25
25
|
const userFarmAccounts = (yield Promise.allSettled(userFarmAccountsPromises))
|
26
26
|
.flat(1)
|
27
|
-
.map((result) =>
|
28
|
-
if (result.status === 'fulfilled') {
|
29
|
-
return result.value;
|
30
|
-
}
|
31
|
-
return [];
|
32
|
-
})
|
27
|
+
.map((result) => (result.status === 'fulfilled' ? result.value : []))
|
33
28
|
.flat();
|
34
29
|
if (userFarmAccounts.length === 0)
|
35
30
|
return [];
|
@@ -38,12 +33,15 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
38
33
|
farmsInfo.forEach((farmInfo) => farmInfo
|
39
34
|
? farmsInfoMap.set(farmInfo.account.pubkey.toString(), farmInfo)
|
40
35
|
: undefined);
|
36
|
+
const rayStakingPubkey = (0, helpers_1.getStakePubKey)(owner).toString();
|
41
37
|
const liquiditiesWithoutRewards = [];
|
42
38
|
const elementsWithRewards = [];
|
43
39
|
for (let i = 0; i < userFarmAccounts.length; i += 1) {
|
44
40
|
const rewardAssets = [];
|
45
41
|
const assets = [];
|
46
42
|
const userFarmAccount = userFarmAccounts[i];
|
43
|
+
if (userFarmAccount.pubkey.toString() === rayStakingPubkey)
|
44
|
+
continue;
|
47
45
|
const farmInfo = farmsInfoMap.get(userFarmAccount.poolId.toString());
|
48
46
|
if (!farmInfo)
|
49
47
|
continue;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AAGpC,2CAAyC;AACzC,iDAAsD;AACtD,
|
1
|
+
{"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AAGpC,2CAAyC;AACzC,iDAAsD;AACtD,uCAAiE;AACjE,+CAA6E;AAC7E,yCAA6C;AAE7C,uGAA+E;AAG/E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,wBAAwB,GAAG,0BAAe,CAAC,GAAG,CAAC,CAAC,cAAc,EAAE,EAAE,CACtE,IAAA,iCAAwB,EACtB,MAAM,EACN,cAAc,CAAC,MAAM,EACrB,cAAc,CAAC,SAAS,EACxB,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,CAC9B,CACF,CAAC;IACF,MAAM,gBAAgB,GAAG,CAAC,MAAM,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;SAC1E,IAAI,CAAC,CAAC,CAAC;SACP,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;SACpE,IAAI,EAAE,CAAC;IAEV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