@sonarwatch/portfolio-plugins 0.12.77 → 0.12.78
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js +13 -7
- package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/filters.js +0 -1
- package/src/plugins/jupiter/exchange/filters.js.map +1 -1
- package/src/plugins/meteora/constants.d.ts +2 -0
- package/src/plugins/meteora/constants.js +3 -1
- package/src/plugins/meteora/constants.js.map +1 -1
- package/src/plugins/meteora/dlmmPositionsFetcher.js +5 -0
- package/src/plugins/meteora/dlmmPositionsFetcher.js.map +1 -1
- package/src/plugins/meteora/dlmmVaultsFetcher.d.ts +3 -0
- package/src/plugins/meteora/dlmmVaultsFetcher.js +157 -0
- package/src/plugins/meteora/dlmmVaultsFetcher.js.map +1 -0
- package/src/plugins/meteora/dlmmVaultsJob.d.ts +3 -0
- package/src/plugins/meteora/dlmmVaultsJob.js +44 -0
- package/src/plugins/meteora/dlmmVaultsJob.js.map +1 -0
- package/src/plugins/meteora/index.js +14 -2
- package/src/plugins/meteora/index.js.map +1 -1
- package/src/plugins/meteora/struct.d.ts +35 -0
- package/src/plugins/meteora/struct.js +34 -1
- package/src/plugins/meteora/struct.js.map +1 -1
- package/src/plugins/meteora/types.d.ts +5 -1
- package/src/plugins/meteora/types.js.map +1 -1
- package/src/plugins/nxfinance/constants.d.ts +1 -1
- package/src/plugins/nxfinance/constants.js +5 -2
- package/src/plugins/nxfinance/constants.js.map +1 -1
- package/src/plugins/nxfinance/positionsFetcher.js +1 -1
- package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
- package/src/plugins/solend/constants.d.ts +4 -0
- package/src/plugins/solend/constants.js +5 -1
- package/src/plugins/solend/constants.js.map +1 -1
- package/src/plugins/solend/index.js +2 -1
- package/src/plugins/solend/index.js.map +1 -1
- package/src/plugins/solend/rewardsFetcher.d.ts +3 -0
- package/src/plugins/solend/rewardsFetcher.js +95 -0
- package/src/plugins/solend/rewardsFetcher.js.map +1 -0
- package/src/plugins/solend/structs.d.ts +8 -0
- package/src/plugins/solend/structs.js +8 -1
- package/src/plugins/solend/structs.js.map +1 -1
- package/src/plugins/solend/types.d.ts +23 -0
- package/src/utils/solana/beets/numbers.d.ts +11 -0
- package/src/utils/solana/beets/numbers.js +33 -1
- package/src/utils/solana/beets/numbers.js.map +1 -1
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.78](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.77...plugins-0.12.78) (2024-07-18)
|
6
|
+
|
7
|
+
|
8
|
+
|
5
9
|
## [0.12.77](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.76...plugins-0.12.77) (2024-07-17)
|
6
10
|
|
7
11
|
|
package/package.json
CHANGED
@@ -29,14 +29,18 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
29
29
|
const inputMint = account.inputMint.toString();
|
30
30
|
const lastAmount = amountByToken.get(inputMint);
|
31
31
|
const amountToAdd = account.inDeposited.minus(account.inUsed);
|
32
|
-
if (!
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
if (!amountToAdd.isZero()) {
|
33
|
+
if (!lastAmount) {
|
34
|
+
amountByToken.set(inputMint, amountToAdd);
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
const newAmount = lastAmount.plus(amountToAdd);
|
38
|
+
amountByToken.set(inputMint, newAmount);
|
39
|
+
}
|
38
40
|
}
|
39
41
|
}
|
42
|
+
if (amountByToken.size === 0)
|
43
|
+
return [];
|
40
44
|
const tokenPriceById = yield cache.getTokenPricesAsMap(Array.from(amountByToken.keys()), portfolio_core_1.NetworkId.solana);
|
41
45
|
const assets = [];
|
42
46
|
for (const token of amountByToken.keys()) {
|
@@ -44,11 +48,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
44
48
|
if (!tokenPrice)
|
45
49
|
continue;
|
46
50
|
const amount = amountByToken.get(token);
|
47
|
-
if (!amount)
|
51
|
+
if (!amount || amount.isZero())
|
48
52
|
continue;
|
49
53
|
const asset = (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, amount.dividedBy(Math.pow(10, tokenPrice.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice);
|
50
54
|
assets.push(asset);
|
51
55
|
}
|
56
|
+
if (assets.length === 0)
|
57
|
+
return [];
|
52
58
|
return [
|
53
59
|
{
|
54
60
|
type: 'multiple',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dcaFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/dcaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAIpC,oDAAyD;AACzD,kDAAiE;AACjE,wGAAgF;AAChF,2CAAiE;AACjE,uCAAsC;AACtC,uCAAuC;AAEvC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,mBAAS,EACT,wBAAY,EACZ,IAAA,oBAAU,EAAC,KAAK,CAAC,CAClB,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,aAAa,GAA2B,IAAI,GAAG,EAAE,CAAC;IAExD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QAC/C,MAAM,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAChD,MAAM,WAA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EAAE,SAAS;YAChB,IAAI,EAAE,eAAe,QAAQ,CAAC,MAAM,GAAG;YACvC,IAAI,EAAE,EAAE,MAAM,EAAE;SACjB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,MAAM;IACvB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/filters.ts"],"names":[],"mappings":";;;AACA,uCAAsC;AAE/B,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,aAAa;SACrB;KACF;IACD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/filters.ts"],"names":[],"mappings":";;;AACA,uCAAsC;AAE/B,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,aAAa;SACrB;KACF;IACD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;CACF,CAAC;AAbW,QAAA,YAAY,gBAavB;AAEK,MAAM,UAAU,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACvE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,mBAAS,CAAC,QAAQ,EAAE;CACjC,CAAC;AARW,QAAA,UAAU,cAQrB;AAEK,MAAM,mBAAmB,GAAG,CACjC,KAAa,EACe,EAAE,CAAC;IAC/B;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AAVW,QAAA,mBAAmB,uBAU9B"}
|
@@ -4,7 +4,9 @@ export declare const platformId = "meteora";
|
|
4
4
|
export declare const platform: Platform;
|
5
5
|
export declare const prefixVaults = "meteora-vaults";
|
6
6
|
export declare const farmsKey = "farms";
|
7
|
+
export declare const dlmmVaultsKey = "dlmm-vaults-1";
|
7
8
|
export declare const vaultsProgramId: PublicKey;
|
8
9
|
export declare const poolsProgramId: PublicKey;
|
9
10
|
export declare const farmProgramId: PublicKey;
|
10
11
|
export declare const dlmmProgramId: PublicKey;
|
12
|
+
export declare const dlmmVaultProgramId: PublicKey;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.dlmmProgramId = exports.farmProgramId = exports.poolsProgramId = exports.vaultsProgramId = exports.farmsKey = exports.prefixVaults = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.dlmmVaultProgramId = exports.dlmmProgramId = exports.farmProgramId = exports.poolsProgramId = exports.vaultsProgramId = exports.dlmmVaultsKey = exports.farmsKey = exports.prefixVaults = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'meteora';
|
6
6
|
exports.platform = {
|
@@ -12,8 +12,10 @@ exports.platform = {
|
|
12
12
|
};
|
13
13
|
exports.prefixVaults = `${exports.platformId}-vaults`;
|
14
14
|
exports.farmsKey = 'farms';
|
15
|
+
exports.dlmmVaultsKey = 'dlmm-vaults-1';
|
15
16
|
exports.vaultsProgramId = new web3_js_1.PublicKey('24Uqj9JCLxUeoC3hGfh5W3s9FM9uCHDS2SG3LYwBpyTi');
|
16
17
|
exports.poolsProgramId = new web3_js_1.PublicKey('Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB');
|
17
18
|
exports.farmProgramId = new web3_js_1.PublicKey('FarmuwXPWXvefWUeqFAa5w6rifLkq5X6E8bimYvrhCB1');
|
18
19
|
exports.dlmmProgramId = new web3_js_1.PublicKey('LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo');
|
20
|
+
exports.dlmmVaultProgramId = new web3_js_1.PublicKey('vaU6kP7iNEGkbmPkLmZfGwiGxd4Mob24QQCie5R9kd2');
|
19
21
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,qBAAqB;CAC/B,CAAC;AAEW,QAAA,YAAY,GAAG,GAAG,kBAAU,SAAS,CAAC;AACtC,QAAA,QAAQ,GAAG,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,qBAAqB;CAC/B,CAAC;AAEW,QAAA,YAAY,GAAG,GAAG,kBAAU,SAAS,CAAC;AACtC,QAAA,QAAQ,GAAG,OAAO,CAAC;AACnB,QAAA,aAAa,GAAG,eAAe,CAAC;AAEhC,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,kBAAkB,GAAG,IAAI,mBAAS,CAC7C,6CAA6C,CAC9C,CAAC"}
|
@@ -120,6 +120,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
120
120
|
const positionData = (0, dlmmHelper_1.processPosition)(constants_1.dlmmProgramId, positionVersion, lbPairAcc, account, baseTokenDecimal, quoteTokenDecimal, lowerBinArray, upperBinArray);
|
121
121
|
const assets = [];
|
122
122
|
const rewardAssets = [];
|
123
|
+
const tags = [];
|
123
124
|
if (positionData &&
|
124
125
|
(!positionData.totalXAmount.isZero() ||
|
125
126
|
!positionData.totalYAmount.isZero())) {
|
@@ -151,6 +152,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
151
152
|
yields: [],
|
152
153
|
},
|
153
154
|
];
|
155
|
+
const activeBinInPosition = positionData.positionBinData.find((bin) => bin.binXAmount !== '0' && bin.binYAmount !== '0');
|
156
|
+
if (!activeBinInPosition)
|
157
|
+
tags.push('Out Of Range');
|
154
158
|
elements.push({
|
155
159
|
type: portfolio_core_1.PortfolioElementType.liquidity,
|
156
160
|
label: 'LiquidityPool',
|
@@ -158,6 +162,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
158
162
|
platformId: constants_1.platformId,
|
159
163
|
value: (0, portfolio_core_1.getUsdValueSum)(liquidities.map((a) => a.value)),
|
160
164
|
name: 'DLMM',
|
165
|
+
tags,
|
161
166
|
data: {
|
162
167
|
liquidities,
|
163
168
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dlmmPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAAwD;AACxD,iDAAsD;AACtD,+CAI4B;AAC5B,qCAOkB;AAClB,uCAGmB;AACnB,6CAIsB;AACtB,mCAA0C;AAC1C,gGAA6F;AAC7F,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,UAAU,GAAG,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC;IAExC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACnD,IAAA,iCAAwB,EACtB,MAAM,EACN,6BAAoB,EACpB,yBAAa,EACb,IAAA,mCAAyB,EAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CACjD;QACD,IAAA,iCAAwB,EACtB,MAAM,EACN,6BAAoB,EACpB,yBAAa,EACb,IAAA,qCAA2B,EAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CACnD;KACF,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,CAAC,GAAG,WAAW,EAAE,GAAG,WAAW,CAAC,CAAC;IACnD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAU,CAAC;IAC5C,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC;IACpC,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE;QACvD,MAAM,kBAAkB,GAAG,IAAA,iCAAoB,EAAC,IAAI,sBAAS,CAAC,UAAU,CAAC,CAAC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CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBAC/D,YAAY;oBACZ,iBAAiB,EAAE,IAAA,+BAAc,EAC/B,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CACzC;oBACD,KAAK,EAAE,IAAA,+BAAc,EACnB,CAAC,GAAG,MAAM,EAAE,GAAG,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CACzD;oBACD,MAAM,EAAE,EAAE;iBACX;aACF,CAAC;YACF,QAAQ,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,qCAAoB,CAAC,SAAS;gBACpC,KAAK,EAAE,eAAe;gBACtB,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,UAAU,EAAV,sBAAU;gBACV,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;gBACtD,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,iBAAiB;IAClC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
1
|
+
{"version":3,"file":"dlmmPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAAwD;AACxD,iDAAsD;AACtD,+CAI4B;AAC5B,qCAOkB;A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C,CACzC;oBACD,KAAK,EAAE,IAAA,+BAAc,EACnB,CAAC,GAAG,MAAM,EAAE,GAAG,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CACzD;oBACD,MAAM,EAAE,EAAE;iBACX;aACF,CAAC;YAEF,MAAM,mBAAmB,GAAG,YAAY,CAAC,eAAe,CAAC,IAAI,CAC3D,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,KAAK,GAAG,IAAI,GAAG,CAAC,UAAU,KAAK,GAAG,CAC1D,CAAC;YACF,IAAI,CAAC,mBAAmB;gBAAE,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAEpD,QAAQ,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,qCAAoB,CAAC,SAAS;gBACpC,KAAK,EAAE,eAAe;gBACtB,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,UAAU,EAAV,sBAAU;gBACV,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;gBACtD,IAAI,EAAE,MAAM;gBACZ,IAAI;gBACJ,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,iBAAiB;IAClC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,157 @@
|
|
1
|
+
"use strict";
|
2
|
+
// DLMM Bootstrapping Pools
|
3
|
+
// DLMM Alpha Vault
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
11
|
+
});
|
12
|
+
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
18
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
19
|
+
const clients_1 = require("../../utils/clients");
|
20
|
+
const constants_1 = require("./constants");
|
21
|
+
const solana_1 = require("../../utils/solana");
|
22
|
+
const struct_1 = require("./struct");
|
23
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
24
|
+
const slotTtl = 30000;
|
25
|
+
let slot = null;
|
26
|
+
let slotUpdate = 0;
|
27
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
28
|
+
const client = (0, clients_1.getClientSolana)();
|
29
|
+
const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.escrowStruct, constants_1.dlmmVaultProgramId, [
|
30
|
+
{ dataSize: struct_1.escrowStruct.byteSize },
|
31
|
+
{
|
32
|
+
memcmp: {
|
33
|
+
offset: 40,
|
34
|
+
bytes: owner,
|
35
|
+
},
|
36
|
+
},
|
37
|
+
// {
|
38
|
+
// memcmp: {
|
39
|
+
// offset: 8,
|
40
|
+
// bytes: 'CGZvC5MWsu1bc3vRis619ZBEtvuPqoXrtBMeV9RrKFJp',
|
41
|
+
// },
|
42
|
+
// },
|
43
|
+
// {
|
44
|
+
// memcmp: {
|
45
|
+
// offset: 96,
|
46
|
+
// bytes: '1', // refunded === false
|
47
|
+
// },
|
48
|
+
// },
|
49
|
+
]);
|
50
|
+
if (accounts.length === 0)
|
51
|
+
return [];
|
52
|
+
const vaults = yield cache.getItem(constants_1.dlmmVaultsKey, {
|
53
|
+
prefix: constants_1.platformId,
|
54
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
55
|
+
});
|
56
|
+
if (!vaults)
|
57
|
+
return [];
|
58
|
+
if (!slot || Date.now() - slotTtl > slotUpdate) {
|
59
|
+
slot = yield client.getSlot();
|
60
|
+
slotUpdate = Date.now();
|
61
|
+
}
|
62
|
+
if (!slot)
|
63
|
+
return [];
|
64
|
+
const tokenPrices = yield cache.getTokenPricesAsMap(accounts
|
65
|
+
.map((a) => {
|
66
|
+
const v = vaults[a.dlmmVault.toString()];
|
67
|
+
return [v.baseMint, v.quoteMint];
|
68
|
+
})
|
69
|
+
.flat(), portfolio_core_1.NetworkId.solana);
|
70
|
+
const assets = [];
|
71
|
+
accounts.forEach((escrow) => {
|
72
|
+
if (!slot)
|
73
|
+
return;
|
74
|
+
const vault = vaults[escrow.dlmmVault.toString()];
|
75
|
+
if (!vault)
|
76
|
+
return;
|
77
|
+
// Vesting not started yet
|
78
|
+
if (slot < Number(vault.startVestingSlot)) {
|
79
|
+
const tpQuote = tokenPrices.get(vault.quoteMint);
|
80
|
+
if (!tpQuote)
|
81
|
+
return;
|
82
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.quoteMint, new bignumber_js_1.default(escrow.totalDeposit)
|
83
|
+
.div(Math.pow(10, tpQuote.decimals))
|
84
|
+
.toNumber(), portfolio_core_1.NetworkId.solana, tpQuote, undefined, {}));
|
85
|
+
}
|
86
|
+
else {
|
87
|
+
// Vesting started
|
88
|
+
// If not refunded yet
|
89
|
+
const filledRatio = new bignumber_js_1.default(vault.totalDeposit)
|
90
|
+
.div(vault.maxCap)
|
91
|
+
.toNumber();
|
92
|
+
if (escrow.refunded === 0 && filledRatio > 1) {
|
93
|
+
const tpQuote = tokenPrices.get(vault.quoteMint);
|
94
|
+
if (!tpQuote)
|
95
|
+
return;
|
96
|
+
const amount = new bignumber_js_1.default(escrow.totalDeposit)
|
97
|
+
.div(Math.pow(10, tpQuote.decimals))
|
98
|
+
.times(1 - 1 / filledRatio)
|
99
|
+
.toNumber();
|
100
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.quoteMint, amount, portfolio_core_1.NetworkId.solana, tpQuote, undefined, {
|
101
|
+
isClaimable: true,
|
102
|
+
}));
|
103
|
+
}
|
104
|
+
const tpBase = tokenPrices.get(vault.baseMint);
|
105
|
+
if (!tpBase)
|
106
|
+
return;
|
107
|
+
const shares = new bignumber_js_1.default(escrow.totalDeposit).div(vault.totalDeposit);
|
108
|
+
const totalAmount = new bignumber_js_1.default(vault.boughtToken).times(shares);
|
109
|
+
const remainingAmount = totalAmount.minus(escrow.claimedToken);
|
110
|
+
if (remainingAmount.isZero())
|
111
|
+
return;
|
112
|
+
let claimableAmount = new bignumber_js_1.default(remainingAmount.toString());
|
113
|
+
if (slot < Number(vault.endVestingSlot)) {
|
114
|
+
const amountPerSlot = new bignumber_js_1.default(totalAmount).div(Number(vault.endVestingSlot) - Number(vault.startVestingSlot));
|
115
|
+
let lastClaimedSlot = escrow.lastClaimedSlot.isZero()
|
116
|
+
? Number(vault.startVestingSlot)
|
117
|
+
: escrow.lastClaimedSlot.toNumber();
|
118
|
+
if (lastClaimedSlot > slot)
|
119
|
+
lastClaimedSlot = slot;
|
120
|
+
claimableAmount = amountPerSlot.times(Math.min(slot, Number(vault.endVestingSlot)) - lastClaimedSlot);
|
121
|
+
}
|
122
|
+
if (claimableAmount.isGreaterThan(0)) {
|
123
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.baseMint, claimableAmount.div(Math.pow(10, tpBase.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tpBase, undefined, {
|
124
|
+
isClaimable: true,
|
125
|
+
}));
|
126
|
+
}
|
127
|
+
const vestingAmount = remainingAmount.minus(claimableAmount);
|
128
|
+
if (vestingAmount.isGreaterThan(0)) {
|
129
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.baseMint, vestingAmount.div(Math.pow(10, tpBase.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tpBase, undefined, {
|
130
|
+
tags: ['Vesting'],
|
131
|
+
}));
|
132
|
+
}
|
133
|
+
}
|
134
|
+
});
|
135
|
+
if (assets.length === 0)
|
136
|
+
return [];
|
137
|
+
return [
|
138
|
+
{
|
139
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
140
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
141
|
+
label: 'Vesting',
|
142
|
+
platformId: constants_1.platformId,
|
143
|
+
name: 'Alpha Vault',
|
144
|
+
data: {
|
145
|
+
assets,
|
146
|
+
},
|
147
|
+
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
|
148
|
+
},
|
149
|
+
];
|
150
|
+
});
|
151
|
+
const fetcher = {
|
152
|
+
id: `${constants_1.platformId}-dlmm-vaults`,
|
153
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
154
|
+
executor,
|
155
|
+
};
|
156
|
+
exports.default = fetcher;
|
157
|
+
//# sourceMappingURL=dlmmVaultsFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;;;;AAEnB,+DAKoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,2CAA4E;AAE5E,+CAA8D;AAC9D,qCAAwC;AACxC,qGAA6E;AAE7E,MAAM,OAAO,GAAG,KAAK,CAAC;AACtB,IAAI,IAAI,GAAkB,IAAI,CAAC;AAC/B,IAAI,UAAU,GAAG,CAAC,C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,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE;gBACJ,MAAM;aACP;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAClD;KACF,CAAC;AACJ,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"}
|
@@ -0,0 +1,44 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
|
+
const clients_1 = require("../../utils/clients");
|
14
|
+
const solana_1 = require("../../utils/solana");
|
15
|
+
const filters_1 = require("../../utils/solana/filters");
|
16
|
+
const constants_1 = require("./constants");
|
17
|
+
const struct_1 = require("./struct");
|
18
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
19
|
+
const client = (0, clients_1.getClientSolana)();
|
20
|
+
const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.dlmmVaultStruct, constants_1.dlmmVaultProgramId, (0, filters_1.dataSizeFilter)(struct_1.dlmmVaultStruct.byteSize));
|
21
|
+
const vaults = {};
|
22
|
+
accounts.forEach((acc) => {
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
24
|
+
const newAcc = Object.assign(Object.assign({}, acc), { pubkey: acc.pubkey.toString() });
|
25
|
+
if (newAcc.baseMint === 'SENDdRQtYMWaQrBroBrJ2Q53fgVuq95CV9UPGEvpCxa') {
|
26
|
+
console.log('newAcc:', newAcc);
|
27
|
+
}
|
28
|
+
delete newAcc['buffer'];
|
29
|
+
delete newAcc['padding0'];
|
30
|
+
delete newAcc['padding'];
|
31
|
+
vaults[acc.pubkey.toString()] = newAcc;
|
32
|
+
});
|
33
|
+
yield cache.setItem(constants_1.dlmmVaultsKey, vaults, {
|
34
|
+
prefix: constants_1.platformId,
|
35
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
36
|
+
});
|
37
|
+
});
|
38
|
+
const job = {
|
39
|
+
id: `${constants_1.platformId}-dlmm-vaults`,
|
40
|
+
executor,
|
41
|
+
label: 'normal',
|
42
|
+
};
|
43
|
+
exports.default = job;
|
44
|
+
//# sourceMappingURL=dlmmVaultsJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dlmmVaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmVaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,+CAA8D;AAC9D,wDAA4D;AAC5D,2CAA4E;AAC5E,qCAA2C;AAG3C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,wBAAe,EACf,8BAAkB,EAClB,IAAA,wBAAc,EAAC,wBAAe,CAAC,QAAQ,CAAC,CACzC,CAAC;IACF,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,8DAA8D;QAC9D,MAAM,MAAM,mCACP,GAAG,KACN,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,GAC9B,CAAC;QACF,IAAI,MAAM,CAAC,QAAQ,KAAK,6CAA6C,EAAE,CAAC;YACtE,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC;QACxB,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC;QAC1B,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC;QACzB,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,MAAM,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,MAAM,KAAK,CAAC,OAAO,CAAC,yBAAa,EAAE,MAAM,EAAE;QACzC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,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"}
|
@@ -8,10 +8,22 @@ const vaultsJob_1 = __importDefault(require("./vaultsJob"));
|
|
8
8
|
const poolsJob_1 = __importDefault(require("./poolsJob"));
|
9
9
|
const multiTokenPoolsJob_1 = __importDefault(require("./multiTokenPoolsJob"));
|
10
10
|
const farmsJob_1 = __importDefault(require("./farmsJob"));
|
11
|
+
const dlmmVaultsJob_1 = __importDefault(require("./dlmmVaultsJob"));
|
11
12
|
const constants_1 = require("./constants");
|
12
13
|
const farmsFetcher_1 = __importDefault(require("./farmsFetcher"));
|
13
14
|
const dlmmPositionsFetcher_1 = __importDefault(require("./dlmmPositionsFetcher"));
|
15
|
+
const dlmmVaultsFetcher_1 = __importDefault(require("./dlmmVaultsFetcher"));
|
14
16
|
exports.platforms = [constants_1.platform];
|
15
|
-
exports.jobs = [
|
16
|
-
|
17
|
+
exports.jobs = [
|
18
|
+
vaultsJob_1.default,
|
19
|
+
poolsJob_1.default,
|
20
|
+
farmsJob_1.default,
|
21
|
+
multiTokenPoolsJob_1.default,
|
22
|
+
dlmmVaultsJob_1.default,
|
23
|
+
];
|
24
|
+
exports.fetchers = [
|
25
|
+
farmsFetcher_1.default,
|
26
|
+
dlmmPositionsFetcher_1.default,
|
27
|
+
dlmmVaultsFetcher_1.default,
|
28
|
+
];
|
17
29
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/index.ts"],"names":[],"mappings":";;;;;;AACA,4DAAoC;AACpC,0DAAkC;AAClC,8EAAsD;AACtD,0DAAkC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/index.ts"],"names":[],"mappings":";;;;;;AACA,4DAAoC;AACpC,0DAAkC;AAClC,8EAAsD;AACtD,0DAAkC;AAClC,oEAA4C;AAG5C,2CAAuC;AACvC,kEAA0C;AAC1C,kFAAyD;AACzD,4EAAoD;AAEvC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU;IACzB,mBAAS;IACT,kBAAQ;IACR,kBAAQ;IACR,4BAAkB;IAClB,uBAAa;CACd,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,sBAAY;IACZ,8BAAmB;IACnB,2BAAiB;CAClB,CAAC"}
|
@@ -252,3 +252,38 @@ export type BinArray = {
|
|
252
252
|
bins: Bin[];
|
253
253
|
};
|
254
254
|
export declare const binArrayStruct: BeetStruct<BinArray, Partial<BinArray>>;
|
255
|
+
export type Escrow = {
|
256
|
+
buffer: Buffer;
|
257
|
+
dlmmVault: PublicKey;
|
258
|
+
owner: PublicKey;
|
259
|
+
totalDeposit: BigNumber;
|
260
|
+
claimedToken: BigNumber;
|
261
|
+
lastClaimedSlot: BigNumber;
|
262
|
+
refunded: number;
|
263
|
+
padding1: number[];
|
264
|
+
padding: BigNumber[];
|
265
|
+
};
|
266
|
+
export declare const escrowStruct: BeetStruct<Escrow, Partial<Escrow>>;
|
267
|
+
export type DlmmVault = {
|
268
|
+
buffer: Buffer;
|
269
|
+
lbPair: string;
|
270
|
+
tokenVault: string;
|
271
|
+
tokenOutVault: string;
|
272
|
+
quoteMint: string;
|
273
|
+
baseMint: string;
|
274
|
+
base: string;
|
275
|
+
owner: string;
|
276
|
+
maxCap: string;
|
277
|
+
totalDeposit: string;
|
278
|
+
totalEscrow: string;
|
279
|
+
swappedAmount: string;
|
280
|
+
boughtToken: string;
|
281
|
+
totalRefund: string;
|
282
|
+
totalClaimedToken: string;
|
283
|
+
startVestingSlot: string;
|
284
|
+
endVestingSlot: string;
|
285
|
+
bump: number;
|
286
|
+
padding0: number[];
|
287
|
+
padding: Buffer;
|
288
|
+
};
|
289
|
+
export declare const dlmmVaultStruct: BeetStruct<DlmmVault, Partial<DlmmVault>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.binArrayStruct = exports.binStruct = exports.lbPairStruct = exports.variableParametersStruct = exports.staticParametersStruct = exports.protocolFeeStruct = exports.rewardInfoStruct = exports.dlmmPositionV2Struct = exports.dlmmPositionV1Struct = exports.feeInfoStruct = exports.userRewardInfoStruct = exports.farmAccountStruct = exports.farmStruct = exports.poolStateStruct = exports.poolFeesStruct = exports.PoolType = exports.CurveType = exports.stableParamsStruct = exports.TokenMultiplierStruct = exports.depegStruct = exports.DepegType = exports.paddingStruct = exports.vaultStruct = exports.lockedProfitTrackerStruct = exports.vaultBumpsStruct = void 0;
|
3
|
+
exports.dlmmVaultStruct = exports.escrowStruct = exports.binArrayStruct = exports.binStruct = exports.lbPairStruct = exports.variableParametersStruct = exports.staticParametersStruct = exports.protocolFeeStruct = exports.rewardInfoStruct = exports.dlmmPositionV2Struct = exports.dlmmPositionV1Struct = exports.feeInfoStruct = exports.userRewardInfoStruct = exports.farmAccountStruct = exports.farmStruct = exports.poolStateStruct = exports.poolFeesStruct = exports.PoolType = exports.CurveType = exports.stableParamsStruct = exports.TokenMultiplierStruct = exports.depegStruct = exports.DepegType = exports.paddingStruct = exports.vaultStruct = exports.lockedProfitTrackerStruct = exports.vaultBumpsStruct = void 0;
|
4
4
|
const beet_1 = require("@metaplex-foundation/beet");
|
5
5
|
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
6
|
const solana_1 = require("../../utils/solana");
|
@@ -250,4 +250,37 @@ exports.binArrayStruct = new beet_1.BeetStruct([
|
|
250
250
|
['lbPair', beet_solana_1.publicKey],
|
251
251
|
['bins', (0, beet_1.uniformFixedSizeArray)(exports.binStruct, 70)],
|
252
252
|
], (args) => args);
|
253
|
+
exports.escrowStruct = new beet_1.BeetStruct([
|
254
|
+
['buffer', (0, solana_1.blob)(8)],
|
255
|
+
['dlmmVault', beet_solana_1.publicKey],
|
256
|
+
['owner', beet_solana_1.publicKey],
|
257
|
+
['totalDeposit', solana_1.u64],
|
258
|
+
['claimedToken', solana_1.u64],
|
259
|
+
['lastClaimedSlot', solana_1.u64],
|
260
|
+
['refunded', beet_1.u8],
|
261
|
+
['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
|
262
|
+
['padding', (0, beet_1.uniformFixedSizeArray)(solana_1.u128, 2)],
|
263
|
+
], (args) => args);
|
264
|
+
exports.dlmmVaultStruct = new beet_1.BeetStruct([
|
265
|
+
['buffer', (0, solana_1.blob)(8)],
|
266
|
+
['lbPair', solana_1.publicKeyStr],
|
267
|
+
['tokenVault', solana_1.publicKeyStr],
|
268
|
+
['tokenOutVault', solana_1.publicKeyStr],
|
269
|
+
['quoteMint', solana_1.publicKeyStr],
|
270
|
+
['baseMint', solana_1.publicKeyStr],
|
271
|
+
['base', solana_1.publicKeyStr],
|
272
|
+
['owner', solana_1.publicKeyStr],
|
273
|
+
['maxCap', solana_1.u64Str],
|
274
|
+
['totalDeposit', solana_1.u64Str],
|
275
|
+
['totalEscrow', solana_1.u64Str],
|
276
|
+
['swappedAmount', solana_1.u64Str],
|
277
|
+
['boughtToken', solana_1.u64Str],
|
278
|
+
['totalRefund', solana_1.u64Str],
|
279
|
+
['totalClaimedToken', solana_1.u64Str],
|
280
|
+
['startVestingSlot', solana_1.u64Str],
|
281
|
+
['endVestingSlot', solana_1.u64Str],
|
282
|
+
['bump', beet_1.u8],
|
283
|
+
['padding0', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
|
284
|
+
['padding', (0, solana_1.blob)(160)],
|
285
|
+
], (args) => args);
|
253
286
|
//# sourceMappingURL=struct.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/struct.ts"],"names":[],"mappings":";;;AAAA,oDASmC;AAEnC,kEAA6D;AAE7D,+CAA0D;AAM7C,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,WAAW,EAAE,SAAE,CAAC;IACjB,CAAC,gBAAgB,EAAE,SAAE,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AAOW,QAAA,yBAAyB,GAAG,IAAI,iBAAU,CACrD;IACE,CAAC,yBAAyB,EAAE,YAAG,CAAC;IAChC,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,yBAAyB,EAAE,YAAG,CAAC;CACjC,EACD,CAAC,IA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,EAAE,aAAI,CAAC;IAC/B,CAAC,0BAA0B,EAAE,aAAI,CAAC;IAClC,CAAC,0BAA0B,EAAE,aAAI,CAAC;IAClC,CAAC,WAAW,EAAE,aAAI,CAAC;IACnB,CAAC,WAAW,EAAE,aAAI,CAAC;CACpB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAW,CACtB,CAAC;AAWW,QAAA,cAAc,GAAG,IAAI,iBAAU,CAC1C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,YAAG,CAAC;IACd,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,MAAM,EAAE,IAAA,4BAAqB,EAAC,iBAAS,EAAE,EAAE,CAAC,CAAC;CAC/C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAgB,CAC3B,CAAC"}
|
1
|
+
{"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/struct.ts"],"names":[],"mappings":";;;AAAA,oDASmC;AAEnC,kEAA6D;AAE7D,+CAAgF;AAMnE,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,WAAW,EAAE,SAAE,CAAC;IACjB,CAAC,gBAAgB,EAAE,SAAE,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AAOW,QAAA,yBAAyB,GAAG,IAAI,iBAAU,CACrD;IACE,CAAC,yBAAyB,EAAE,YAAG,CAAC;IAChC,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,yBAAyB,EAAE,YAAG,CAAC;CACjC,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA2B,CACtC,CAAC;AA8BW,QAAA,WAAW,GAAG,IAAI,iBA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QAAQ,EAAE,qBAAY,CAAC;IACxB,CAAC,YAAY,EAAE,qBAAY,CAAC;IAC5B,CAAC,eAAe,EAAE,qBAAY,CAAC;IAC/B,CAAC,WAAW,EAAE,qBAAY,CAAC;IAC3B,CAAC,UAAU,EAAE,qBAAY,CAAC;IAC1B,CAAC,MAAM,EAAE,qBAAY,CAAC;IACtB,CAAC,OAAO,EAAE,qBAAY,CAAC;IACvB,CAAC,QAAQ,EAAE,eAAM,CAAC;IAClB,CAAC,cAAc,EAAE,eAAM,CAAC;IACxB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,eAAe,EAAE,eAAM,CAAC;IACzB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,mBAAmB,EAAE,eAAM,CAAC;IAC7B,CAAC,kBAAkB,EAAE,eAAM,CAAC;IAC5B,CAAC,gBAAgB,EAAE,eAAM,CAAC;IAC1B,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,GAAG,CAAC,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
2
2
|
import BigNumber from 'bignumber.js';
|
3
|
-
import { LbPair } from './struct';
|
3
|
+
import { DlmmVault, LbPair } from './struct';
|
4
4
|
export type FormattedFarm = {
|
5
5
|
pubkey: string;
|
6
6
|
authority: string;
|
@@ -22,6 +22,10 @@ export type FormattedFarm = {
|
|
22
22
|
totalStaked: string;
|
23
23
|
paused: boolean;
|
24
24
|
};
|
25
|
+
export type DlmmVaultC = Omit<DlmmVault, 'buffer' | 'padding' | 'padding0'> & {
|
26
|
+
pubkey: string;
|
27
|
+
};
|
28
|
+
export type CachedDlmmVaults = Record<string, DlmmVaultC>;
|
25
29
|
export declare enum PositionVersion {
|
26
30
|
V1 = 0,
|
27
31
|
V2 = 1
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/types.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/types.ts"],"names":[],"mappings":";;;AA+BA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,iDAAE,CAAA;IACF,iDAAE,CAAA;AACJ,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,+CAAI,CAAA;IACJ,iDAAK,CAAA;IACL,mDAAM,CAAA;AACR,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
|
@@ -5,5 +5,5 @@ export declare const platformId = "nxfinance";
|
|
5
5
|
export declare const platform: Platform;
|
6
6
|
export declare const ID: PublicKey;
|
7
7
|
export declare const leverageFiProgramID: PublicKey;
|
8
|
-
export declare const
|
8
|
+
export declare const leverageVaultsMints: string[];
|
9
9
|
export declare const nxfinanceLeverageIdlItem: IdlItem;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.nxfinanceLeverageIdlItem = exports.
|
3
|
+
exports.nxfinanceLeverageIdlItem = exports.leverageVaultsMints = exports.leverageFiProgramID = exports.ID = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
const idl_1 = require("./idl");
|
6
6
|
exports.platformId = 'nxfinance';
|
@@ -14,7 +14,10 @@ exports.platform = {
|
|
14
14
|
};
|
15
15
|
exports.ID = new web3_js_1.PublicKey('RaXcyfW8jK295UAU1XN2uLMTHnTWEaeCcNWLeDB4iD6');
|
16
16
|
exports.leverageFiProgramID = new web3_js_1.PublicKey('EHBN9YKtMmrZhj8JZqyBQRGqyyeHw5xUB1Q5eAHszuMt');
|
17
|
-
exports.
|
17
|
+
exports.leverageVaultsMints = [
|
18
|
+
'27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4', // JLP
|
19
|
+
'vSoLxydx6akxyMD9XEcPvGYNGq6Nn66oqVb3UkGkei7', // vSOL
|
20
|
+
];
|
18
21
|
exports.nxfinanceLeverageIdlItem = {
|
19
22
|
programId: exports.leverageFiProgramID.toString(),
|
20
23
|
idl: idl_1.NxfinanceLeverageIDL,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,+BAA6C;AAEhC,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,gCAAgC;IACzC,WAAW,EAAE,YAAY,EAAE,sCAAsC;CAClE,CAAC;AAEW,QAAA,EAAE,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AAElE,QAAA,mBAAmB,GAAG,IAAI,mBAAS,CAC9C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,+BAA6C;AAEhC,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,gCAAgC;IACzC,WAAW,EAAE,YAAY,EAAE,sCAAsC;CAClE,CAAC;AAEW,QAAA,EAAE,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AAElE,QAAA,mBAAmB,GAAG,IAAI,mBAAS,CAC9C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,mBAAmB,GAAG;IACjC,8CAA8C,EAAE,MAAM;IACtD,6CAA6C,EAAE,OAAO;CACvD,CAAC;AAEW,QAAA,wBAAwB,GAAG;IACtC,SAAS,EAAE,2BAAmB,CAAC,QAAQ,EAAE;IACzC,GAAG,EAAE,0BAAoB;IACzB,OAAO,EAAE,QAAQ;CACP,CAAC"}
|
@@ -64,7 +64,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
64
64
|
.toNumber();
|
65
65
|
if (amount > 0) {
|
66
66
|
const assetToken = (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, amount, portfolio_core_1.NetworkId.solana, tokenPrice);
|
67
|
-
if (deposit.tokenMint
|
67
|
+
if (constants_1.leverageVaultsMints.includes(deposit.tokenMint)) {
|
68
68
|
suppliedAssets.push(assetToken);
|
69
69
|
}
|
70
70
|
else {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AACtD,+CAAuE;AACvE,qGAA6E;AAE7E,uCAAiE;AAEjE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,sBAAsB,GAAG,mBAAS,CAAC,sBAAsB,CAC7D;QACE,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,cAAE,CAAC,QAAQ,EAAE,CAAC,EACf,+BAAmB,CACp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AsB,EACvC,UAAU,CAAC,OAAO,EAClB,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CAAC;YACF,IAAI,OAAO,CAAC,SAAS,
|
1
|
+
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AACtD,+CAAuE;AACvE,qGAA6E;AAE7E,uCAAiE;AAEjE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,sBAAsB,GAAG,mBAAS,CAAC,sBAAsB,CAC7D;QACE,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,cAAE,CAAC,QAAQ,EAAE,CAAC,EACf,+BAAmB,CACpB,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACf,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;QAC/B,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;KACvB,EACD,+BAAmB,CACpB,CAAC,CAAC,CAAC,CAAC;IAEL,MAAM,aAAa,GAAG,CACpB,MAAM,IAAA,0CAAiC,EACrC,UAAU,EACV,oCAAwB,EACxB,CAAC,sBAAsB,CAAC,CACzB,CACF,CAAC,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,CAAC;IAE9B,MAAM,QAAQ,GAAuB,EAAE,CAAC;IAExC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;IAChC,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CACnC,KAAK,CAAC,GAAG,CAAC,IAAA,mCAAkB,EAAC,CAAC,CAAC,SAAS,EAAE,0BAAS,CAAC,MA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BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,iBAAiB,IAAI,sBAAS,CAAC,aAAa,CAAC,QAAQ,CAAC;iBACzD,SAAS,CAAC,GAAG,CAAC;iBACd,aAAa,CAAC,CAAC,CAAC,EAAE;YACrB,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,YAAY;gBACZ,WAAW;gBACX,WAAW,EAAE,IAAI;gBACjB,KAAK,EAAE,aAAa;aACrB;SACF,CAAC,CAAC;IACL,CAAC;IAED,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"}
|
@@ -6,7 +6,11 @@ export declare const marketsPrefix = "solend-markets";
|
|
6
6
|
export declare const reservesPrefix = "solend-reserves";
|
7
7
|
export declare const marketsKey = "markets";
|
8
8
|
export declare const pid: PublicKey;
|
9
|
+
export declare const merkleProgramId: PublicKey;
|
9
10
|
export declare const marketsEndpoint = "https://api.solend.fi/v1/markets/configs";
|
10
11
|
export declare const reserveEndpoint = "https://api.solend.fi/v1/reserves/?ids=";
|
11
12
|
export declare const wadsDecimal = 18;
|
12
13
|
export declare const mainMarket = "4UpD2fh7xH3VP9QQaXtsS1YY3bxzWhtfpks7FatyKvdY";
|
14
|
+
export declare const externalRewardsEndpoint = "https://global.solend.fi/liquidity-mining/external-reward-score-v2?wallet=";
|
15
|
+
export declare const rewardsEndpoint = "https://global.solend.fi/liquidity-mining/reward-proofs?obligation=";
|
16
|
+
export declare const slndMint = "SLNDpmoWTVADgEdndyvWzroNL7zSi1dF9PC3xHGtPwp";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.mainMarket = exports.wadsDecimal = exports.reserveEndpoint = exports.marketsEndpoint = exports.pid = exports.marketsKey = exports.reservesPrefix = exports.marketsPrefix = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.slndMint = exports.rewardsEndpoint = exports.externalRewardsEndpoint = exports.mainMarket = exports.wadsDecimal = exports.reserveEndpoint = exports.marketsEndpoint = exports.merkleProgramId = exports.pid = exports.marketsKey = exports.reservesPrefix = exports.marketsPrefix = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'solend';
|
6
6
|
exports.platform = {
|
@@ -14,8 +14,12 @@ exports.marketsPrefix = `${exports.platformId}-markets`;
|
|
14
14
|
exports.reservesPrefix = `${exports.platformId}-reserves`;
|
15
15
|
exports.marketsKey = 'markets';
|
16
16
|
exports.pid = new web3_js_1.PublicKey('So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo');
|
17
|
+
exports.merkleProgramId = new web3_js_1.PublicKey('mrksLcZ6rMs9xkmJgw6oKiR3GECw44Gb5NeDqu64kiw');
|
17
18
|
exports.marketsEndpoint = 'https://api.solend.fi/v1/markets/configs';
|
18
19
|
exports.reserveEndpoint = 'https://api.solend.fi/v1/reserves/?ids=';
|
19
20
|
exports.wadsDecimal = 18;
|
20
21
|
exports.mainMarket = '4UpD2fh7xH3VP9QQaXtsS1YY3bxzWhtfpks7FatyKvdY';
|
22
|
+
exports.externalRewardsEndpoint = 'https://global.solend.fi/liquidity-mining/external-reward-score-v2?wallet=';
|
23
|
+
exports.rewardsEndpoint = 'https://global.solend.fi/liquidity-mining/reward-proofs?obligation=';
|
24
|
+
exports.slndMint = 'SLNDpmoWTVADgEdndyvWzroNL7zSi1dF9PC3xHGtPwp';
|
21
25
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,oBAAoB;CAC9B,CAAC;AACW,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,cAAc,GAAG,GAAG,kBAAU,WAAW,CAAC;AAC1C,QAAA,UAAU,GAAG,SAAS,CAAC;AAEvB,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AACnE,QAAA,eAAe,GAAG,0CAA0C,CAAC;AAC7D,QAAA,eAAe,GAAG,yCAAyC,CAAC;AAC5D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,UAAU,GAAG,8CAA8C,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,oBAAoB;CAC9B,CAAC;AACW,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,cAAc,GAAG,GAAG,kBAAU,WAAW,CAAC;AAC1C,QAAA,UAAU,GAAG,SAAS,CAAC;AAEvB,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AACnE,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AACW,QAAA,eAAe,GAAG,0CAA0C,CAAC;AAC7D,QAAA,eAAe,GAAG,yCAAyC,CAAC;AAC5D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,UAAU,GAAG,8CAA8C,CAAC;AAC5D,QAAA,uBAAuB,GAClC,4EAA4E,CAAC;AAClE,QAAA,eAAe,GAC1B,qEAAqE,CAAC;AAE3D,QAAA,QAAQ,GAAG,6CAA6C,CAAC"}
|
@@ -8,7 +8,8 @@ const reservesJob_1 = __importDefault(require("./reservesJob"));
|
|
8
8
|
const marketsJob_1 = __importDefault(require("./marketsJob"));
|
9
9
|
const obligationsFetcher_1 = __importDefault(require("./obligationsFetcher"));
|
10
10
|
const constants_1 = require("./constants");
|
11
|
+
const rewardsFetcher_1 = __importDefault(require("./rewardsFetcher"));
|
11
12
|
exports.platforms = [constants_1.platform];
|
12
13
|
exports.jobs = [marketsJob_1.default, reservesJob_1.default];
|
13
|
-
exports.fetchers = [obligationsFetcher_1.default];
|
14
|
+
exports.fetchers = [obligationsFetcher_1.default, rewardsFetcher_1.default];
|
14
15
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAwC;AACxC,8DAAsC;AACtC,8EAAqD;AACrD,2CAAuC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAwC;AACxC,8DAAsC;AACtC,8EAAqD;AACrD,2CAAuC;AACvC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,qBAAW,CAAC,CAAC;AACxC,QAAA,QAAQ,GAAc,CAAC,4BAAiB,EAAE,wBAAc,CAAC,CAAC"}
|
@@ -0,0 +1,95 @@
|
|
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 axios_1 = __importDefault(require("axios"));
|
17
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
18
|
+
const web3_js_1 = require("@solana/web3.js");
|
19
|
+
const bn_js_1 = require("bn.js");
|
20
|
+
const constants_1 = require("./constants");
|
21
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
22
|
+
const solana_1 = require("../../utils/solana");
|
23
|
+
const clients_1 = require("../../utils/clients");
|
24
|
+
const structs_1 = require("./structs");
|
25
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
26
|
+
const client = (0, clients_1.getClientSolana)();
|
27
|
+
const obligationAddress = yield web3_js_1.PublicKey.createWithSeed(new web3_js_1.PublicKey(owner), '4UpD2fh7xH3VP9QQaXtsS1YY3bxzWhtf', constants_1.pid);
|
28
|
+
const [rewardsRes, externalRewardsRes] = yield Promise.all([
|
29
|
+
axios_1.default.get(constants_1.rewardsEndpoint + obligationAddress.toString()),
|
30
|
+
axios_1.default.get(constants_1.externalRewardsEndpoint + owner),
|
31
|
+
]);
|
32
|
+
const [rewards, externalRewards] = [rewardsRes.data, externalRewardsRes.data];
|
33
|
+
const slndRewards = rewards.filter((reward) => reward.incentivizer === 'slnd_points' &&
|
34
|
+
reward.quantity &&
|
35
|
+
reward.quantity !== '0');
|
36
|
+
const claimAndBumps = slndRewards.map((d) => web3_js_1.PublicKey.findProgramAddressSync([
|
37
|
+
Buffer.from('ClaimStatus', 'utf8'),
|
38
|
+
new bn_js_1.BN.BN(d.index).toArrayLike(Buffer, 'le', 8),
|
39
|
+
new web3_js_1.PublicKey(d.distributorPublicKey).toBytes(),
|
40
|
+
], new web3_js_1.PublicKey(constants_1.merkleProgramId))[0]);
|
41
|
+
const tokenMints = [
|
42
|
+
constants_1.slndMint,
|
43
|
+
externalRewards.map((externalReward) => externalReward.score && externalReward.score !== '0'
|
44
|
+
? externalReward.rewardMint
|
45
|
+
: null),
|
46
|
+
]
|
47
|
+
.flat()
|
48
|
+
.filter((m) => m !== null);
|
49
|
+
if (tokenMints.length === 0)
|
50
|
+
return [];
|
51
|
+
const [tokenPrices, claimStatuses] = yield Promise.all([
|
52
|
+
cache.getTokenPricesAsMap(tokenMints, portfolio_core_1.NetworkId.solana),
|
53
|
+
(0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.claimStatusStruct, claimAndBumps),
|
54
|
+
]);
|
55
|
+
const assets = [];
|
56
|
+
slndRewards.forEach((reward, i) => {
|
57
|
+
const tokenPrice = tokenPrices.get(constants_1.slndMint);
|
58
|
+
if (!tokenPrice)
|
59
|
+
return;
|
60
|
+
const claimStatus = claimStatuses[i];
|
61
|
+
if (!claimStatus || claimStatus.isClaimed)
|
62
|
+
return;
|
63
|
+
assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, new bignumber_js_1.default(reward.quantity)
|
64
|
+
.dividedBy(Math.pow(10, tokenPrice.decimals))
|
65
|
+
.toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice)), { attributes: { isClaimable: true } }));
|
66
|
+
});
|
67
|
+
externalRewards.forEach((externalReward) => {
|
68
|
+
if (!externalReward.score || externalReward.score === '0')
|
69
|
+
return;
|
70
|
+
const tokenPrice = tokenPrices.get(externalReward.rewardMint);
|
71
|
+
if (!tokenPrice)
|
72
|
+
return;
|
73
|
+
assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, new bignumber_js_1.default(externalReward.score).dividedBy(Math.pow(10, 36)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice)), { attributes: { isClaimable: true } }));
|
74
|
+
});
|
75
|
+
if (assets.length === 0)
|
76
|
+
return [];
|
77
|
+
const element = {
|
78
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
79
|
+
label: 'Rewards',
|
80
|
+
platformId: constants_1.platformId,
|
81
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
82
|
+
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
|
83
|
+
data: {
|
84
|
+
assets,
|
85
|
+
},
|
86
|
+
};
|
87
|
+
return [element];
|
88
|
+
});
|
89
|
+
const fetcher = {
|
90
|
+
id: `${constants_1.platformId}-rewards`,
|
91
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
92
|
+
executor,
|
93
|
+
};
|
94
|
+
exports.default = fetcher;
|
95
|
+
//# sourceMappingURL=rewardsFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rewardsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/rewardsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,kDAA0B;AAC1B,gEAAqC;AACrC,6CAA4C;AAC5C,iCAA2B;AAG3B,2CAOqB;AAErB,qGAA6E;AAC7E,+CAAmE;AACnE,iDAAsD;AACtD,uCAA2D;AAE3D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EA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zC,IAAI,CAAC,cAAc,CAAC,KAAK,IAAI,cAAc,CAAC,KAAK,KAAK,GAAG;YAAE,OAAO;QAClE,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QAC9D,IAAI,CAAC,UAAU;YAAE,OAAO;QACxB,MAAM,CAAC,IAAI,iCACN,IAAA,gCAAsB,EACvB,UAAU,CAAC,OAAO,EAClB,IAAI,sBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,EAAE,CAAA,CAAC,CAAC,QAAQ,EAAE,EAClE,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,KACD,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,IACjC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,OAAO,GAA6B;QACxC,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,KAAK,EAAE,SAAS;QAChB,UAAU,EAAV,sBAAU;QACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;QACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,EAAE;YACJ,MAAM;SACP;KACF,CAAC;IACF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,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"}
|
@@ -85,3 +85,11 @@ export type ObligationLiquidity = {
|
|
85
85
|
padding: Buffer;
|
86
86
|
};
|
87
87
|
export declare const obligationLiquidityStruct: BeetStruct<ObligationLiquidity, Partial<ObligationLiquidity>>;
|
88
|
+
export type ClaimStatus = {
|
89
|
+
buffer: Buffer;
|
90
|
+
isClaimed: boolean;
|
91
|
+
claimant: PublicKey;
|
92
|
+
claimedAt: BigNumber;
|
93
|
+
amount: BigNumber;
|
94
|
+
};
|
95
|
+
export declare const claimStatusStruct: BeetStruct<ClaimStatus, Partial<ClaimStatus>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.obligationLiquidityStruct = exports.obligationCollateralStruct = exports.obligationStruct = exports.reserveStruct = exports.lastUpdateStruct = exports.liquidityStruct = exports.collateralStruct = exports.reserveConfigStruct = exports.feesStruct = void 0;
|
3
|
+
exports.claimStatusStruct = exports.obligationLiquidityStruct = exports.obligationCollateralStruct = exports.obligationStruct = exports.reserveStruct = exports.lastUpdateStruct = exports.liquidityStruct = exports.collateralStruct = exports.reserveConfigStruct = exports.feesStruct = void 0;
|
4
4
|
const beet_1 = require("@metaplex-foundation/beet");
|
5
5
|
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
6
|
const solana_1 = require("../../utils/solana");
|
@@ -78,4 +78,11 @@ exports.obligationLiquidityStruct = new beet_1.BeetStruct([
|
|
78
78
|
['marketValue', solana_1.u128],
|
79
79
|
['padding', (0, solana_1.blob)(32)],
|
80
80
|
], (args) => args);
|
81
|
+
exports.claimStatusStruct = new beet_1.BeetStruct([
|
82
|
+
['buffer', (0, solana_1.blob)(8)],
|
83
|
+
['isClaimed', beet_1.bool],
|
84
|
+
['claimant', beet_solana_1.publicKey],
|
85
|
+
['claimedAt', solana_1.i64],
|
86
|
+
['amount', solana_1.u64],
|
87
|
+
], (args) => args);
|
81
88
|
//# sourceMappingURL=structs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/structs.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/structs.ts"],"names":[],"mappings":";;;AAAA,oDAAiE;AACjE,kEAA6D;AAG7D,+CAA0D;AAQ7C,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,mBAAmB,EAAE,SAAE,CAAC;CAC1B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC;AAgBW,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,wBAAwB,EAAE,SAAE,CAAC;IAC9B,CAAC,kBAAkB,EAAE,SAAE,CAAC;IACxB,CAAC,kBAAkB,EAAE,SAAE,CAAC;IACxB,CAAC,sBAAsB,EAAE,SAAE,CAAC;IAC5B,CAAC,eAAe,EAAE,SAAE,CAAC;IACrB,CAAC,mBAAmB,EAAE,SAAE,CAAC;IACzB,CAAC,eAAe,EAAE,SAAE,CAAC;IACrB,CAAC,MAAM,EAAE,kBAAU,CAAC;IACpB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,aAAa,EAAE,uBAAS,CAAC;CAC3B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAqB,CAChC,CAAC;AAQW,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,cAAc,EAAE,uBAAS,CAAC;CAC5B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AAcW,QAAA,eAAe,GAAG,IAAI,iBAAU,CAC3C;IACE,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,cAAc,EAAE,SAAE,CAAC;IACpB,CAAC,cAAc,EAA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100
|
};
|
101
101
|
};
|
102
|
+
export type ExternalReward = {
|
103
|
+
rewardMint: string;
|
104
|
+
rewardSymbol: string;
|
105
|
+
reserveID: string;
|
106
|
+
marketID: string;
|
107
|
+
obligationID: string;
|
108
|
+
side: string;
|
109
|
+
tokenMint: string;
|
110
|
+
balance: string;
|
111
|
+
debt: string;
|
112
|
+
score: string;
|
113
|
+
lastSlot: number;
|
114
|
+
lastTx: 'string';
|
115
|
+
};
|
116
|
+
export type Obligation = {
|
117
|
+
obligationID: string;
|
118
|
+
lotNumber: number;
|
119
|
+
index: number;
|
120
|
+
quantity: string;
|
121
|
+
distributorPublicKey: string;
|
122
|
+
name: string;
|
123
|
+
incentivizer: string;
|
124
|
+
};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="node" />
|
1
2
|
import { FixedSizeBeet, SupportedTypeDefinition } from '@metaplex-foundation/beet';
|
2
3
|
import BigNumber from 'bignumber.js';
|
3
4
|
export declare const f32: FixedSizeBeet<BigNumber>;
|
@@ -7,6 +8,16 @@ export declare const u64: FixedSizeBeet<BigNumber>;
|
|
7
8
|
export declare const u128: FixedSizeBeet<BigNumber>;
|
8
9
|
export declare const u256: FixedSizeBeet<BigNumber>;
|
9
10
|
export declare const u512: FixedSizeBeet<BigNumber>;
|
11
|
+
export declare const u64Str: FixedSizeBeet<string>;
|
12
|
+
export declare const u128Str: FixedSizeBeet<string>;
|
13
|
+
export declare const u256Str: FixedSizeBeet<string>;
|
14
|
+
export declare const u512Str: FixedSizeBeet<string>;
|
15
|
+
export declare const publicKeyStr: {
|
16
|
+
write(buf: Buffer, offset: number, value: string): void;
|
17
|
+
read(buf: Buffer, offset: number): string;
|
18
|
+
byteSize: number;
|
19
|
+
description: string;
|
20
|
+
};
|
10
21
|
export declare const i64: FixedSizeBeet<BigNumber>;
|
11
22
|
export declare const i128: FixedSizeBeet<BigNumber>;
|
12
23
|
export declare const i256: FixedSizeBeet<BigNumber>;
|
@@ -3,7 +3,9 @@ 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.numbersTypeMap = exports.i80f48 = exports.i512 = exports.i256 = exports.i128 = exports.i64 = exports.u512 = exports.u256 = exports.u128 = exports.u64 = exports.fp64 = exports.f64 = exports.f32 = void 0;
|
6
|
+
exports.numbersTypeMap = exports.i80f48 = exports.i512 = exports.i256 = exports.i128 = exports.i64 = exports.publicKeyStr = exports.u512Str = exports.u256Str = exports.u128Str = exports.u64Str = exports.u512 = exports.u256 = exports.u128 = exports.u64 = exports.fp64 = exports.f64 = exports.f32 = void 0;
|
7
|
+
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
8
|
+
const web3_js_1 = require("@solana/web3.js");
|
7
9
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
8
10
|
const bn_js_1 = require("bn.js");
|
9
11
|
const decimal_js_1 = __importDefault(require("decimal.js"));
|
@@ -24,6 +26,22 @@ function unsignedLargeBeet(byteSize, description) {
|
|
24
26
|
description,
|
25
27
|
};
|
26
28
|
}
|
29
|
+
function unsignedLargeBeetStr(byteSize, description) {
|
30
|
+
return {
|
31
|
+
write(buf, offset, value) {
|
32
|
+
const bn = new bn_js_1.BN(value);
|
33
|
+
const bytesArray = bn.toArray('le', this.byteSize);
|
34
|
+
const bytesArrayBuf = Buffer.from(bytesArray);
|
35
|
+
bytesArrayBuf.copy(buf, offset, 0, this.byteSize);
|
36
|
+
},
|
37
|
+
read(buf, offset) {
|
38
|
+
const subarray = buf.subarray(offset, offset + this.byteSize);
|
39
|
+
return new bn_js_1.BN(subarray, 'le').toString();
|
40
|
+
},
|
41
|
+
byteSize,
|
42
|
+
description,
|
43
|
+
};
|
44
|
+
}
|
27
45
|
function unsignedSplittedFloatLargeBeet(integerSize, floatSize, description) {
|
28
46
|
const byteSize = integerSize + floatSize;
|
29
47
|
const bitSize = byteSize * 8;
|
@@ -64,6 +82,20 @@ exports.u64 = unsignedLargeBeet(8, 'u64');
|
|
64
82
|
exports.u128 = unsignedLargeBeet(16, 'u128');
|
65
83
|
exports.u256 = unsignedLargeBeet(32, 'u256');
|
66
84
|
exports.u512 = unsignedLargeBeet(64, 'u512');
|
85
|
+
exports.u64Str = unsignedLargeBeetStr(8, 'u64');
|
86
|
+
exports.u128Str = unsignedLargeBeetStr(16, 'u128');
|
87
|
+
exports.u256Str = unsignedLargeBeetStr(32, 'u256');
|
88
|
+
exports.u512Str = unsignedLargeBeetStr(64, 'u512');
|
89
|
+
exports.publicKeyStr = {
|
90
|
+
write(buf, offset, value) {
|
91
|
+
beet_solana_1.publicKey.write(buf, offset, new web3_js_1.PublicKey(value));
|
92
|
+
},
|
93
|
+
read(buf, offset) {
|
94
|
+
return beet_solana_1.publicKey.read(buf, offset).toString();
|
95
|
+
},
|
96
|
+
byteSize: beet_solana_1.publicKey.byteSize,
|
97
|
+
description: beet_solana_1.publicKey.description,
|
98
|
+
};
|
67
99
|
function signedLargeBeet(byteSize, description) {
|
68
100
|
const bitSize = byteSize * 8;
|
69
101
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"numbers.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/solana/beets/numbers.ts"],"names":[],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"numbers.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/solana/beets/numbers.ts"],"names":[],"mappings":";;;;;;AAAA,kEAA6D;AAK7D,6CAA4C;AAC5C,gEAAqC;AACrC,iCAA2B;AAC3B,4DAAiC;AACjC,uCAAoD;AAEpD,SAAS,iBAAiB,CAAC,QAAgB,EAAE,WAAmB;IAC9D,OAAO;QACL,KAAK,CAAC,GAAW,EAAE,MAAc,EAAE,KAAgB;YACjD,MAAM,EAAE,GAAG,IAAI,UAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YACpC,MAAM,UAAU,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