@sonarwatch/portfolio-plugins 0.12.149 → 0.12.151
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/plugins/jupiter/exchange/perpetualFetcher.js +19 -15
- package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
- package/src/plugins/kamino/constants.js +1 -0
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/kamino/index.js +1 -7
- package/src/plugins/kamino/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.12.151](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.150...plugins-0.12.151) (2024-08-21)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.12.150](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.149...plugins-0.12.150) (2024-08-20)
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
## [0.12.149](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.148...plugins-0.12.149) (2024-08-20)
|
6
14
|
|
7
15
|
|
package/package.json
CHANGED
@@ -18,7 +18,6 @@ const web3_js_1 = require("@solana/web3.js");
|
|
18
18
|
const clients_1 = require("../../../utils/clients");
|
19
19
|
const solana_1 = require("../../../utils/solana");
|
20
20
|
const filters_1 = require("../filters");
|
21
|
-
const helpers_1 = require("../../../utils/solana/pyth/helpers");
|
22
21
|
const constants_1 = require("./constants");
|
23
22
|
const structs_1 = require("./structs");
|
24
23
|
const usdFactor = new bignumber_js_1.default(Math.pow(10, 6));
|
@@ -28,29 +27,32 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
28
27
|
if (positionAccounts.length === 0 ||
|
29
28
|
positionAccounts.every((perp) => perp.sizeUsd.isLessThanOrEqualTo(0)))
|
30
29
|
return [];
|
31
|
-
const custodiesAccounts = yield
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
if (!perpPoolsArr)
|
30
|
+
const [custodiesAccounts, perpPoolsArr] = yield Promise.all([
|
31
|
+
cache.getItem(constants_1.custodiesKey, {
|
32
|
+
prefix: constants_1.platformId,
|
33
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
34
|
+
}),
|
35
|
+
cache.getItem(constants_1.perpPoolsKey, {
|
36
|
+
prefix: constants_1.platformId,
|
37
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
38
|
+
}),
|
39
|
+
]);
|
40
|
+
if (!custodiesAccounts || !perpPoolsArr)
|
42
41
|
return [];
|
43
42
|
const perpPools = new Map();
|
44
43
|
perpPoolsArr.forEach((a) => {
|
45
44
|
perpPools.set(a.pubkey.toString(), a);
|
46
45
|
});
|
47
46
|
const oraclesPubkeys = [];
|
47
|
+
const mints = new Set();
|
48
48
|
const custodyById = new Map();
|
49
49
|
custodiesAccounts.forEach((a) => {
|
50
50
|
oraclesPubkeys.push(new web3_js_1.PublicKey(a.oracle.oracleAccount));
|
51
51
|
custodyById.set(a.pubkey, a);
|
52
|
+
mints.add(a.mint.toString());
|
52
53
|
});
|
53
|
-
const
|
54
|
+
const currentPriceById = yield cache.getTokenPricesAsMap(Array.from(mints), portfolio_core_1.NetworkId.solana);
|
55
|
+
// const pythPricesByAccount = await getPythPricesAsMap(client, oraclesPubkeys);
|
54
56
|
const levPositions = [];
|
55
57
|
for (const position of positionAccounts) {
|
56
58
|
const { collateralUsd, sizeUsd, price, side, cumulativeInterestSnapshot } = position;
|
@@ -67,9 +69,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
67
69
|
if (!perpPool)
|
68
70
|
continue;
|
69
71
|
const entryPrice = price.dividedBy(usdFactor);
|
70
|
-
const currentPrice = pythPricesByAccount.get(custody.oracle.oracleAccount);
|
71
|
-
|
72
|
+
// const currentPrice = pythPricesByAccount.get(custody.oracle.oracleAccount);
|
73
|
+
const currentTokenPrice = currentPriceById.get(custody.mint.toString());
|
74
|
+
if (!currentTokenPrice)
|
72
75
|
continue;
|
76
|
+
const currentPrice = currentTokenPrice.price;
|
73
77
|
const sizeValue = sizeUsd.dividedBy(usdFactor);
|
74
78
|
const size = sizeValue.div(entryPrice);
|
75
79
|
const leverage = sizeUsd.dividedBy(collateralUsd);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/perpetualFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,oDAAyD;AACzD,kDAAgF;AAChF,wCAAuD;AAEvD,
|
1
|
+
{"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/perpetualFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,oDAAyD;AACzD,kDAAgF;AAChF,wCAAuD;AAEvD,2CAKqB;AACrB,uCAAiD;AAEjD,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AACzC,MAAM,QAAQ,GAAoB,CAChC,KAAa,EACb,KAAY,EACyB,EAAE;IACvC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,gBAAgB,GAAG,MAAM,IAAA,iCAAwB,EACrD,MAAM,EACN,wBAAc,EACd,0BAAc,EACd,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IACE,gBAAgB,CAAC,MAAM,KAAK,CAAC;QAC7B,gBAAgB,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CA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AAe,OAAO,CAAC"}
|
@@ -94,6 +94,7 @@ exports.lendingConfigs = new Map([
|
|
94
94
|
},
|
95
95
|
],
|
96
96
|
['ByYiZxp8QrdN9qbdtaAiePN8AAr3qvTPppNJDpf5DVJ5', { name: 'Altcoins Market' }],
|
97
|
+
['BJnbcRHqvppTyGesLzWASGKnmnF1wq9jZu6ExrjT7wvF', { name: 'Ethena Market' }],
|
97
98
|
]);
|
98
99
|
exports.marketsKey = `markets`;
|
99
100
|
exports.reservesKey = `reserves`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAK/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,qCAAqC,kBAAU,OAAO;IAC7D,OAAO,EAAE,yBAAyB;IAClC,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG,6CAA6C,CAAC;AACzD,QAAA,YAAY,GAAG,CAAC,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,gBAAgB,GAC3B,iDAAiD,CAAC;AAEvC,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,OAAO,CAAC;AACnB,QAAA,UAAU,GAAG,8CAA8C,CAAC;AAE5D,QAAA,cAAc,GAAqC,IAAI,GAAG,CAAC;IACtE;QACE,8CAA8C;QAC9C;YACE,IAAI,EAAE,aAAa;YACnB,aAAa,EAAE;gBACb;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;gBACD;oBACE,8CAA8C;oBAC9C,6CAA6C;iBAC9C;gBACD;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;gBACD;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;gBACD;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;gBACD;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;aACF;YACD,aAAa,EAAE;gBACb;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;gBACD;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;gBACD;oBACE,6CAA6C;oBAC7C,8CAA8C;iBAC/C;gBACD;oBACE,6CAA6C;oBAC7C,8CAA8C;iBAC/C;gBACD;oBACE,6CAA6C;oBAC7C,8CAA8C;iBAC/C;gBACD;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;gBACD;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;aACF;SACF;KACF;IACD;QACE,8CAA8C;QAC9C;YACE,IAAI,EAAE,YAAY;YAClB,aAAa,EAAE;gBACb;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;aACF;SACF;KACF;IACD,CAAC,8CAA8C,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAK/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,qCAAqC,kBAAU,OAAO;IAC7D,OAAO,EAAE,yBAAyB;IAClC,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG,6CAA6C,CAAC;AACzD,QAAA,YAAY,GAAG,CAAC,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAA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;CAC5E,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,WAAW,GAAG,UAAU,CAAC;AACzB,QAAA,gBAAgB,GAAmB;IAC9C,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;IACvB,EAAE,EAAE,WAAW;IACf,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,6BAA6B;IAC1C,SAAS,EAAE,oCAAoC;IAC/C,KAAK,EAAE,+CAA+C;IACtD,IAAI,EAAE,IAAI;CACX,CAAC;AACW,QAAA,gBAAgB,GAAmB;IAC9C,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,SAAS;IACnB,EAAE,EAAE,WAAW;IACf,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,6BAA6B;IAC1C,SAAS,EAAE,6CAA6C;IACxD,KAAK,EAAE,+CAA+C;IACtD,IAAI,EAAE,IAAI;CACX,CAAC"}
|
@@ -11,15 +11,9 @@ const reservesJob_1 = __importDefault(require("./reservesJob"));
|
|
11
11
|
const marketsJob_1 = __importDefault(require("./marketsJob"));
|
12
12
|
const lendsFetcher_1 = __importDefault(require("./lendsFetcher"));
|
13
13
|
const farmsFetcher_1 = __importDefault(require("./farmsFetcher"));
|
14
|
-
const s2AirdropFetcher_1 = require("./s2AirdropFetcher");
|
15
14
|
const s1AirdropFetcher_1 = require("./s1AirdropFetcher");
|
16
15
|
exports.platforms = [constants_1.platform];
|
17
16
|
exports.jobs = [poolsJob_1.default, reservesJob_1.default, farmsJob_1.default, marketsJob_1.default];
|
18
|
-
exports.fetchers = [
|
19
|
-
lendsFetcher_1.default,
|
20
|
-
farmsFetcher_1.default,
|
21
|
-
s1AirdropFetcher_1.fetcher,
|
22
|
-
s2AirdropFetcher_1.fetcher,
|
23
|
-
];
|
17
|
+
exports.fetchers = [lendsFetcher_1.default, farmsFetcher_1.default, s1AirdropFetcher_1.fetcher];
|
24
18
|
exports.airdropFetchers = [s1AirdropFetcher_1.airdropFetcher];
|
25
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,0DAAkC;AAClC,0DAAkC;AAClC,gEAAwC;AACxC,8DAAsC;AACtC,kEAA0C;AAC1C,kEAA0C;AAC1C,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,0DAAkC;AAClC,0DAAkC;AAClC,gEAAwC;AACxC,8DAAsC;AACtC,kEAA0C;AAC1C,kEAA0C;AAC1C,yDAG4B;AAEf,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,EAAE,qBAAW,EAAE,kBAAQ,EAAE,oBAAU,CAAC,CAAC;AAC5D,QAAA,QAAQ,GAAc,CAAC,sBAAY,EAAE,sBAAY,EAAE,0BAAS,CAAC,CAAC;AAC9D,QAAA,eAAe,GAAqB,CAAC,iCAAgB,CAAC,CAAC"}
|