@sonarwatch/portfolio-plugins 0.12.173 → 0.12.176
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/plugins/adrastea/positionsFetcher.js +1 -1
- package/src/plugins/adrastea/positionsFetcher.js.map +1 -1
- package/src/plugins/banx/stakingFetcher.js +1 -1
- package/src/plugins/banx/stakingFetcher.js.map +1 -1
- package/src/plugins/bluemove/constants.js +1 -1
- package/src/plugins/bluemove/constants.js.map +1 -1
- package/src/plugins/cetus/clmmsFetcher.js +1 -1
- package/src/plugins/cetus/clmmsFetcher.js.map +1 -1
- package/src/plugins/cetus/constants.js +1 -1
- package/src/plugins/cetus/constants.js.map +1 -1
- package/src/plugins/cetus/dcaFetcher.js +1 -1
- package/src/plugins/cetus/dcaFetcher.js.map +1 -1
- package/src/plugins/cetus/limitFetcher.js +1 -1
- package/src/plugins/cetus/limitFetcher.js.map +1 -1
- package/src/plugins/deepbook/ordersFetcher.js +1 -1
- package/src/plugins/deepbook/ordersFetcher.js.map +1 -1
- package/src/plugins/drift/constants.js +1 -1
- package/src/plugins/drift/constants.js.map +1 -1
- package/src/plugins/foo/positionsEthereumFetcher.js +1 -1
- package/src/plugins/foo/positionsEthereumFetcher.js.map +1 -1
- package/src/plugins/foo/positionsSolanaFetcher.js +1 -1
- package/src/plugins/foo/positionsSolanaFetcher.js.map +1 -1
- package/src/plugins/foo/positionsSuiFetcher.js +1 -1
- package/src/plugins/foo/positionsSuiFetcher.js.map +1 -1
- package/src/plugins/francium/lendingFetcher.js +1 -1
- package/src/plugins/francium/lendingFetcher.js.map +1 -1
- package/src/plugins/hawksight/constants.js +1 -1
- package/src/plugins/hawksight/constants.js.map +1 -1
- package/src/plugins/hedgehog/constants.js +1 -1
- package/src/plugins/hedgehog/constants.js.map +1 -1
- package/src/plugins/jewel/constants.js +1 -0
- package/src/plugins/jewel/constants.js.map +1 -1
- package/src/plugins/kamino/lendsFetcher.js +1 -1
- package/src/plugins/kamino/lendsFetcher.js.map +1 -1
- package/src/plugins/kriya/constants.js +1 -1
- package/src/plugins/kriya/constants.js.map +1 -1
- package/src/plugins/kriya/farmsFetcher.js +1 -1
- package/src/plugins/kriya/farmsFetcher.js.map +1 -1
- package/src/plugins/meteora/farmsFetcher.js +1 -1
- package/src/plugins/meteora/farmsFetcher.js.map +1 -1
- package/src/plugins/nxfinance/positionsFetcher.js +1 -1
- package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
- package/src/plugins/orca/getWhirlpoolPositions.js +83 -33
- package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
- package/src/plugins/raydium/farmsFetcher.js +1 -1
- package/src/plugins/raydium/farmsFetcher.js.map +1 -1
- package/src/plugins/sandglass/depositFetcher.js +7 -2
- package/src/plugins/sandglass/depositFetcher.js.map +1 -1
- package/src/plugins/sandglass/marketsJob.js +22 -1
- package/src/plugins/sandglass/marketsJob.js.map +1 -1
- package/src/plugins/stabble/constants.js +1 -1
- package/src/plugins/typus/constants.js +1 -1
- package/src/plugins/typus/constants.js.map +1 -1
- package/src/utils/elementbuilder/AssetBuilder.d.ts +1 -1
- package/src/utils/elementbuilder/AssetBuilder.js +1 -1
- package/src/utils/elementbuilder/AssetBuilder.js.map +1 -1
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.d.ts +1 -1
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +5 -5
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -1
- package/src/utils/elementbuilder/ElementBuilder.d.ts +1 -1
- package/src/utils/elementbuilder/ElementLiquidityBuilder.d.ts +1 -1
- package/src/utils/elementbuilder/ElementLiquidityBuilder.js +2 -2
- package/src/utils/elementbuilder/ElementLiquidityBuilder.js.map +1 -1
- package/src/utils/elementbuilder/ElementMultipleBuilder.d.ts +1 -1
- package/src/utils/elementbuilder/ElementMultipleBuilder.js +2 -2
- package/src/utils/elementbuilder/ElementMultipleBuilder.js.map +1 -1
- package/src/utils/elementbuilder/ElementRegistry.d.ts +1 -1
- package/src/utils/elementbuilder/ElementRegistry.js +2 -2
- package/src/utils/elementbuilder/ElementRegistry.js.map +1 -1
- package/src/utils/elementbuilder/LiquidityBuilder.d.ts +1 -1
- package/src/utils/elementbuilder/LiquidityBuilder.js +3 -3
- package/src/utils/elementbuilder/LiquidityBuilder.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,18 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.12.176](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.175...plugins-0.12.176) (2024-10-03)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.12.175](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.174...plugins-0.12.175) (2024-10-03)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## [0.12.174](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.173...plugins-0.12.174) (2024-10-01)
|
14
|
+
|
15
|
+
|
16
|
+
|
5
17
|
## [0.12.173](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.172...plugins-0.12.173) (2024-10-01)
|
6
18
|
|
7
19
|
|
package/package.json
CHANGED
@@ -50,7 +50,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
50
50
|
amount: usdcPosition.amount,
|
51
51
|
});
|
52
52
|
}
|
53
|
-
return elementRegistry.
|
53
|
+
return elementRegistry.getElements(cache);
|
54
54
|
});
|
55
55
|
const fetcher = {
|
56
56
|
id: `${constants_1.platformId}-positions`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrastea/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAKqB;AAErB,kEAA+D;AAE/D,gFAA6E;AAC7E,+CAAoD;AAEpD,MAAM,gBAAgB,GAAG,IAAI,6BA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,CAAC;YACjD,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;QACH,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,uBAAc,CAAC,QAAQ,EAAE;YAClC,MAAM,EAAE,YAAY,CAAC,MAAM;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,
|
1
|
+
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrastea/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAKqB;AAErB,kEAA+D;AAE/D,gFAA6E;AAC7E,+CAAoD;AAEpD,MAAM,gBAAgB,GAAG,IAAI,6BAAa,CAAa,gCAAoB,EAAE;IAC3E,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AACH,MAAM,iBAAiB,GAAG,IAAI,6BAAa,CAAa,iCAAqB,EAAE;IAC7E,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACtD,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC;QAC/B,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC;KACjC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAChE,MAAM,YAAY,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAElE,IAAI,CAAC,WAAW,IAAI,CAAC,YAAY;QAAE,OAAO,EAAE,CAAC;IAE7C,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,IAAI,WAAW,EAAE,CAAC;QAChB,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;YACjD,KAAK,EAAE,UAAU;SAClB,CAAC,CAAC;QACH,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oBAAQ,CAAC,QAAQ,EAAE;YAC5B,MAAM,EAAE,WAAW,CAAC,MAAM;SAC3B,CAAC,CAAC;IACL,CAAC;IAED,IAAI,YAAY,EAAE,CAAC;QACjB,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;YACjD,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;QACH,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,uBAAc,CAAC,QAAQ,EAAE;YAClC,MAAM,EAAE,YAAY,CAAC,MAAM;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,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"}
|
@@ -44,7 +44,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
44
44
|
amount,
|
45
45
|
alreadyShifted: true,
|
46
46
|
});
|
47
|
-
return elementRegistry.
|
47
|
+
return elementRegistry.getElements(cache);
|
48
48
|
});
|
49
49
|
const fetcher = {
|
50
50
|
id: `${constants_1.platformId}-staking`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AA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,CAAC;IAE3E,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;IAEH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,oBAAQ;QACjB,MAAM;QACN,cAAc,EAAE,IAAI;KACrB,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,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"}
|
@@ -8,7 +8,7 @@ exports.platform = {
|
|
8
8
|
image: 'https://sonar.watch/img/platforms/bluemove.webp',
|
9
9
|
website: 'https://dex.bluemove.net/',
|
10
10
|
twitter: 'https://x.com/BlueMove_OA',
|
11
|
-
defiLlamaId: 'bluemove', // from https://defillama.com/docs/api
|
11
|
+
defiLlamaId: 'parent#bluemove', // from https://defillama.com/docs/api
|
12
12
|
};
|
13
13
|
exports.marketsCacheKey = `markets`;
|
14
14
|
exports.packageId = '0xb24b6789e088b876afabca733bed2299fbc9e2d6369be4d1acfa17d8145454d9';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bluemove/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bluemove/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,iBAAiB,EAAE,sCAAsC;CACvE,CAAC;AACW,QAAA,eAAe,GAAG,SAAS,CAAC;AAE5B,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAE1D,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAE1D,QAAA,UAAU,GAAG,CAAC,CAAC"}
|
@@ -60,7 +60,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
60
60
|
// });
|
61
61
|
// if (poolsById.size === 0) return [];
|
62
62
|
const mints = [];
|
63
|
-
const poolsObjects = yield (0, multiGetObjects_1.multiGetObjects)(client, poolsIds);
|
63
|
+
const poolsObjects = yield (0, multiGetObjects_1.multiGetObjects)(client, [...new Set(poolsIds)]);
|
64
64
|
poolsObjects.forEach((poolObj) => {
|
65
65
|
var _a, _b;
|
66
66
|
if ((_b = (_a = poolObj.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"clmmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/clmmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,2CAAsE;AACtE,iDAAmD;AACnD,uCAImB;AAGnB,qGAA6E;AAC7E,wFAAyF;AACzF,qEAAkE;AAClE,qEAAkE;AAElE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,s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QACX,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;QACpD,MAAM,CAAC,IAAI,CAAC;YACV,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;YAClC,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,EAAE;YAChB,iBAAiB,EAAE,CAAC;YACpB,KAAK;YACL,MAAM,EAAE,EAAE;SACX,CAAC,CAAC;QACH,mBAAmB,IAAI,KAAK,CAAC;IAC/B,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,SAAS;YACpC,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,CAAC,cAAc,CAAC;YACtB,KAAK,EAAE,mBAAmB;YAC1B,IAAI,EAAE;gBACJ,WAAW,EAAE,MAAM;aACpB;SACF;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -6,7 +6,7 @@ exports.platform = {
|
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Cetus',
|
8
8
|
image: 'https://sonar.watch/img/platforms/cetus.webp',
|
9
|
-
defiLlamaId: 'cetus',
|
9
|
+
defiLlamaId: 'parent#cetus',
|
10
10
|
website: 'https://www.cetus.zone/',
|
11
11
|
};
|
12
12
|
exports.clmmPoolsPrefix = `${exports.platformId}-clmmPools`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,cAAc;IAC3B,OAAO,EAAE,yBAAyB;CACnC,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,QAAQ,GAAG,GAAG,yBAAiB,sBAAsB,CAAC;AAEtD,QAAA,eAAe,GAAG,GAAG,yBAAiB,4BAA4B,CAAC;AACnE,QAAA,YAAY,GACvB,oEAAoE,CAAC;AAC1D,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAEvE,qFAAqF;AACrF,sDAAsD;AACzC,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAE1D,QAAA,WAAW,GACtB,8FAA8F,CAAC;AAEpF,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,kBAAkB,GAC7B,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC"}
|
@@ -66,7 +66,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
66
66
|
amount: order.data.content.fields.out_balance,
|
67
67
|
});
|
68
68
|
});
|
69
|
-
return elementRegistry.
|
69
|
+
return elementRegistry.getElements(cache);
|
70
70
|
});
|
71
71
|
const fetcher = {
|
72
72
|
id: `${constants_1.platformId}-dca`,
|
@@ -1 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H,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,MAAM;IACvB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -55,7 +55,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
55
55
|
amount: order.data.content.fields.pay_balance,
|
56
56
|
});
|
57
57
|
});
|
58
|
-
return elementRegistry.
|
58
|
+
return elementRegistry.getElements(cache);
|
59
59
|
});
|
60
60
|
const fetcher = {
|
61
61
|
id: `${constants_1.platformId}-limit`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"limitFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/limitFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,8DAA+D;AAG/D,2CAKqB;AACrB,iDAAmD;AAEnD,qEAAkE;AAClE,qGAAkG;AAClG,gFAA6E;AAC7E,uCAAqD;AAErD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,EAAE,GAAG,IAAI,+BAAgB,EAAE,CAAC;IAClC,EAAE,CAAC,QAAQ,CAAC;QACV,MAAM,EAAE,GAAG,0BAAc,4CAA4C;QACrE,SAAS,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,4BAAgB,CAAC,CAAC;QAChE,aAAa,EAAE,EAAE;KAClB,CAAC,CAAC;IAEH,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC;QAClD,MAAM,EAAE,8BAAkB;QAC1B,gBAAgB,EAAE,EAAE;KACrB,CAA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zB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -64,7 +64,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
64
64
|
amount: poolPosition.availableQuoteAmount.plus(poolPosition.lockedBaseAmount),
|
65
65
|
});
|
66
66
|
});
|
67
|
-
return elementRegistry.
|
67
|
+
return elementRegistry.getElements(cache);
|
68
68
|
});
|
69
69
|
const fetcher = {
|
70
70
|
id: `${constants_1.platformId}-orders`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ordersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/deepbook/ordersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAoE;AAEpE,iDAAmD;AACnD,qEAAkE;AAClE,uCAA4C;AAE5C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,WAAW,GAAG,MAAM,IAAA,iCAAe,EAAC,MAAM,EAAE,KAAK,EAAE;QACvD,OAAO,EAAE;YACP,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE,IAAI;SAChB;QACD,MAAM,EAAE;YACN,UAAU,EAAE;gBACV,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAU;aACpB;SACF;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,CAAA,MAAA,WAAW,CAAC,CAAC,CAAC,0CAAE,IAAI,CAAA;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;IAElD,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAgB,yBAAa,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IAEH,OAAO,eAAe,CAAC,
|
1
|
+
{"version":3,"file":"ordersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/deepbook/ordersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAoE;AAEpE,iDAAmD;AACnD,qEAAkE;AAClE,uCAA4C;AAE5C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,WAAW,GAAG,MAAM,IAAA,iCAAe,EAAC,MAAM,EAAE,KAAK,EAAE;QACvD,OAAO,EAAE;YACP,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,IAAI;YACjB,SAAS,EAAE,IAAI;SAChB;QACD,MAAM,EAAE;YACN,UAAU,EAAE;gBACV,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,sBAAU;aACpB;SACF;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,CAAA,MAAA,WAAW,CAAC,CAAC,CAAC,0CAAE,IAAI,CAAA;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;IAElD,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAgB,yBAAa,EAAE;QAC9D,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IAEH,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,GAAG,CACjC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,yBAAe,EAAC,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CACjE,CAAC;IAEF,MAAM,eAAe,GA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":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,YAAY,GAAG,OAAO,CAAC;AACvB,QAAA,aAAa,GAAG,8CAA8C,CAAC;AAC/D,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAC7C,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,oBAAY;IAClB,KAAK,EAAE,qBAAa;IACpB,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,YAAY,GAAG,OAAO,CAAC;AACvB,QAAA,aAAa,GAAG,8CAA8C,CAAC;AAC/D,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAC7C,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,oBAAY;IAClB,KAAK,EAAE,qBAAa;IACpB,WAAW,EAAE,cAAc;IAC3B,OAAO,EAAE,uBAAe;CACzB,CAAC;AACW,QAAA,cAAc,GAAG,aAAa,CAAC;AAE/B,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,iBAAiB,GAAG,gBAAgB,CAAC;AACrC,QAAA,qBAAqB,GAAG,sBAAsB,CAAC;AAC/C,QAAA,eAAe,GAAG,gBAAgB,CAAC;AAEnC,QAAA,UAAU,GAAG,0CAA0C,CAAC;AACxD,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,SAAS,GAAG,8CAA8C,CAAC;AAE3D,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,iBAAiB;IACrB,SAAS,EAAE,0BAA0B;IACrC,KAAK,EAAE,qBAAa;IACpB,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,oBAAY;IACzB,WAAW,EAAE,uBAAe;IAC5B,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;CACxB,CAAC"}
|
@@ -22,7 +22,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
22
22
|
amount: 2,
|
23
23
|
alreadyShifted: true,
|
24
24
|
});
|
25
|
-
return elementRegistry.
|
25
|
+
return elementRegistry.getElements(cache);
|
26
26
|
});
|
27
27
|
const fetcher = {
|
28
28
|
id: `${constants_1.platformId}-positions-ethereum`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"positionsEthereumFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsEthereumFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA8E;AAE9E,2CAAyC;AAEzC,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,QAAQ,EAAE,sBAAU,CAAC,CAAC;IAC5E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IACH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,sCAAqB;QAC9B,MAAM,EAAE,CAAC;QACT,cAAc,EAAE,IAAI;KACrB,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,
|
1
|
+
{"version":3,"file":"positionsEthereumFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsEthereumFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA8E;AAE9E,2CAAyC;AAEzC,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,QAAQ,EAAE,sBAAU,CAAC,CAAC;IAC5E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IACH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,sCAAqB;QAC9B,MAAM,EAAE,CAAC;QACT,cAAc,EAAE,IAAI;KACrB,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,qBAAqB;IACtC,SAAS,EAAE,0BAAS,CAAC,QAAQ;IAC7B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -41,7 +41,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
41
41
|
amount: acc.amountDeposited,
|
42
42
|
});
|
43
43
|
});
|
44
|
-
return elementRegistry.
|
44
|
+
return elementRegistry.getElements(cache);
|
45
45
|
});
|
46
46
|
const fetcher = {
|
47
47
|
id: `${constants_1.platformId}-positions-solana`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"positionsSolanaFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsSolanaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAE5C,2CAAyC;AAEzC,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA4C;AAC5C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,yBAAe,EACf,IAAI,mBAAS,CAAC,KAAK,CAAC,EACpB;QACE;YACE,QAAQ,EAAE,yBAAe,CAAC,QAAQ;SACnC;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oCAAmB;YAC5B,MAAM,EAAE,GAAG,CAAC,eAAe;SAC5B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,
|
1
|
+
{"version":3,"file":"positionsSolanaFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsSolanaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAE5C,2CAAyC;AAEzC,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA4C;AAC5C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,yBAAe,EACf,IAAI,mBAAS,CAAC,KAAK,CAAC,EACpB;QACE;YACE,QAAQ,EAAE,yBAAe,CAAC,QAAQ;SACnC;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oCAAmB;YAC5B,MAAM,EAAE,GAAG,CAAC,eAAe;SAC5B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,mBAAmB;IACpC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -35,7 +35,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
35
35
|
amount: (_d = (_c = r.data) === null || _c === void 0 ? void 0 : _c.content) === null || _d === void 0 ? void 0 : _d.fields.amountDeposited,
|
36
36
|
});
|
37
37
|
});
|
38
|
-
return elementRegistry.
|
38
|
+
return elementRegistry.getElements(cache);
|
39
39
|
});
|
40
40
|
const fetcher = {
|
41
41
|
id: `${constants_1.platformId}-positions-sui`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"positionsSuiFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsSuiFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAyE;AAEzE,2CAAyC;AAEzC,iDAAmD;AACnD,gFAA6E;AAC7E,qEAAkE;AAGlE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAe,EAAU,MAAM,EAAE,KAAK,EAAE;QAC7D,MAAM,EAAE;YACN,UAAU,EACR,kFAAkF;SACrF;KACF,CAAC,CAAC;IAEH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,GAAG,EAAE,sBAAU,CAAC,CAAC;IACvE,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;;QACrB,IAAI,MAAA,MAAA,CAAC,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,CAAC,eAAe;YACzC,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,iCAAgB;gBACzB,MAAM,EAAE,MAAA,MAAA,CAAC,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,CAAC,eAAe;aAChD,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,
|
1
|
+
{"version":3,"file":"positionsSuiFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/positionsSuiFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAyE;AAEzE,2CAAyC;AAEzC,iDAAmD;AACnD,gFAA6E;AAC7E,qEAAkE;AAGlE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAe,EAAU,MAAM,EAAE,KAAK,EAAE;QAC7D,MAAM,EAAE;YACN,UAAU,EACR,kFAAkF;SACrF;KACF,CAAC,CAAC;IAEH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,GAAG,EAAE,sBAAU,CAAC,CAAC;IACvE,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;;QACrB,IAAI,MAAA,MAAA,CAAC,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,CAAC,eAAe;YACzC,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,iCAAgB;gBACzB,MAAM,EAAE,MAAA,MAAA,CAAC,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,CAAC,eAAe;aAChD,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -59,7 +59,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
59
59
|
label: 'Lending',
|
60
60
|
});
|
61
61
|
assets.forEach((asset) => asset && element.addSuppliedAsset(asset));
|
62
|
-
return elementRegistry.
|
62
|
+
return elementRegistry.getElements(cache);
|
63
63
|
});
|
64
64
|
const fetcher = {
|
65
65
|
id: `${constants_1.platformId}-lending`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/francium/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAC5C,gEAAqC;AAErC,2CAA+D;AAE/D,iDAAsD;AACtD,uCAAyE;AACzE,qCAAkC;AAClC,gFAA6E;A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AAO,EAAE,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,QAAQ,EAAE;YACjD,MAAM,EAAE,UAAU,CAAC,YAAY,CAAC,aAAa,CAAC;SAC/C,CAAC;IACJ,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;IAE7B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,oBAAoB,CAAC;QACnD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpE,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,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"}
|
@@ -6,7 +6,7 @@ exports.platform = {
|
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Hawksight',
|
8
8
|
image: 'https://sonar.watch/img/platforms/hawksight.webp',
|
9
|
-
defiLlamaId: '
|
9
|
+
defiLlamaId: 'hawkfi',
|
10
10
|
website: 'https://hawksight.co/',
|
11
11
|
};
|
12
12
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hawksight/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kDAAkD;IACzD,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hawksight/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kDAAkD;IACzD,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,uBAAuB;CACjC,CAAC"}
|
@@ -9,7 +9,7 @@ exports.platform = {
|
|
9
9
|
image: 'https://sonar.watch/img/platforms/hedgehog.webp',
|
10
10
|
website: 'https://hedgehog.markets',
|
11
11
|
twitter: 'https://twitter.com/HedgehogMarket',
|
12
|
-
|
12
|
+
defiLlamaId: 'hedgehog-markets', // from https://defillama.com/docs/api
|
13
13
|
};
|
14
14
|
exports.ammPid = new web3_js_1.PublicKey('Hr4whNgXr3yZsJvx3TVSwfsFgXuSEPB1xKmvgrtLhsrM');
|
15
15
|
exports.swapPid = new web3_js_1.PublicKey('2ZznCMfx2XP43zaPw9R9wKnjXWiEeEexyhdBPv3UqDtD');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hedgehog/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,oCAAoC;IAC7C,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hedgehog/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,oCAAoC;IAC7C,WAAW,EAAE,kBAAkB,EAAE,sCAAsC;CACxE,CAAC;AACW,QAAA,MAAM,GAAG,IAAI,mBAAS,CACjC,8CAA8C,CAC/C,CAAC;AACW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC"}
|
@@ -8,6 +8,7 @@ exports.platform = {
|
|
8
8
|
name: 'Jewel Swap',
|
9
9
|
image: 'https://sonar.watch/img/platforms/jewel.webp',
|
10
10
|
website: 'https://sui.jewelswap.io/',
|
11
|
+
defiLlamaId: 'parent#jewelswap',
|
11
12
|
twitter: 'https://twitter.com/JewelSwapX',
|
12
13
|
};
|
13
14
|
exports.marketsCachePrefix = `${exports.platformId}-markets`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jewel/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAwE;AAE3D,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,gCAAgC;CAC1C,CAAC;AACW,QAAA,kBAAkB,GAAG,GAAG,kBAAU,UAAU,CAAC;AAE7C,QAAA,MAAM,GACjB,oFAAoF,CAAC;AAC1E,QAAA,oBAAoB,GAC/B,oEAAoE,CAAC;AAE1D,QAAA,oBAAoB,GAC/B,oEAAoE,CAAC;AAE1D,QAAA,sBAAsB,GACjC,oEAAoE,CAAC;AAE1D,QAAA,gBAAgB,GAAG;IAC9B;QACE,KAAK,EACH,oFAAoF;QACtF,UAAU,EACR,8EAA8E;QAChF,QAAQ,EACN,oEAAoE;KACvE;IACD;QACE,KAAK,EAAE,cAAM;QACb,UAAU,EAAE,iCAAgB;QAC5B,QAAQ,EACN,oEAAoE;KACvE;IACD;QACE,KAAK,EACH,wFAAwF;QAC1F,UAAU,EACR,kFAAkF;QACpF,QAAQ,EACN,oEAAoE;KACvE;CACF,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jewel/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAwE;AAE3D,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,kBAAkB;IAC/B,OAAO,EAAE,gCAAgC;CAC1C,CAAC;AACW,QAAA,kBAAkB,GAAG,GAAG,kBAAU,UAAU,CAAC;AAE7C,QAAA,MAAM,GACjB,oFAAoF,CAAC;AAC1E,QAAA,oBAAoB,GAC/B,oEAAoE,CAAC;AAE1D,QAAA,oBAAoB,GAC/B,oEAAoE,CAAC;AAE1D,QAAA,sBAAsB,GACjC,oEAAoE,CAAC;AAE1D,QAAA,gBAAgB,GAAG;IAC9B;QACE,KAAK,EACH,oFAAoF;QACtF,UAAU,EACR,8EAA8E;QAChF,QAAQ,EACN,oEAAoE;KACvE;IACD;QACE,KAAK,EAAE,cAAM;QACb,UAAU,EAAE,iCAAgB;QAC5B,QAAQ,EACN,oEAAoE;KACvE;IACD;QACE,KAAK,EACH,wFAAwF;QAC1F,UAAU,EACR,kFAAkF;QACpF,QAAQ,EACN,oEAAoE;KACvE;CACF,CAAC"}
|
@@ -222,7 +222,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
222
222
|
]);
|
223
223
|
}
|
224
224
|
}
|
225
|
-
return elementRegistry.
|
225
|
+
return elementRegistry.getElements(cache);
|
226
226
|
});
|
227
227
|
const fetcher = {
|
228
228
|
id: `${constants_1.platformId}-deposits`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lendsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/lendsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AACrC,2CAMqB;AAGrB,iDAAsD;AACtD,2CAAmE;AAEnE,+CAAmE;AACnE,yCAIwB;AACxB,6CAAsE;AACtE,gFAA6E;AAE7E,MAAM,eAAe,GAAG,kCAAkC,CAAC;AAE3D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAAC;IAEnC,MAAM,CAAC,OAAO,EAAE,uBAAuB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC3D,KAAK,CAAC,OAAO,CAAW,sBAAU,EAAE;YAClC,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC;QACF,KAAK,CAAC,OAAO,CAAmB,8BAAkB,EAAE;YAClD,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC;KACH,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAExB,MAAM,eAAe,GAAgC,IAAI,GAAG,EAAE,CAAC;IAC/D,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CACzC,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CACrC,CAAC;IAE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/platforms/kriya.webp',
|
9
|
-
defiLlamaId: '
|
9
|
+
defiLlamaId: 'parent#kriyadex', // from https://defillama.com/docs/api
|
10
10
|
website: 'https://www.app.kriya.finance/',
|
11
11
|
twitter: 'https://twitter.com/KriyaDEX',
|
12
12
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,iBAAiB,EAAE,sCAAsC;IACtE,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAC1D,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAE1D,QAAA,aAAa,GAAG,aAAa,CAAC;AAC9B,QAAA,qBAAqB,GAAG,qBAAqB,CAAC;AAC9C,QAAA,YAAY,GAAG,YAAY,CAAC;AAE5B,QAAA,SAAS,GACpB,4EAA4E,CAAC;AAClE,QAAA,QAAQ,GACnB,2EAA2E,CAAC;AACjE,QAAA,iBAAiB,GAC5B,4EAA4E,CAAC;AAElE,QAAA,iBAAiB,GAAG;IAC/B,wGAAwG;CACzG,CAAC;AAEW,QAAA,UAAU,GAAgB;IACrC;QACE,SAAS,EACP,wGAAwG;QAC1G,EAAE,EAAE,oEAAoE;QACxE,cAAc,EACZ,oEAAoE;KACvE;IACD;QACE,SAAS,EACP,4GAA4G;QAC9G,EAAE,EAAE,oEAAoE;QACxE,cAAc,EACZ,oEAAoE;KACvE;IACD;QACE,SAAS,EACP,8FAA8F;QAChG,EAAE,EAAE,oEAAoE;QACxE,cAAc,EACZ,oEAAoE;KACvE;CACF,CAAC;AAEW,QAAA,wBAAwB,GACnC,+HAA+H,CAAC"}
|
@@ -68,7 +68,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
68
68
|
apr: (0, portfolio_core_1.apyToApr)(farmInfo.apy / 100),
|
69
69
|
});
|
70
70
|
}
|
71
|
-
return elementRegistry.
|
71
|
+
return elementRegistry.getElements(cache);
|
72
72
|
});
|
73
73
|
const fetcher = {
|
74
74
|
id: `${constants_1.platformId}-farms`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AAGrC,2CAAuE;AACvE,iDAAmD;AACnD,qEAAkE;AAElE,gFAA6E;AAC7E,4DAAyD;AAEzD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,YAAY,GAAG,MAAM,IAAA,iCAAe,EAAoB,MAAM,EAAE,KAAK,EAAE;QAC3E,MAAM,EAAE,EAAE,OAAO,EAAE,0BAAc,EAAE;KACpC,CAAC,CAAC;IACH,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEzC,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,OAAO,CAAa,wBAAY,EAAE;QAC/D,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;I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,EAAE,YAAY;YACpB,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;QAEH,SAAS,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,QAAQ,CAAC,UAAU;YAC5B,MAAM,EAAE,YAAY;YACpB,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;QAEH,SAAS,CAAC,QAAQ,CAAC;YACjB,GAAG,EAAE,QAAQ,CAAC,GAAG,GAAG,GAAG;YACvB,GAAG,EAAE,IAAA,yBAAQ,EAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -58,7 +58,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
58
58
|
amount: rewardBPerTokenPending,
|
59
59
|
});
|
60
60
|
}
|
61
|
-
return elementRegistry.
|
61
|
+
return elementRegistry.getElements(cache);
|
62
62
|
});
|
63
63
|
const fetcher = {
|
64
64
|
id: `${constants_1.platformId}-farms`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAAmD;AACnD,iDAAsD;AACtD,+CAAmE;AACnE,qCAA6C;AAE7C,uCAA+C;AAC/C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,KAAK,CAA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;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -78,7 +78,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
78
78
|
amount: new bignumber_js_1.default(loan.loanNote).multipliedBy(borrowNoteRate),
|
79
79
|
});
|
80
80
|
});
|
81
|
-
return elementRegistry.
|
81
|
+
return elementRegistry.getElements(cache);
|
82
82
|
});
|
83
83
|
const fetcher = {
|
84
84
|
id: `${constants_1.platformId}-positions`,
|
@@ -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;AAEvE,uCAAiE;AACjE,gFAA6E;AAE7E,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,KAAK,GAAG,IAAI,GAAG,EAAU,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,YAAY,CAAC,cAAc,CAAC;SAClE,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,
|
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;AAEvE,uCAAiE;AACjE,gFAA6E;AAE7E,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,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;IAChC,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9D,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAA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AAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -96,43 +96,93 @@ function getOrcaNftFetcher(platformId, programId) {
|
|
96
96
|
continue;
|
97
97
|
const assetTokenA = (0, tokenPriceToAssetToken_1.default)(whirlpoolInfo.tokenMintA.toString(), tokenAmountA.dividedBy(Math.pow(10, tokenPriceA.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceA);
|
98
98
|
const assetTokenB = (0, tokenPriceToAssetToken_1.default)(whirlpoolInfo.tokenMintB.toString(), tokenAmountB.dividedBy(Math.pow(10, tokenPriceB.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceB);
|
99
|
-
const feesAndRewards =
|
99
|
+
/* const feesAndRewards = calcFeesAndRewards(
|
100
|
+
whirlpoolInfo,
|
101
|
+
positionInfo,
|
102
|
+
tickArrays
|
103
|
+
);
|
104
|
+
|
100
105
|
if (feesAndRewards) {
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
106
|
+
if (feesAndRewards.feeOwedA.isGreaterThan(0)) {
|
107
|
+
rewardAssets.push(
|
108
|
+
tokenPriceToAssetToken(
|
109
|
+
tokenPriceA.address,
|
110
|
+
feesAndRewards.feeOwedA
|
111
|
+
.dividedBy(10 ** tokenPriceA.decimals)
|
112
|
+
.toNumber(),
|
113
|
+
NetworkId.solana,
|
114
|
+
tokenPriceA
|
115
|
+
)
|
116
|
+
);
|
117
|
+
}
|
118
|
+
|
119
|
+
if (feesAndRewards.feeOwedB.isGreaterThan(0)) {
|
120
|
+
rewardAssets.push(
|
121
|
+
tokenPriceToAssetToken(
|
122
|
+
tokenPriceB.address,
|
123
|
+
feesAndRewards.feeOwedB
|
124
|
+
.dividedBy(10 ** tokenPriceB.decimals)
|
125
|
+
.toNumber(),
|
126
|
+
NetworkId.solana,
|
127
|
+
tokenPriceB
|
128
|
+
)
|
129
|
+
);
|
130
|
+
}
|
131
|
+
|
132
|
+
if (feesAndRewards.rewardOwedA.isGreaterThan(0)) {
|
133
|
+
const tokenPriceRewardA = tokenPrices.get(
|
134
|
+
whirlpoolInfo.rewardInfos[0].mint.toString()
|
135
|
+
);
|
136
|
+
if (tokenPriceRewardA) {
|
137
|
+
rewardAssets.push(
|
138
|
+
tokenPriceToAssetToken(
|
139
|
+
tokenPriceRewardA.address,
|
140
|
+
feesAndRewards.rewardOwedA
|
141
|
+
.dividedBy(10 ** tokenPriceRewardA.decimals)
|
142
|
+
.toNumber(),
|
143
|
+
NetworkId.solana,
|
144
|
+
tokenPriceRewardA
|
145
|
+
)
|
146
|
+
);
|
105
147
|
}
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
148
|
+
}
|
149
|
+
|
150
|
+
if (feesAndRewards.rewardOwedB.isGreaterThan(0)) {
|
151
|
+
const tokenPriceRewardB = tokenPrices.get(
|
152
|
+
whirlpoolInfo.rewardInfos[1].mint.toString()
|
153
|
+
);
|
154
|
+
if (tokenPriceRewardB) {
|
155
|
+
rewardAssets.push(
|
156
|
+
tokenPriceToAssetToken(
|
157
|
+
tokenPriceRewardB.address,
|
158
|
+
feesAndRewards.rewardOwedB
|
159
|
+
.dividedBy(10 ** tokenPriceRewardB.decimals)
|
160
|
+
.toNumber(),
|
161
|
+
NetworkId.solana,
|
162
|
+
tokenPriceRewardB
|
163
|
+
)
|
164
|
+
);
|
110
165
|
}
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
166
|
+
}
|
167
|
+
|
168
|
+
if (feesAndRewards.rewardOwedC.isGreaterThan(0)) {
|
169
|
+
const tokenPriceRewardC = tokenPrices.get(
|
170
|
+
whirlpoolInfo.rewardInfos[2].mint.toString()
|
171
|
+
);
|
172
|
+
if (tokenPriceRewardC) {
|
173
|
+
rewardAssets.push(
|
174
|
+
tokenPriceToAssetToken(
|
175
|
+
tokenPriceRewardC.address,
|
176
|
+
feesAndRewards.rewardOwedC
|
177
|
+
.dividedBy(10 ** tokenPriceRewardC.decimals)
|
178
|
+
.toNumber(),
|
179
|
+
NetworkId.solana,
|
180
|
+
tokenPriceRewardC
|
181
|
+
)
|
182
|
+
);
|
118
183
|
}
|
119
|
-
|
120
|
-
|
121
|
-
if (tokenPriceRewardB) {
|
122
|
-
rewardAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPriceRewardB.address, feesAndRewards.rewardOwedB
|
123
|
-
.dividedBy(Math.pow(10, tokenPriceRewardB.decimals))
|
124
|
-
.toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceRewardB));
|
125
|
-
}
|
126
|
-
}
|
127
|
-
if (feesAndRewards.rewardOwedC.isGreaterThan(0)) {
|
128
|
-
const tokenPriceRewardC = tokenPrices.get(whirlpoolInfo.rewardInfos[2].mint.toString());
|
129
|
-
if (tokenPriceRewardC) {
|
130
|
-
rewardAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPriceRewardC.address, feesAndRewards.rewardOwedC
|
131
|
-
.dividedBy(Math.pow(10, tokenPriceRewardC.decimals))
|
132
|
-
.toNumber(), portfolio_core_1.NetworkId.solana, tokenPriceRewardC));
|
133
|
-
}
|
134
|
-
}
|
135
|
-
}
|
184
|
+
}
|
185
|
+
} */
|
136
186
|
if (!assetTokenA ||
|
137
187
|
!assetTokenB ||
|
138
188
|
assetTokenA.value === null ||
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getWhirlpoolPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/getWhirlpoolPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,2CAIqB;AACrB,iDAAsD;AACtD,+CAG4B;AAE5B,mDAAgE;AAChE,qGAA6E;AAC7E,wFAAyF;AAEzF,iDAIwB;AAEX,QAAA,qBAAqB,GAAG,iBAAiB,CACpD,sBAAc,EACd,4BAAgB,CACjB,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,UAAkB,EAClB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AC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;YACzE,IAAI,CAAC,WAAW;gBAAE,SAAS;YAE3B,MAAM,WAAW,GAAG,IAAA,gCAAsB,EACxC,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAE,EACnC,YAAY,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,WAAW,CAAC,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EAC7D,0BAAS,CAAC,MAAM,EAChB,WAAW,CACZ,CAAC;YAEF,MAAM,WAAW,GAAG,IAAA,gCAAsB,EACxC,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAE,EACnC,YAAY,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,WAAW,CAAC,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EAC7D,0BAAS,CAAC,MAAM,EAChB,WAAW,CACZ,CAAC;YAEF
|
1
|
+
{"version":3,"file":"getWhirlpoolPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/getWhirlpoolPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,2CAIqB;AACrB,iDAAsD;AACtD,+CAG4B;AAE5B,mDAAgE;AAChE,qGAA6E;AAC7E,wFAAyF;AAEzF,iDAIwB;AAEX,QAAA,qBAAqB,GAAG,iBAAiB,CACpD,sBAAc,EACd,4BAAgB,CACjB,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,UAAkB,EAClB,SAAoB;IAEpB,OAAO,CACL,KAAY,EACZ,IAAiC,EACJ,EAAE;QAC/B,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,uBAAuB,GAAgB,EAAE,CAAC;QAEhD,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,MAAM,OAAO,GAAG,IAAI,mBAAS,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEhD,MAAM,YAA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,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -36,7 +36,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
36
36
|
.map((marketInfo) => [
|
37
37
|
marketInfo.ptMint,
|
38
38
|
marketInfo.ytMint,
|
39
|
-
|
39
|
+
marketInfo.lpMint,
|
40
40
|
// marketInfo.syMint,
|
41
41
|
])
|
42
42
|
.flat();
|
@@ -46,9 +46,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
46
46
|
const market = marketInfoById.get(account.marketAccount.toString());
|
47
47
|
if (!market)
|
48
48
|
continue;
|
49
|
-
const { stakePtAmount, stakeYtAmount } = account.stakeInfo;
|
49
|
+
const { stakePtAmount, stakeYtAmount, stakeLpAmount } = account.stakeInfo;
|
50
50
|
const ptPrice = tokenPriceById.get(market.ptMint);
|
51
51
|
const ytPrice = tokenPriceById.get(market.ytMint);
|
52
|
+
const lpPrice = tokenPriceById.get(market.lpMint);
|
52
53
|
if (ptPrice && !stakePtAmount.isZero()) {
|
53
54
|
const amount = stakePtAmount.dividedBy(Math.pow(10, ptPrice.decimals)).toNumber();
|
54
55
|
assets.push((0, tokenPriceToAssetToken_1.default)(market.ptMint, amount, portfolio_core_1.NetworkId.solana, ptPrice));
|
@@ -57,6 +58,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
57
58
|
const amount = stakeYtAmount.dividedBy(Math.pow(10, ytPrice.decimals)).toNumber();
|
58
59
|
assets.push((0, tokenPriceToAssetToken_1.default)(market.ytMint, amount, portfolio_core_1.NetworkId.solana, ytPrice));
|
59
60
|
}
|
61
|
+
if (lpPrice && !stakeLpAmount.isZero()) {
|
62
|
+
const amount = stakeLpAmount.dividedBy(Math.pow(10, lpPrice.decimals)).toNumber();
|
63
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(market.lpMint, amount, portfolio_core_1.NetworkId.solana, lpPrice));
|
64
|
+
}
|
60
65
|
}
|
61
66
|
if (assets.length === 0)
|
62
67
|
return [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAGpC,2CAAoE;AACpE,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAmD;AACnD,uCAA+C;AAE/C,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,gCAAsB,EACtB,qBAAS,EACT,IAAA,4BAAkB,EAAC,KAAK,CAAC,CAC1B,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,OAAO,CAAe,0BAAc,EAAE;QACrE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,YAAY;QAAE,OAAO,EAAE,CAAC;IAE7B,MAAM,cAAc,GAA4B,IAAI,GAAG,EAAE,CAAC;IAC1D,YAAY,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CAClC,cAAc,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,UAAU,CAAC,CAC7D,CAAC;IAEF,MAAM,KAAK,GAAG,YAAY;SACvB,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC;QACnB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;QACjB,
|
1
|
+
{"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/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,aAAa,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,OAAO,CAAC,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,CAAC;YAC1E,MAAM,CAAC,IAAI,CACT,IAAA,gCAAsB,EAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,0BAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CACzE,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACzD,IAAI,EAAE;gBACJ,MAAM;aACP;SACF;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"}
|
@@ -20,8 +20,9 @@ const constants_1 = require("./constants");
|
|
20
20
|
const structs_1 = require("./structs");
|
21
21
|
const filters_1 = require("./filters");
|
22
22
|
const constants_2 = require("../tokens/constants");
|
23
|
+
const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
|
23
24
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
|
-
var _a, _b;
|
25
|
+
var _a, _b, _c;
|
25
26
|
const client = (0, clients_1.getClientSolana)();
|
26
27
|
const markets = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.marketStruct, constants_1.programId, filters_1.marketAccountFilters);
|
27
28
|
const mints = markets
|
@@ -50,8 +51,10 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
50
51
|
const ytPrice = new bignumber_js_1.default(1).minus(ptPrice);
|
51
52
|
const ptMint = market.tokenPtMintAddress;
|
52
53
|
const ytMint = market.tokenYtMintAddress;
|
54
|
+
const lpMint = market.tokenLpMintAddress;
|
53
55
|
const ptDecimals = (_a = mintsInfoById.get(ptMint.toString())) === null || _a === void 0 ? void 0 : _a.decimals;
|
54
56
|
const ytDecimals = (_b = mintsInfoById.get(ytMint.toString())) === null || _b === void 0 ? void 0 : _b.decimals;
|
57
|
+
const lpDecimals = (_c = mintsInfoById.get(lpMint.toString())) === null || _c === void 0 ? void 0 : _c.decimals;
|
55
58
|
if (ptDecimals)
|
56
59
|
sources.push({
|
57
60
|
address: ptMint.toString(),
|
@@ -74,6 +77,24 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
74
77
|
timestamp: Date.now(),
|
75
78
|
weight: 1,
|
76
79
|
});
|
80
|
+
const lpSupply = (yield client.getTokenSupply(lpMint)).value.uiAmount;
|
81
|
+
const lpUnderlyingTokenAccount = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, solana_1.tokenAccountStruct, market.vaultLpTokenAccount);
|
82
|
+
if (lpSupply && lpUnderlyingTokenAccount && lpDecimals) {
|
83
|
+
const lpPrice = lpUnderlyingTokenAccount.amount
|
84
|
+
.dividedBy(Math.pow(10, baseTokenPrice.decimals))
|
85
|
+
.times(baseTokenPrice.price)
|
86
|
+
.dividedBy(lpSupply);
|
87
|
+
sources.push({
|
88
|
+
address: lpMint.toString(),
|
89
|
+
decimals: lpDecimals,
|
90
|
+
id: market.pubkey.toString(),
|
91
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
92
|
+
platformId: constants_2.walletTokensPlatform.id,
|
93
|
+
price: lpPrice.toNumber(),
|
94
|
+
timestamp: Date.now(),
|
95
|
+
weight: 1,
|
96
|
+
});
|
97
|
+
}
|
77
98
|
marketsInfos.push({
|
78
99
|
pubkey: market.pubkey.toString(),
|
79
100
|
ytMint: market.tokenYtMintAddress.toString(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"marketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/marketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAAyE;AAGzE,iDAAsD;AACtD,+
|
1
|
+
{"version":3,"file":"marketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/marketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAAyE;AAGzE,iDAAsD;AACtD,+CAM4B;AAC5B,2CAAoE;AACpE,uCAAyC;AACzC,uCAAiD;AAEjD,mDAA2D;AAC3D,kFAA+E;AAE/E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,OAAO,GAAG,MAAM,IAAA,iCAAwB,EAC5C,MAAM,EACN,sBAAY,EACZ,qBAAS,EACT,8BAAoB,CACrB,CAAC;IAEF,MAAM,KAAK,GAAG,OAAO;SAClB,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;QACf,MAAM,CAAC,kBAAkB;QACzB,MAAM,CAAC,kBAAkB;QACzB,MAAM,CAAC,kBAAkB;QACzB,MAAM,CAAC,kBAAkB;KAC1B,CAAC;SACD,IAAI,EAAE,CAAC;IAEV,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CACvC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CACrC,CAAC;IACF,MAAM,kBAAkB,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACxD,SAAS,EACT,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACvD,MAAM,EACN,0BAAiB,EACjB,KA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|
exports.platformId = 'stabble';
|
7
7
|
exports.platform = {
|
8
8
|
id: exports.platformId,
|
9
|
-
name: '
|
9
|
+
name: 'stabble',
|
10
10
|
image: 'https://sonar.watch/img/platforms/stabble.webp',
|
11
11
|
website: 'https://app.stabble.org/',
|
12
12
|
twitter: 'https://x.com/stabbleorg',
|
@@ -6,7 +6,7 @@ exports.platform = {
|
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Typus',
|
8
8
|
image: 'https://sonar.watch/img/platforms/typus.webp',
|
9
|
-
defiLlamaId: 'typus-finance', // from https://defillama.com/docs/api
|
9
|
+
defiLlamaId: 'parent#typus-finance', // from https://defillama.com/docs/api
|
10
10
|
website: 'https://typus.finance/',
|
11
11
|
twitter: 'https://twitter.com/TypusFinance',
|
12
12
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/typus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/typus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,sBAAsB,EAAE,sCAAsC;IAC3E,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AACW,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAC1D,QAAA,kBAAkB,GAAG,GAAG,iBAAS,8BAA8B,CAAC;AAChE,QAAA,MAAM,GACjB,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAC1D,QAAA,qBAAqB,GAAG,GAAG,wBAAgB,6CAA6C,CAAC;AAEzF,QAAA,WAAW,GACtB,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAC1D,QAAA,aAAa,GAAG,aAAa,CAAC;AAE9B,QAAA,aAAa,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACrC,QAAA,eAAe,GAA8B;IACxD,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,kBAAkB;CACxB,CAAC"}
|
@@ -7,5 +7,5 @@ export declare class AssetBuilder {
|
|
7
7
|
amount: number | BigNumber | string;
|
8
8
|
alreadyShifted: boolean;
|
9
9
|
constructor(params: PortfolioAssetParams);
|
10
|
-
|
10
|
+
get(networkId: NetworkIdType, tokenPrices: TokenPriceMap): PortfolioAsset | null;
|
11
11
|
}
|
@@ -12,7 +12,7 @@ class AssetBuilder {
|
|
12
12
|
this.amount = params.amount;
|
13
13
|
this.alreadyShifted = params.alreadyShifted || false;
|
14
14
|
}
|
15
|
-
|
15
|
+
get(networkId, tokenPrices) {
|
16
16
|
let amount = new bignumber_js_1.default(this.amount);
|
17
17
|
if (amount.isZero())
|
18
18
|
return null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AssetBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/AssetBuilder.ts"],"names":[],"mappings":";;;;;;AACA,gEAAqC;AAErC,4FAAoE;AAGpE,MAAa,YAAY;IAKvB,YAAY,MAA4B;QACtC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,IAAI,KAAK,CAAC;IACvD,CAAC;IAED,
|
1
|
+
{"version":3,"file":"AssetBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/AssetBuilder.ts"],"names":[],"mappings":";;;;;;AACA,gEAAqC;AAErC,4FAAoE;AAGpE,MAAa,YAAY;IAKvB,YAAY,MAA4B;QACtC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,IAAI,KAAK,CAAC;IACvD,CAAC;IAED,GAAG,CACD,SAAwB,EACxB,WAA0B;QAE1B,IAAI,MAAM,GAAG,IAAI,sBAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,MAAM,CAAC,MAAM,EAAE;YAAE,OAAO,IAAI,CAAC;QACjC,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC;QAE7B,IAAI,CAAC,IAAI,CAAC,cAAc;YACtB,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC,CAAC;QAEvD,OAAO,IAAA,gCAAsB,EAC3B,UAAU,CAAC,OAAO,EAClB,MAAM,CAAC,QAAQ,EAAE,EACjB,SAAS,EACT,UAAU,CACX,CAAC;IACJ,CAAC;CACF;AA9BD,oCA8BC"}
|
@@ -23,5 +23,5 @@ export declare class ElementBorrowlendBuilder extends ElementBuilder {
|
|
23
23
|
addSuppliedLtv(ltv: number): void;
|
24
24
|
addBorrowedWeight(borrowedWeight: number): void;
|
25
25
|
mints(): string[];
|
26
|
-
|
26
|
+
get(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
|
27
27
|
}
|
@@ -47,18 +47,18 @@ class ElementBorrowlendBuilder extends ElementBuilder_1.ElementBuilder {
|
|
47
47
|
...this.rewardAssets,
|
48
48
|
].map((a) => a.address);
|
49
49
|
}
|
50
|
-
|
50
|
+
get(networkId, platformId, tokenPrices) {
|
51
51
|
const suppliedAssets = this.suppliedAssets
|
52
|
-
.map((a) => a.
|
52
|
+
.map((a) => a.get(networkId, tokenPrices))
|
53
53
|
.filter((a) => a !== null);
|
54
54
|
const borrowedAssets = this.borrowedAssets
|
55
|
-
.map((a) => a.
|
55
|
+
.map((a) => a.get(networkId, tokenPrices))
|
56
56
|
.filter((a) => a !== null);
|
57
57
|
const rewardAssets = this.rewardAssets
|
58
|
-
.map((a) => a.
|
58
|
+
.map((a) => a.get(networkId, tokenPrices))
|
59
59
|
.filter((a) => a !== null);
|
60
60
|
const unsettledAssets = this.unsettledAssets
|
61
|
-
.map((a) => a.
|
61
|
+
.map((a) => a.get(networkId, tokenPrices))
|
62
62
|
.filter((a) => a !== null);
|
63
63
|
if (suppliedAssets.length === 0 &&
|
64
64
|
borrowedAssets.length === 0 &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ElementBorrowlendBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementBorrowlendBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AACpC,qDAAkD;AAClD,iDAA8C;AAK9C,MAAa,wBAAyB,SAAQ,+BAAc;IAU1D,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC1B,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AAC,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC;IAED,
|
1
|
+
{"version":3,"file":"ElementBorrowlendBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementBorrowlendBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AACpC,qDAAkD;AAClD,iDAA8C;AAK9C,MAAa,wBAAyB,SAAQ,+BAAc;IAU1D,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED,gBAAgB,CAAC,MAA4B;QAC3C,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,gBAAgB,CAAC,MAA4B;QAC3C,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,cAAc,CAAC,MAA4B;QACzC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,kBAAkB,CAAC,MAA4B;QAC7C,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,gBAAgB,CAAC,MAAe;QAC9B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,C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AE,eAAe;oBACvB,KAAK,EAAE,cAAc;iBACtB;gBACD,KAAK;aACN;YACD,KAAK;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;QAEF,OAAO,OAA2B,CAAC;IACrC,CAAC;CACF;AA3ID,4DA2IC"}
|
@@ -8,5 +8,5 @@ export declare abstract class ElementBuilder {
|
|
8
8
|
readonly tags?: string[];
|
9
9
|
protected constructor(params: ElementParams);
|
10
10
|
abstract mints(): string[];
|
11
|
-
abstract
|
11
|
+
abstract get(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
|
12
12
|
}
|
@@ -8,5 +8,5 @@ export declare class ElementLiquidityBuilder extends ElementBuilder {
|
|
8
8
|
constructor(params: ElementParams);
|
9
9
|
addLiquidity(): LiquidityBuilder;
|
10
10
|
mints(): string[];
|
11
|
-
|
11
|
+
get(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
|
12
12
|
}
|
@@ -17,9 +17,9 @@ class ElementLiquidityBuilder extends ElementBuilder_1.ElementBuilder {
|
|
17
17
|
mints() {
|
18
18
|
return this.liquidities.map((liquidity) => liquidity.mints()).flat();
|
19
19
|
}
|
20
|
-
|
20
|
+
get(networkId, platformId, tokenPrices) {
|
21
21
|
const liquidities = this.liquidities
|
22
|
-
.map((l) => l.
|
22
|
+
.map((l) => l.get(networkId, tokenPrices))
|
23
23
|
.filter((a) => a !== null);
|
24
24
|
if (liquidities.length === 0)
|
25
25
|
return null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ElementLiquidityBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementLiquidityBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AACpC,qDAAkD;AAGlD,yDAAsD;AAEtD,MAAa,uBAAwB,SAAQ,+BAAc;IAGzD,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,CAAC;IAED,YAAY;QACV,MAAM,gBAAgB,GAAG,IAAI,mCAAgB,EAAE,CAAC;QAChD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACxC,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACvE,CAAC;IAEQ,
|
1
|
+
{"version":3,"file":"ElementLiquidityBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementLiquidityBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AACpC,qDAAkD;AAGlD,yDAAsD;AAEtD,MAAa,uBAAwB,SAAQ,+BAAc;IAGzD,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,CAAC;IAED,YAAY;QACV,MAAM,gBAAgB,GAAG,IAAI,mCAAgB,EAAE,CAAC;QAChD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACxC,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACvE,CAAC;IAEQ,GAAG,CACV,SAAwB,EACxB,UAAkB,EAClB,WAA0B;QAE1B,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW;aACjC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;aACzC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAyB,CAAC;QAErD,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAE1C,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS;YACT,UAAU;YACV,IAAI,EAAE;gBACJ,WAAW;aACZ;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC9D,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;QAEF,OAAO,OAAoC,CAAC;IAC9C,CAAC;CACF;AA5CD,0DA4CC"}
|
@@ -9,5 +9,5 @@ export declare class ElementMultipleBuilder extends ElementBuilder {
|
|
9
9
|
constructor(params: ElementParams);
|
10
10
|
addAsset(params: PortfolioAssetParams): void;
|
11
11
|
mints(): string[];
|
12
|
-
|
12
|
+
get(networkId: NetworkIdType, platformId: string, tokenPrices: TokenPriceMap): PortfolioElement | null;
|
13
13
|
}
|
@@ -15,9 +15,9 @@ class ElementMultipleBuilder extends ElementBuilder_1.ElementBuilder {
|
|
15
15
|
mints() {
|
16
16
|
return this.assets.map((a) => a.address);
|
17
17
|
}
|
18
|
-
|
18
|
+
get(networkId, platformId, tokenPrices) {
|
19
19
|
const assets = this.assets
|
20
|
-
.map((a) => a.
|
20
|
+
.map((a) => a.get(networkId, tokenPrices))
|
21
21
|
.filter((a) => a !== null);
|
22
22
|
if (assets.length === 0)
|
23
23
|
return null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ElementMultipleBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementMultipleBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAKoC;AACpC,qDAAkD;AAClD,iDAA8C;AAK9C,MAAa,sBAAuB,SAAQ,+BAAc;IAGxD,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACnB,CAAC;IAED,QAAQ,CAAC,MAA4B;QACnC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,
|
1
|
+
{"version":3,"file":"ElementMultipleBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementMultipleBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAKoC;AACpC,qDAAkD;AAClD,iDAA8C;AAK9C,MAAa,sBAAuB,SAAQ,+BAAc;IAGxD,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACnB,CAAC;IAED,QAAQ,CAAC,MAA4B;QACnC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,GAAG,CACD,SAAwB,EACxB,UAAkB,EAClB,WAA0B;QAE1B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM;aACvB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;aACzC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAqB,CAAC;QAEjD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAErC,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS;YACT,UAAU;YACV,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;YACzD,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;QAEF,OAAO,OAA2B,CAAC;IACrC,CAAC;CACF;AA1CD,wDA0CC"}
|
@@ -13,5 +13,5 @@ export declare class ElementRegistry {
|
|
13
13
|
addElementMultiple(params: Omit<ElementParams, 'type'>): ElementMultipleBuilder;
|
14
14
|
addElementLiquidity(params: Omit<ElementParams, 'type'>): ElementLiquidityBuilder;
|
15
15
|
addElementBorrowlend(params: Omit<ElementParams, 'type'>): ElementBorrowlendBuilder;
|
16
|
-
|
16
|
+
getElements(cache: Cache): Promise<PortfolioElement[]>;
|
17
17
|
}
|
@@ -35,12 +35,12 @@ class ElementRegistry {
|
|
35
35
|
this.elements.push(elementBuilder);
|
36
36
|
return elementBuilder;
|
37
37
|
}
|
38
|
-
|
38
|
+
getElements(cache) {
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
40
40
|
const mints = this.elements.map((e) => e.mints()).flat();
|
41
41
|
const tokenPrices = yield cache.getTokenPricesAsMap(mints, this.networkId);
|
42
42
|
return this.elements
|
43
|
-
.map((e) => e.
|
43
|
+
.map((e) => e.get(this.networkId, this.platformId, tokenPrices))
|
44
44
|
.filter((e) => e !== null && e.value && e.value > 0);
|
45
45
|
});
|
46
46
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ElementRegistry.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementRegistry.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAMoC;AAIpC,qEAAkE;AAClE,uEAAoE;AACpE,yEAAsE;AAEtE,MAAa,eAAe;IAK1B,YAAY,SAAwB,EAAE,UAAkB;QACtD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACrB,CAAC;IACD,kBAAkB,CAChB,MAAmC;QAEnC,MAAM,cAAc,GAAG,IAAI,+CAAsB,iBAC/C,IAAI,EAAE,qCAAoB,CAAC,QAAQ,IAChC,MAAM,EACT,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACnC,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,mBAAmB,CACjB,MAAmC;QAEnC,MAAM,cAAc,GAAG,IAAI,iDAAuB,iBAChD,IAAI,EAAE,qCAAoB,CAAC,SAAS,IACjC,MAAM,EACT,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACnC,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,oBAAoB,CAClB,MAAmC;QAEnC,MAAM,cAAc,GAAG,IAAI,mDAAwB,iBACjD,IAAI,EAAE,qCAAoB,CAAC,UAAU,IAClC,MAAM,EACT,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACnC,OAAO,cAAc,CAAC;IACxB,CAAC;IAEK,
|
1
|
+
{"version":3,"file":"ElementRegistry.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementRegistry.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAMoC;AAIpC,qEAAkE;AAClE,uEAAoE;AACpE,yEA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AC,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;iBAC/D,MAAM,CACL,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CACtB,CAAC;QAC5B,CAAC;KAAA;CACF;AArDD,0CAqDC"}
|
@@ -11,5 +11,5 @@ export declare class LiquidityBuilder {
|
|
11
11
|
addRewardAsset(params: PortfolioAssetParams): void;
|
12
12
|
addYield(ayield: Yield): void;
|
13
13
|
mints(): string[];
|
14
|
-
|
14
|
+
get(networkId: NetworkIdType, tokenPrices: TokenPriceMap): PortfolioLiquidity | null;
|
15
15
|
}
|
@@ -24,12 +24,12 @@ class LiquidityBuilder {
|
|
24
24
|
...this.rewardAssets.map((a) => a.address),
|
25
25
|
];
|
26
26
|
}
|
27
|
-
|
27
|
+
get(networkId, tokenPrices) {
|
28
28
|
const assets = this.assets
|
29
|
-
.map((a) => a.
|
29
|
+
.map((a) => a.get(networkId, tokenPrices))
|
30
30
|
.filter((a) => a !== null);
|
31
31
|
const rewardAssets = this.rewardAssets
|
32
|
-
.map((a) => a.
|
32
|
+
.map((a) => a.get(networkId, tokenPrices))
|
33
33
|
.filter((a) => a !== null);
|
34
34
|
if (assets.length === 0 && rewardAssets.length === 0)
|
35
35
|
return null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LiquidityBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/LiquidityBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AAEpC,iDAA8C;AAG9C,MAAa,gBAAgB;IAK3B;QACE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACnB,CAAC;IAED,QAAQ,CAAC,MAA4B;QACnC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,cAAc,CAAC,MAA4B;QACzC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,QAAQ,CAAC,MAAa;QACpB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;IAED,KAAK;QACH,OAAO;YACL,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;YACpC,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;SAC3C,CAAC;IACJ,CAAC;IAED,
|
1
|
+
{"version":3,"file":"LiquidityBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/LiquidityBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAMoC;AAEpC,iDAA8C;AAG9C,MAAa,gBAAgB;IAK3B;QACE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACnB,CAAC;IAED,QAAQ,CAAC,MAA4B;QACnC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,cAAc,CAAC,MAA4B;QACzC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,QAAQ,CAAC,MAAa;QACpB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;I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