@sonarwatch/portfolio-plugins 0.11.190 → 0.11.192
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 +2 -2
- package/src/orphanPlatorms.js +0 -8
- package/src/orphanPlatorms.js.map +1 -1
- package/src/plugins/flash/stakeFetcher.js +9 -10
- package/src/plugins/flash/stakeFetcher.js.map +1 -1
- package/src/plugins/flexlend/constants.js +4 -4
- package/src/plugins/flexlend/constants.js.map +1 -1
- package/src/plugins/jupiter/launchpad/allocationsFetcher.js.map +1 -1
- package/src/plugins/jupiter/pricingJob.js +20 -1
- package/src/plugins/jupiter/pricingJob.js.map +1 -1
- package/src/plugins/kamino/airdropFetcher.js +21 -46
- package/src/plugins/kamino/airdropFetcher.js.map +1 -1
- package/src/plugins/kamino/constants.d.ts +4 -0
- package/src/plugins/kamino/constants.js +5 -1
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/meteora/multiTokenPools.json +9 -0
- package/src/utils/misc/getLpTokenSource.js +6 -0
- package/src/utils/misc/getLpTokenSource.js.map +1 -1
- package/src/utils/misc/getLpUnderlyingTokenSource.js +5 -4
- package/src/utils/misc/getLpUnderlyingTokenSource.js.map +1 -1
- package/src/plugins/jupiter/exchange/poolJob.d.ts +0 -3
- package/src/plugins/jupiter/exchange/poolJob.js +0 -77
- package/src/plugins/jupiter/exchange/poolJob.js.map +0 -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.11.192](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.191...plugins-0.11.192) (2024-05-02)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.11.191](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.190...plugins-0.11.191) (2024-04-30)
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
## [0.11.190](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.189...plugins-0.11.190) (2024-04-26)
|
6
14
|
|
7
15
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.11.
|
3
|
+
"version": "0.11.192",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"web3-v1": "npm:web3@^1.5.0"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
44
|
-
"@sonarwatch/portfolio-core": "0.11.
|
44
|
+
"@sonarwatch/portfolio-core": "0.11.192"
|
45
45
|
},
|
46
46
|
"main": "./src/index.js",
|
47
47
|
"types": "./src/index.d.ts"
|
package/src/orphanPlatorms.js
CHANGED
@@ -57,14 +57,6 @@ const otphanPlatforms = [
|
|
57
57
|
image: 'https://sonar.watch/img/platforms/stakewise.png',
|
58
58
|
website: 'https://stakewise.io/',
|
59
59
|
},
|
60
|
-
{
|
61
|
-
id: 'cloneprotocol',
|
62
|
-
defiLlamaId: 'clone-protocol',
|
63
|
-
name: 'Clone Protocol',
|
64
|
-
image: 'https://sonar.watch/img/platforms/cloneprotocol.webp',
|
65
|
-
website: 'https://clone.so/',
|
66
|
-
twitter: 'https://twitter.com/CloneProtocol',
|
67
|
-
},
|
68
60
|
{
|
69
61
|
id: 'sanctum',
|
70
62
|
defiLlamaId: 'parent#sanctum', // from https://defillama.com/docs/api
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"orphanPlatorms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/orphanPlatorms.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAe;IAClC;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,SAAS,EAAE,sCAAsC;QAC9D,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,+CAA+C;QACtD,OAAO,EAAE,8BAA8B;KACxC;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,wDAAwD;QAC/D,OAAO,EAAE,kCAAkC;KAC5C;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,8CAA8C;QACrD,OAAO,EAAE,0BAA0B;KACpC;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,yDAAyD;QAChE,OAAO,EAAE,4DAA4D;KACtE;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,6BAA6B;KACvC;IACD;QACE,EAAE,EAAE,MAAM;QACV,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,4CAA4C;QACnD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,WAAW;QACf,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,iDAAiD;QACxD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"orphanPlatorms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/orphanPlatorms.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAe;IAClC;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,SAAS,EAAE,sCAAsC;QAC9D,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,+CAA+C;QACtD,OAAO,EAAE,8BAA8B;KACx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, void 0, void 0, function* (
|
|
72
72
|
tags: ['Deactivation Pending'],
|
73
73
|
}));
|
74
74
|
}
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
75
|
+
const watermark = stakeAccount.stakeStats.activeAmount
|
76
|
+
.multipliedBy(poolInfo.rewardPerLp)
|
77
|
+
.dividedBy(flpFacotr);
|
78
|
+
const unclaimedAmount = watermark
|
79
|
+
.minus(stakeAccount.rewardSnapshot)
|
80
|
+
.plus(stakeAccount.unclaimedRewards)
|
81
|
+
.times(stakeAccount.feeShareBps)
|
82
|
+
.dividedBy(Math.pow(10, 10));
|
83
|
+
if (!unclaimedAmount.isZero())
|
84
84
|
assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(solana_1.usdcSolanaMint, unclaimedAmount.toNumber(), portfolio_core_1.NetworkId.solana, usdcTokenPrice)), { attributes: { isClaimable: true } }));
|
85
|
-
}
|
86
85
|
if (assets.length !== 0)
|
87
86
|
elements.push({
|
88
87
|
networkId: portfolio_core_1.NetworkId.solana,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakeFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/stakeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAmD;AACnD,iDAAsD;AACtD,+CAG4B;AAC5B,uCAA2C;AAC3C,qGAA6E;AAC7E,uCAAoC;AAEpC,6DAA6D;AAE7D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACvD,MAAM,EACN,wBAAc,EACd,IAAA,iBAAO,EAAC,KAAK,CAAC,CACf,CAAC;IACF,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAA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AU,CAAC,mBAAmB,CAAC,MAAM,EAAE,EAAE,CAAC;YAC1D,MAAM,MAAM,GACV,YAAY,CAAC,UAAU,CAAC,mBAAmB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YACnE,MAAM,CAAC,IAAI,CACT,IAAA,gCAAsB,EACpB,aAAa,CAAC,OAAO,EACrB,MAAM,CAAC,QAAQ,EAAE,EACjB,0BAAS,CAAC,MAAM,EAChB,aAAa,EACb,SAAS,EACT;gBACE,IAAI,EAAE,CAAC,sBAAsB,CAAC;aAC/B,CACF,CACF,CAAC;QACJ,CAAC;QAED,
|
1
|
+
{"version":3,"file":"stakeFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/stakeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAmD;AACnD,iDAAsD;AACtD,+CAG4B;AAC5B,uCAA2C;AAC3C,qGAA6E;AAC7E,uCAAoC;AAEpC,6DAA6D;AAE7D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACvD,MAAM,EACN,wBAAc,EACd,IAAA,iBAAO,EAAC,KAAK,CAAC,CACf,CAAC;IACF,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IAElE,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,OAAO,CAAa,oBAAQ,EAAE;QAC1D,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,OAAO,CAAgB,wBAAY,EAAE;QAC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web3_js_1 = require("@solana/web3.js");
|
|
5
5
|
exports.platformId = 'flexlend';
|
6
6
|
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
|
-
name: '
|
9
|
-
image: 'https://sonar.watch/img/platforms/
|
8
|
+
name: 'LuLo',
|
9
|
+
image: 'https://sonar.watch/img/platforms/lulo.webp',
|
10
10
|
defiLlamaId: 'flexlend',
|
11
|
-
website: 'https://
|
12
|
-
twitter: 'https://twitter.com/
|
11
|
+
website: 'https://www.lulo.fi',
|
12
|
+
twitter: 'https://twitter.com/uselulo',
|
13
13
|
};
|
14
14
|
exports.flexProgramId = new web3_js_1.PublicKey('FL3X2pRsQ9zHENpZSKDRREtccwJuei8yg9fwDu9UN69Q');
|
15
15
|
exports.AUTOMATION_PUBLIC_KEY = new web3_js_1.PublicKey('8PWR75ppAGonv9dXStjficjXmdsuDKmDoVNcy4oYhAMs');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flexlend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flexlend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,6BAA6B;CACvC,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,8CAA8C,CAC/C,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"allocationsFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/allocationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,kDAA6C;AAE7C,gEAAqC;AAGrC,oDAAyD;AAEzD,wCAA+C;AAC/C,wGAAgF;AAChF,uCAA8C;AAC9C,2CAA+E;AAC/E,kDAAsE;AAEtE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,WAAW,GACf,MAAM,OAAO,CAAC,GAAG,CACf,wBAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;YACnC,OAAO,eAAK;iBACT,GAAG,CAAC,GAAG,qBAAS,IAAI,IAAI,CAAC,IAAI,IAAI,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iBAC5D,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACH,CAAC;IAEJ,MAAM,gBAAgB,GAAkB,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAyB,EAAE,CAAC;IACxC,MAAM,aAAa,GAAgB,EAAE,CAAC;IACtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC5C,MAAM,KAAK,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI;YAAE,SAAS;QAEpC,gBAAgB,CAAC,IAAI,CAAC,wBA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,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,UAAU,EACV,SAAS,EACT,EAAE,WAAW,EAAE,IAAI,EAAE,CACtB,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,
|
1
|
+
{"version":3,"file":"allocationsFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/allocationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,kDAA6C;AAE7C,gEAAqC;AAGrC,oDAAyD;AAEzD,wCAA+C;AAC/C,wGAAgF;AAChF,uCAA8C;AAC9C,2CAA+E;AAC/E,kDAAsE;AAEtE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,WAAW,GACf,MAAM,OAAO,CAAC,GAAG,CACf,wBAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;YACnC,OAAO,eAAK;iBACT,GAAG,CAAC,GAAG,qBAAS,IAAI,IAAI,CAAC,IAAI,IAAI,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iBAC5D,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACH,CAAC;IAEJ,MAAM,gBAAgB,GAAkB,EAAE,CAAC;IAC3C,MAAM,MAAM,GAA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,EAAE,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAE/C,MAAM,UAAU,GAAG,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,IAAI,sBAAS,CAAC,KAAK,CAAC,MAAM,CAAC;aACvC,SAAS,CAAC,SAAA,EAAE,EAAI,QAAQ,CAAA,CAAC;aACzB,QAAQ,EAAE,CAAC;QACd,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,IAAI,EACJ,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,UAAU,EACV,SAAS,EACT,EAAE,WAAW,EAAE,IAAI,EAAE,CACtB,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE;gBACJ,MAAM;aACP;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -17,11 +17,11 @@ const constants_2 = require("../tokens/constants");
|
|
17
17
|
const getMultipleDecimalsAsMap_1 = require("../../utils/solana/getMultipleDecimalsAsMap");
|
18
18
|
const clients_1 = require("../../utils/clients");
|
19
19
|
const mints = [
|
20
|
-
'HUBsveNpjo5pWqNkH57QzxjQASdTVXcSK7bVKTSZtcSX', // SolanaHub staked SOL
|
21
20
|
'xLfNTYy76B8Tiix3hA51Jyvc1kMSFV4sPdR7szTZsRu', // xLifinity
|
22
21
|
'BANXbTpN8U2cU41FjPxe2Ti37PiT5cCxLUKDQZuJeMMR', // Banx
|
23
22
|
'4LLbsb5ReP3yEtYzmXewyGjcir5uXtKFURtaEUVC2AHs', // Parcl
|
24
23
|
'SHARKSYJjqaNyxVfrpnBN9pjgkhwDhatnMyicWPnr1s', // Shark
|
24
|
+
'KMNo3nJsBXfcpJTVhZcXLW7RmTwTt4GVFE7suUBo9sS', // Kamino
|
25
25
|
'DdFPRnccQqLD4zCHrBqdY95D6hvw6PLWp9DEXj1fLCL9', // Wrapped USDC (Allbridge from Ethereum)
|
26
26
|
'eqKJTf1Do4MDPyKisMYqVaUFpkEFAs3riGF3ceDH2Ca', // Wrapped USDC (Allbridge from Polygon)
|
27
27
|
'8Yv9Jz4z7BUHP68dz8E8m3tMe6NKgpMUKn8KVqrPA6Fr', // Wrapped USDC (Allbridge from Avalanche)
|
@@ -37,6 +37,25 @@ const mints = [
|
|
37
37
|
'5RpUwQ8wtdPCZHhu6MERp2RGrpobsbZ6MH5dDHkUjs2', // BUSD Token (Wormhole from BSC)
|
38
38
|
'FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA', // USD Coin (Wormhole from BSC)
|
39
39
|
'8qJSyQprMC57TWKaYEmetUR3UUiTP2M3hXdcvFhkZdmv', // Tether USD (Wormhole from BSC)
|
40
|
+
// Sanctum / LSTs
|
41
|
+
'HUBsveNpjo5pWqNkH57QzxjQASdTVXcSK7bVKTSZtcSX',
|
42
|
+
'pWrSoLAhue6jUxUkbWgmEy5rD9VJzkFmvfTDV5KgNuu',
|
43
|
+
'st8QujHLPsX3d6HG9uQg9kJ91jFxUgruwsb1hyYXSNd',
|
44
|
+
'strng7mqqc1MBJJV6vMzYbEqnwVGvKKGKedeCvtktWA',
|
45
|
+
'suPer8CPwxoJPQ7zksGMwFvjBQhjAHwUMmPV4FVatBw',
|
46
|
+
'vSoLxydx6akxyMD9XEcPvGYNGq6Nn66oqVb3UkGkei7',
|
47
|
+
'Zippybh3S5xYYam2nvL6hVJKz1got6ShgV4DyD1XQYF',
|
48
|
+
'CgnTSoL3DgY9SFHxcLj6CgCgKKoTBr6tp4CPAEWy25DE',
|
49
|
+
'GRJQtWwdJmp5LLpy8JWjPgn5FnLyqSJGNhn5ZnCTFUwM',
|
50
|
+
'edge86g9cVz87xcpKpy3J77vbp4wYd9idEV562CCntt',
|
51
|
+
'he1iusmfkpAdwvxLNGV8Y1iSbj4rUy6yMhEA3fotn9A',
|
52
|
+
'pathdXw4He1Xk3eX84pDdDZnGKEme3GivBamGCVPZ5a',
|
53
|
+
'7Q2afV64in6N6SeZsAAB81TJzwDoD6zpqmHkzi9Dcavn',
|
54
|
+
'jupSoLaHXQiZZTSfEWMTRRgpnyFm8f6sZdosWBjx93v',
|
55
|
+
'LnTRntk2kTfWEY6cVB8K9649pgJbt6dJLS1Ns1GZCWg',
|
56
|
+
'phaseZSfPxTDBpiVb96H4XFSD8xHeHxZre5HerehBJG',
|
57
|
+
'picobAEvs6w7QEknPce34wAE4gknZA9v5tTonnmHYdX',
|
58
|
+
'pumpkinsEq8xENVZE6QgTS93EN4r9iKvNxNALS1ooyp',
|
40
59
|
];
|
41
60
|
const vsToken = portfolio_core_1.solanaNativeWrappedAddress;
|
42
61
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/pricingJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAIoC;AACpC,6CAA4C;AAG5C,oDAAkD;AAClD,uCAA6C;AAC7C,mDAA2D;AAC3D,0FAAuF;AACvF,iDAAsD;AAEtD,MAAM,KAAK,GAAG;IACZ,
|
1
|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kBAAe,GAAG,CAAC"}
|
@@ -14,62 +14,37 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
16
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
+
const axios_1 = __importDefault(require("axios"));
|
17
18
|
const constants_1 = require("./constants");
|
18
|
-
const
|
19
|
-
const
|
20
|
-
const
|
21
|
-
const
|
19
|
+
const helpers_1 = require("../jupiter/helpers");
|
20
|
+
const clients_1 = require("../../utils/clients");
|
21
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
22
|
+
const kmnoFactor = new bignumber_js_1.default(Math.pow(10, constants_1.kmnoDecimals));
|
22
23
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
23
|
-
const
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
}),
|
28
|
-
cache.getItem(owner, {
|
29
|
-
prefix: constants_1.allocationPrefix,
|
30
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
31
|
-
}),
|
32
|
-
]);
|
33
|
-
let amount;
|
34
|
-
if (cachedAllocation) {
|
35
|
-
amount = new bignumber_js_1.default(cachedAllocation);
|
36
|
-
}
|
37
|
-
else {
|
38
|
-
const allocations = yield (0, common_1.getAllocationsBySeason)(owner, 1);
|
39
|
-
if (allocations) {
|
40
|
-
amount = allocations
|
41
|
-
.map((alloc) => new bignumber_js_1.default(alloc.quantity))
|
42
|
-
.reduce((alloc, sum) => sum.plus(alloc), new bignumber_js_1.default(0));
|
43
|
-
yield cache.setItem(owner, amount.toNumber(), {
|
44
|
-
prefix: constants_1.allocationPrefix,
|
45
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
46
|
-
ttl: oneDayInMs,
|
47
|
-
});
|
48
|
-
}
|
49
|
-
}
|
50
|
-
if (!amount || amount.isZero())
|
24
|
+
const allocation = yield axios_1.default
|
25
|
+
.get(constants_1.distributorApi + owner)
|
26
|
+
.catch(() => null);
|
27
|
+
if (!allocation)
|
51
28
|
return [];
|
52
|
-
const
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
attributes: { isClaimable: false },
|
63
|
-
};
|
29
|
+
const pda = (0, helpers_1.deriveClaimStatus)(owner, allocation.data.merkle_tree, constants_1.distributorProgram);
|
30
|
+
const client = (0, clients_1.getClientSolana)();
|
31
|
+
const claimStatus = yield client.getAccountInfo(pda);
|
32
|
+
if (claimStatus)
|
33
|
+
return [];
|
34
|
+
const kmnoTokenPrice = yield cache.getTokenPrice(constants_1.kmnoMint, portfolio_core_1.NetworkId.solana);
|
35
|
+
const amount = (0, bignumber_js_1.default)(allocation.data.amount)
|
36
|
+
.dividedBy(kmnoFactor)
|
37
|
+
.toNumber();
|
38
|
+
const asset = (0, tokenPriceToAssetToken_1.default)(constants_1.kmnoMint, amount, portfolio_core_1.NetworkId.solana, kmnoTokenPrice, undefined, { isClaimable: true });
|
64
39
|
return [
|
65
40
|
{
|
66
|
-
value: asset.value,
|
67
41
|
type: portfolio_core_1.PortfolioElementType.multiple,
|
68
42
|
platformId: constants_1.platformId,
|
69
|
-
name: 'Season 1
|
43
|
+
name: 'Season 1 Airdrop',
|
70
44
|
networkId: portfolio_core_1.NetworkId.solana,
|
71
45
|
label: 'Rewards',
|
72
46
|
data: { assets: [asset] },
|
47
|
+
value: asset.value,
|
73
48
|
},
|
74
49
|
];
|
75
50
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/k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,sBAAU;YACV,IAAI,EAAE,kBAAkB;YACxB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE;YACzB,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;KACF,CAAC;AACJ,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"}
|
@@ -3,8 +3,12 @@ import { Platform } from '@sonarwatch/portfolio-core';
|
|
3
3
|
import { LendingMarketConfig } from './types';
|
4
4
|
export declare const platformId = "kamino";
|
5
5
|
export declare const platform: Platform;
|
6
|
+
export declare const kmnoMint = "KMNo3nJsBXfcpJTVhZcXLW7RmTwTt4GVFE7suUBo9sS";
|
7
|
+
export declare const kmnoDecimals = 6;
|
6
8
|
export declare const programId: PublicKey;
|
7
9
|
export declare const allocationApiUrl = "https://api.hubbleprotocol.io/v2/airdrop/users/";
|
10
|
+
export declare const distributorApi = "https://api.kamino.finance/distributor/user/";
|
11
|
+
export declare const distributorProgram = "KdisqEcXbXKaTrBFqeDLhMmBvymLTwj9GmhDcdJyGat";
|
8
12
|
export declare const allocationPrefix = "kamino/allocation";
|
9
13
|
export declare const klendProgramId: PublicKey;
|
10
14
|
export declare const farmProgramId: PublicKey;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.reservesKey = exports.marketsKey = exports.lendingConfigs = exports.mainMarket = exports.farmsKey = exports.farmProgramId = exports.klendProgramId = exports.allocationPrefix = exports.allocationApiUrl = exports.programId = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.reservesKey = exports.marketsKey = exports.lendingConfigs = exports.mainMarket = exports.farmsKey = exports.farmProgramId = exports.klendProgramId = exports.allocationPrefix = exports.distributorProgram = exports.distributorApi = exports.allocationApiUrl = exports.programId = exports.kmnoDecimals = exports.kmnoMint = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'kamino';
|
6
6
|
exports.platform = {
|
@@ -10,8 +10,12 @@ exports.platform = {
|
|
10
10
|
website: 'https://kamino.finance/',
|
11
11
|
defiLlamaId: 'parent#kamino-finance',
|
12
12
|
};
|
13
|
+
exports.kmnoMint = 'KMNo3nJsBXfcpJTVhZcXLW7RmTwTt4GVFE7suUBo9sS';
|
14
|
+
exports.kmnoDecimals = 6;
|
13
15
|
exports.programId = new web3_js_1.PublicKey('6LtLpnUFNByNXLyCoK9wA2MykKAmQNZKBdY8s47dehDc');
|
14
16
|
exports.allocationApiUrl = 'https://api.hubbleprotocol.io/v2/airdrop/users/';
|
17
|
+
exports.distributorApi = 'https://api.kamino.finance/distributor/user/';
|
18
|
+
exports.distributorProgram = 'KdisqEcXbXKaTrBFqeDLhMmBvymLTwj9GmhDcdJyGat';
|
15
19
|
exports.allocationPrefix = `${exports.platformId}/allocation`;
|
16
20
|
exports.klendProgramId = new web3_js_1.PublicKey('KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD');
|
17
21
|
exports.farmProgramId = new web3_js_1.PublicKey('FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,qCAAqC,kBAAU,MAAM;IAC5D,OAAO,EAAE,yBAAyB;IAClC,WAAW,EAAE,uBAAuB;CACrC,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,qCAAqC,kBAAU,MAAM;IAC5D,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,8CAA8C,CAAC;AAEhE,QAAA,kBAAkB,GAAG,6CAA6C,CAAC;AACnE,QAAA,gBAAgB,GAAG,GAAG,kBAAU,aAAa,CAAC;AAE9C,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;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,CAAC,8CAA8C,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;IACxE,CAAC,8CAA8C,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;CAC9E,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,WAAW,GAAG,UAAU,CAAC"}
|
@@ -145,5 +145,14 @@
|
|
145
145
|
"2vhaJumb3hbRLUSDDy3Qk8KGGfzqThdwo8ai4tAvztGh",
|
146
146
|
"CC3FtDKTueNP1pmgtNWvKHZwbznyigSaiGhKsQYAfufD"
|
147
147
|
]
|
148
|
+
},
|
149
|
+
{
|
150
|
+
"symbol": "abUSDC-3Pool",
|
151
|
+
"address": "8d8CouP9qR1pk6nL9VKXcSbxswbH9vmDRUMBt4nhnADz",
|
152
|
+
"reserveAccounts": [
|
153
|
+
"FQYcwzmrW9k86AxBt8Zz72LRoVakRvjpdX9dXEJokqAS",
|
154
|
+
"DfeJ5Tq8mDxEoFPDHf3wBvZBWHUCRS5NN9GrZeWK3bqb",
|
155
|
+
"Bj1KkZSDyoRK2tyj7Wi7AWGD7sZVT7B5P8JWtiDRtFRR"
|
156
|
+
]
|
148
157
|
}
|
149
158
|
]
|
@@ -6,6 +6,12 @@ const getLpUnderlyingTokenSource_1 = require("./getLpUnderlyingTokenSource");
|
|
6
6
|
function getLpTokenSource(params) {
|
7
7
|
const { poolUnderlyings, liquidityName, elementName, lpDetails, platformId, sourceId, networkId, priceUnderlyings, } = params;
|
8
8
|
const sources = [];
|
9
|
+
// Verify underlyings weights
|
10
|
+
const totalWeight = poolUnderlyings.reduce((partialSum, p) => partialSum + p.weight, 0);
|
11
|
+
if (totalWeight > 1.01)
|
12
|
+
throw new Error(`Weights are greater than 1: ${totalWeight}`);
|
13
|
+
if (totalWeight < 0.99)
|
14
|
+
throw new Error(`Weights are smaller than 1: ${totalWeight}`);
|
9
15
|
// Price underlyings
|
10
16
|
if (priceUnderlyings) {
|
11
17
|
const uSources = (0, getLpUnderlyingTokenSource_1.getLpUnderlyingTokenSource)({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getLpTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpTokenSource.ts"],"names":[],"mappings":";;;AAAA,+DAIoC;AACpC,6EAGsC;AAmBtC,SAAgB,gBAAgB,CAC9B,MAA8B;IAE9B,MAAM,EACJ,eAAe,EACf,aAAa,EACb,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAQ,EACR,SAAS,EACT,gBAAgB,GACjB,GAAG,MAAM,CAAC;IACX,MAAM,OAAO,GAAuB,EAAE,CAAC;IAEvC,oBAAoB;IACpB,IAAI,gBAAgB,EAAE,CAAC;QACrB,MAAM,QAAQ,GAAG,IAAA,uDAA0B,EAAC;YAC1C,SAAS;YACT,QAAQ,EAAE,SAAS,CAAC,OAAO;YAC3B,eAAe;SAChB,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAED,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;QAAE,OAAO,OAAO,CAAC;IAC/D,WAAW;IACX,MAAM,KAAK,GACT,eAAe,CAAC,MAAM;IACpB,oEAAoE;IACpE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,aAAa,GAAG,CAAC,CAAC,UAAW,CAAC,KAAK,EACvD,CAAC,CACF,GAAG,SAAS,CAAC,MAAM,CAAC;IACvB,MAAM,QAAQ,GAAqB;QACjC,SAAS;QACT,UAAU;QACV,EAAE,EAAE,QAAQ;QACZ,WAAW;QACX,aAAa;QACb,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,IAAA,mCAAkB,EAAC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC;QACzD,KAAK;QACL,QAAQ,EAAE,SAAS,CAAC,QAAQ;QAC5B,WAAW,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACvC,SAAS;YACT,OAAO,EAAE,IAAA,mCAAkB,EAAC,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC;YACjD,oEAAoE;YACpE,KAAK,EAAE,CAAC,CAAC,UAAW,CAAC,KAAK;YAC1B,WAAW,EAAE,CAAC,CAAC,aAAa,GAAG,SAAS,CAAC,MAAM;YAC/C,QAAQ,EAAE,CAAC,CAAC,QAAQ;SACrB,CAAC,CAAC;QACH,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;KACtB,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,OAAO,OAAO,CAAC;AACjB,CAAC;
|
1
|
+
{"version":3,"file":"getLpTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpTokenSource.ts"],"names":[],"mappings":";;;AAAA,+DAIoC;AACpC,6EAGsC;AAmBtC,SAAgB,gBAAgB,CAC9B,MAA8B;IAE9B,MAAM,EACJ,eAAe,EACf,aAAa,EACb,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAQ,EACR,SAAS,EACT,gBAAgB,GACjB,GAAG,MAAM,CAAC;IACX,MAAM,OAAO,GAAuB,EAAE,CAAC;IAEvC,6BAA6B;IAC7B,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CACxC,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,GAAG,CAAC,CAAC,MAAM,EACxC,CAAC,CACF,CAAC;IACF,IA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AK;YAC1B,WAAW,EAAE,CAAC,CAAC,aAAa,GAAG,SAAS,CAAC,MAAM;YAC/C,QAAQ,EAAE,CAAC,CAAC,QAAQ;SACrB,CAAC,CAAC;QACH,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;KACtB,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,OAAO,OAAO,CAAC;AACjB,CAAC;AAjED,4CAiEC"}
|
@@ -56,11 +56,12 @@ function getLpUnderlyingTokenSource(params) {
|
|
56
56
|
return [];
|
57
57
|
if (!minReserveValue)
|
58
58
|
minReserveValue = 2500;
|
59
|
+
// Verify underlyings weights
|
59
60
|
const totalWeight = poolUnderlyings.reduce((partialSum, p) => partialSum + p.weight, 0);
|
60
|
-
if (totalWeight > 1.
|
61
|
-
throw new Error(
|
62
|
-
if (totalWeight < 0.
|
63
|
-
throw new Error(
|
61
|
+
if (totalWeight > 1.01)
|
62
|
+
throw new Error(`Weights are greater than 1: ${totalWeight}`);
|
63
|
+
if (totalWeight < 0.99)
|
64
|
+
throw new Error(`Weights are smaller than 1: ${totalWeight}`);
|
64
65
|
let knownUnderlaying;
|
65
66
|
const fAddresses = poolUnderlyings.map((u) => (0, portfolio_core_1.formatTokenAddress)(u.address, networkId));
|
66
67
|
let knownReserveValue;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getLpUnderlyingTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpUnderlyingTokenSource.ts"],"names":[],"mappings":";;;;;;AAAA,+DAYoC;AACpC,8DAAsE;AACtE,wEAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAI,GAAG,CAA0B;IACnE;QACE,0BAAS,CAAC,GAAG;QACb;YACE,iCAAgB;YAChB,sEAAsE,EAAE,OAAO;YAC/E,qHAAqH,EAAE,SAAS;SACjI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAA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I,CAAC,eAAe;QAAE,eAAe,GAAG,IAAI,CAAC;IAE7C,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CACxC,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,GAAG,CAAC,CAAC,MAAM,EACxC,CAAC,CACF,CAAC;IACF,IAAI,WAAW,GAAG,IAAI;
|
1
|
+
{"version":3,"file":"getLpUnderlyingTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpUnderlyingTokenSource.ts"],"names":[],"mappings":";;;;;;AAAA,+DAYoC;AACpC,8DAAsE;AACtE,wEAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAI,GAAG,CAA0B;IACnE;QACE,0BAAS,CAAC,GAAG;QACb;YACE,iCAAgB;YAChB,sEAAsE,EAAE,OAAO;YAC/E,qHAAqH,EAAE,SAAS;SACjI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;KACnD;IACD;QACE,0BAAS,CAAC,MAAM;QAChB;YACE,oCAAmB;YACnB,2CAA0B;YAC1B,8CAA8C,EAAE,OAAO;YACvD,8CAA8C,EAAE,OAAO;SACxD,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;KACtD;IACD;QACE,0BAAS,CAAC,KAAK;QACf;YACE,mCAAkB;YAClB,6EAA6E,EAAE,SAAS;YACxF,mFAAmF,EAAE,oBAAoB;SAC1G,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,KAAK,CAAC,CAAC;KACrD;IACD;QACE,0BAAS,CAAC,GAAG;QACb;YACE,iCAAgB;YAChB,eAAe;YACf,gFAAgF,EAAE,SAAS;YAC3F,gFAAgF,EAA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EX,MAAM,KAAK,GACT,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC;YAC1D,CAAC,CAAC,aAAa,CAAC;QAElB,MAAM,MAAM,GAAqB;YAC/B,EAAE,EAAE,QAAQ;YACZ,SAAS;YACT,UAAU,EAAE,gCAAoB,CAAC,EAAE;YACnC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;YACtB,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,KAAK;YACL,MAAM,EAAE,IAAA,yBAAe,EAAC,iBAAiB,CAAC;YAC1C,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AA9ED,gEA8EC"}
|
@@ -1,77 +0,0 @@
|
|
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
|
-
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
-
const clients_1 = require("../../../utils/clients");
|
18
|
-
const solana_1 = require("../../../utils/solana");
|
19
|
-
const structs_1 = require("./structs");
|
20
|
-
const constants_1 = require("./constants");
|
21
|
-
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
22
|
-
const client = (0, clients_1.getClientSolana)();
|
23
|
-
const poolAccount = (yield (0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.perpetualPoolStruct, [constants_1.jlpPool]))[0];
|
24
|
-
if (!poolAccount)
|
25
|
-
return;
|
26
|
-
const custodiesAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.custodyStruct, poolAccount.custodies);
|
27
|
-
const mints = [];
|
28
|
-
const tokensAccountsAddresses = [];
|
29
|
-
custodiesAccounts.forEach((acc) => {
|
30
|
-
if (acc) {
|
31
|
-
mints.push(acc.mint.toString());
|
32
|
-
tokensAccountsAddresses.push(acc.tokenAccount);
|
33
|
-
}
|
34
|
-
});
|
35
|
-
if (poolAccount.custodies.length !== mints.length)
|
36
|
-
return;
|
37
|
-
const tokensPricesRaw = yield cache.getTokenPrices(mints, portfolio_core_1.NetworkId.solana);
|
38
|
-
const tokensPrices = [];
|
39
|
-
tokensPricesRaw.forEach((tP) => (tP ? tokensPrices.push(tP) : []));
|
40
|
-
if (tokensPrices.length !== mints.length)
|
41
|
-
return;
|
42
|
-
const tokensAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, solana_1.tokenAccountStruct, tokensAccountsAddresses);
|
43
|
-
const tokensAmounts = tokensAccounts
|
44
|
-
.map((tA, i) => tA ? tA.amount.dividedBy(Math.pow(10, tokensPrices[i].decimals)) : [])
|
45
|
-
.flat();
|
46
|
-
const lpTokenSupply = yield client.getTokenSupply(constants_1.jlpToken);
|
47
|
-
const lpAmount = new bignumber_js_1.default(lpTokenSupply.value.amount).dividedBy(Math.pow(10, lpTokenSupply.value.decimals));
|
48
|
-
const price = poolAccount.aumUsd.dividedBy(Math.pow(10, 6)).dividedBy(lpAmount);
|
49
|
-
const underlyingsAmounts = tokensAmounts
|
50
|
-
.map((amount) => amount.dividedBy(lpAmount))
|
51
|
-
.flat();
|
52
|
-
const basePrice = tokensAmounts
|
53
|
-
.map((amount, i) => amount.multipliedBy(tokensPrices[i].price))
|
54
|
-
.reduce((sum, current) => current.plus(sum), new bignumber_js_1.default(0))
|
55
|
-
.dividedBy(lpAmount);
|
56
|
-
const factor = price.dividedBy(basePrice);
|
57
|
-
const underlyings = (0, portfolio_core_1.getTokenPricesUnderlyingsFromTokensPrices)(tokensPrices, underlyingsAmounts.map((a) => a.multipliedBy(factor).toNumber()));
|
58
|
-
yield cache.setTokenPriceSource({
|
59
|
-
address: constants_1.jlpToken.toString(),
|
60
|
-
decimals: 6,
|
61
|
-
id: constants_1.platformId,
|
62
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
63
|
-
elementName: 'JLP Pool',
|
64
|
-
platformId: constants_1.platformId,
|
65
|
-
price: price.toNumber(),
|
66
|
-
timestamp: Date.now(),
|
67
|
-
weight: 1,
|
68
|
-
underlyings,
|
69
|
-
});
|
70
|
-
});
|
71
|
-
const job = {
|
72
|
-
id: `${constants_1.platformId}-pool`,
|
73
|
-
executor,
|
74
|
-
label: 'normal',
|
75
|
-
};
|
76
|
-
exports.default = job;
|
77
|
-
//# sourceMappingURL=poolJob.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"poolJob.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/poolJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAIrC,oDAAyD;AACzD,kDAG+B;AAC/B,uCAA+D;AAC/D,2CAA4D;AAE5D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,WAAW,GAAG,CAClB,MAAM,IAAA,sCAA6B,EAAC,MAAM,EAAE,6BAAmB,EAAE,CAAC,mBAAO,CAAC,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