@sonarwatch/portfolio-plugins 0.12.177 → 0.12.178
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/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/plugins/adrena/constants.d.ts +8 -0
- package/src/plugins/adrena/constants.js +18 -0
- package/src/plugins/adrena/constants.js.map +1 -0
- package/src/plugins/adrena/custodiesJob.d.ts +3 -0
- package/src/plugins/adrena/custodiesJob.js +34 -0
- package/src/plugins/adrena/custodiesJob.js.map +1 -0
- package/src/plugins/adrena/filters.d.ts +3 -0
- package/src/plugins/adrena/filters.js +21 -0
- package/src/plugins/adrena/filters.js.map +1 -0
- package/src/plugins/adrena/helpers.d.ts +5 -0
- package/src/plugins/adrena/helpers.js +22 -0
- package/src/plugins/adrena/helpers.js.map +1 -0
- package/src/plugins/adrena/index.d.ts +6 -0
- package/src/plugins/adrena/index.js +14 -0
- package/src/plugins/adrena/index.js.map +1 -0
- package/src/plugins/adrena/positionsFetcher.d.ts +3 -0
- package/src/plugins/adrena/positionsFetcher.js +49 -0
- package/src/plugins/adrena/positionsFetcher.js.map +1 -0
- package/src/plugins/adrena/stakingFetcher.d.ts +3 -0
- package/src/plugins/adrena/stakingFetcher.js +69 -0
- package/src/plugins/adrena/stakingFetcher.js.map +1 -0
- package/src/plugins/adrena/structs.d.ts +187 -0
- package/src/plugins/adrena/structs.js +175 -0
- package/src/plugins/adrena/structs.js.map +1 -0
- package/src/plugins/adrena/types.d.ts +9 -0
- package/src/plugins/adrena/types.js +3 -0
- package/src/plugins/adrena/types.js.map +1 -0
- package/src/plugins/elemental/depositFetcher.js +0 -8
- package/src/plugins/elemental/depositFetcher.js.map +1 -1
- package/src/plugins/flash/helpers.js +16 -1
- package/src/plugins/flash/helpers.js.map +1 -1
- package/src/plugins/flash/types.d.ts +5 -0
- package/src/plugins/hawksight/positionsFetcher.js +4 -0
- package/src/plugins/hawksight/positionsFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/constants.d.ts +1 -0
- package/src/plugins/jupiter/exchange/constants.js +2 -1
- package/src/plugins/jupiter/exchange/constants.js.map +1 -1
- package/src/plugins/jupiter/exchange/filters.d.ts +1 -0
- package/src/plugins/jupiter/exchange/filters.js +11 -1
- package/src/plugins/jupiter/exchange/filters.js.map +1 -1
- package/src/plugins/jupiter/exchange/lockFetcher.d.ts +3 -0
- package/src/plugins/jupiter/exchange/lockFetcher.js +47 -0
- package/src/plugins/jupiter/exchange/lockFetcher.js.map +1 -0
- package/src/plugins/jupiter/exchange/structs.d.ts +19 -0
- package/src/plugins/jupiter/exchange/structs.js +19 -1
- package/src/plugins/jupiter/exchange/structs.js.map +1 -1
- package/src/plugins/jupiter/index.js +2 -0
- package/src/plugins/jupiter/index.js.map +1 -1
- package/src/plugins/navi/collateralFetcher.js +42 -81
- package/src/plugins/navi/collateralFetcher.js.map +1 -1
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +1 -1
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -1
@@ -16,81 +16,75 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
|
16
16
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
17
|
const constants_1 = require("./constants");
|
18
18
|
const clients_1 = require("../../utils/clients");
|
19
|
-
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
20
19
|
const getDynamicFieldObject_1 = require("../../utils/sui/getDynamicFieldObject");
|
21
20
|
const getAvailableRewards_1 = require("./getAvailableRewards");
|
21
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
22
22
|
const amountFactor = new bignumber_js_1.default(Math.pow(10, 36));
|
23
23
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
24
|
var _a, _b, _c, _d;
|
25
25
|
const client = (0, clients_1.getClientSui)();
|
26
|
-
const borrowedAssets = [];
|
27
|
-
const borrowedYields = [];
|
28
|
-
const suppliedAssets = [];
|
29
|
-
const suppliedYields = [];
|
30
|
-
const rewardAssets = [];
|
31
|
-
const suppliedLtvs = [];
|
32
26
|
const reservesData = yield cache.getItem(constants_1.reservesKey, {
|
33
27
|
prefix: constants_1.reservesPrefix,
|
34
28
|
networkId: portfolio_core_1.NetworkId.sui,
|
35
29
|
});
|
36
30
|
if (!reservesData)
|
37
31
|
return [];
|
38
|
-
const [
|
39
|
-
|
40
|
-
|
41
|
-
]);
|
32
|
+
const [rewards] = yield Promise.all([(0, getAvailableRewards_1.getAvailableRewards)(client, owner)]);
|
33
|
+
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.sui, constants_1.platformId);
|
34
|
+
const element = elementRegistry.addElementBorrowlend({ label: 'Lending' });
|
42
35
|
for (const rData of reservesData) {
|
43
|
-
const borrowBalancePromise = (0, getDynamicFieldObject_1.getDynamicFieldObject)(client, {
|
44
|
-
parentId: rData.value.fields.borrow_balance.fields.user_state.fields.id.id,
|
45
|
-
name: { type: 'address', value: owner },
|
46
|
-
});
|
47
|
-
const supplyBalancePromise = (0, getDynamicFieldObject_1.getDynamicFieldObject)(client, {
|
48
|
-
parentId: rData.value.fields.supply_balance.fields.user_state.fields.id.id,
|
49
|
-
name: { type: 'address', value: owner },
|
50
|
-
});
|
51
36
|
const [borrowBalance, supplyBalance] = yield Promise.all([
|
52
|
-
|
53
|
-
|
37
|
+
(0, getDynamicFieldObject_1.getDynamicFieldObject)(client, {
|
38
|
+
parentId: rData.value.fields.borrow_balance.fields.user_state.fields.id.id,
|
39
|
+
name: { type: 'address', value: owner },
|
40
|
+
}),
|
41
|
+
(0, getDynamicFieldObject_1.getDynamicFieldObject)(client, {
|
42
|
+
parentId: rData.value.fields.supply_balance.fields.user_state.fields.id.id,
|
43
|
+
name: { type: 'address', value: owner },
|
44
|
+
}),
|
54
45
|
]);
|
55
|
-
const tokenPrice = tokenPrices.get((0, portfolio_core_1.formatTokenAddress)(rData.value.fields.coin_type, portfolio_core_1.NetworkId.sui));
|
56
46
|
if (!borrowBalance.error && ((_a = borrowBalance.data) === null || _a === void 0 ? void 0 : _a.content)) {
|
57
47
|
const borrowInfo = (_b = borrowBalance.data.content) === null || _b === void 0 ? void 0 : _b.fields;
|
58
48
|
if (borrowInfo.value) {
|
59
|
-
|
60
|
-
|
61
|
-
.
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
49
|
+
element.addBorrowedAsset({
|
50
|
+
address: rData.value.fields.coin_type,
|
51
|
+
amount: new bignumber_js_1.default(borrowInfo.value)
|
52
|
+
.times(rData.value.fields.current_borrow_index)
|
53
|
+
.dividedBy(amountFactor),
|
54
|
+
alreadyShifted: true,
|
55
|
+
});
|
56
|
+
const apy = new bignumber_js_1.default(rData.value.fields.current_borrow_rate)
|
57
|
+
.dividedBy(Math.pow(10, constants_1.rateFactor))
|
58
|
+
.toNumber();
|
59
|
+
element.addBorrowedYield([
|
60
|
+
{
|
61
|
+
apr: -(0, portfolio_core_1.apyToApr)(apy),
|
62
|
+
apy: -apy,
|
63
|
+
},
|
64
|
+
]);
|
75
65
|
}
|
76
66
|
}
|
77
67
|
if (!supplyBalance.error && ((_d = (_c = supplyBalance.data) === null || _c === void 0 ? void 0 : _c.content) === null || _d === void 0 ? void 0 : _d.fields)) {
|
78
68
|
const supplyInfo = supplyBalance.data.content.fields;
|
79
69
|
if (supplyInfo.value) {
|
80
|
-
|
70
|
+
const amount = new bignumber_js_1.default(supplyInfo.value)
|
81
71
|
.times(rData.value.fields.current_supply_index)
|
82
|
-
.dividedBy(amountFactor)
|
83
|
-
|
72
|
+
.dividedBy(amountFactor);
|
73
|
+
element.addSuppliedAsset({
|
74
|
+
address: rData.value.fields.coin_type,
|
75
|
+
amount,
|
76
|
+
alreadyShifted: true,
|
77
|
+
});
|
84
78
|
const apy = new bignumber_js_1.default(rData.value.fields.current_supply_rate)
|
85
79
|
.dividedBy(Math.pow(10, constants_1.rateFactor))
|
86
80
|
.toNumber();
|
87
|
-
|
81
|
+
element.addSuppliedYield([
|
88
82
|
{
|
89
83
|
apr: (0, portfolio_core_1.apyToApr)(apy),
|
90
84
|
apy,
|
91
85
|
},
|
92
86
|
]);
|
93
|
-
|
87
|
+
element.addSuppliedLtv(new bignumber_js_1.default(rData.value.fields.liquidation_factors.fields.threshold)
|
94
88
|
.div(Math.pow(10, 27))
|
95
89
|
.toNumber());
|
96
90
|
}
|
@@ -98,46 +92,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
98
92
|
}
|
99
93
|
if (rewards.size > 0) {
|
100
94
|
rewards.forEach((amount, coinType) => {
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
.dividedBy(Math.pow(10, tokenPrice.decimals))
|
106
|
-
.toNumber(), portfolio_core_1.NetworkId.sui, tokenPrice));
|
107
|
-
}
|
108
|
-
}
|
95
|
+
element.addRewardAsset({
|
96
|
+
address: coinType,
|
97
|
+
amount,
|
98
|
+
});
|
109
99
|
});
|
110
100
|
}
|
111
|
-
|
112
|
-
borrowedAssets.length === 0 &&
|
113
|
-
rewardAssets.length === 0)
|
114
|
-
return [];
|
115
|
-
const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({
|
116
|
-
suppliedAssets,
|
117
|
-
borrowedAssets,
|
118
|
-
rewardAssets,
|
119
|
-
suppliedLtvs,
|
120
|
-
});
|
121
|
-
const element = {
|
122
|
-
type: portfolio_core_1.PortfolioElementType.borrowlend,
|
123
|
-
networkId: portfolio_core_1.NetworkId.sui,
|
124
|
-
platformId: constants_1.platformId,
|
125
|
-
label: 'Lending',
|
126
|
-
value,
|
127
|
-
data: {
|
128
|
-
borrowedAssets,
|
129
|
-
borrowedValue,
|
130
|
-
borrowedYields,
|
131
|
-
suppliedAssets,
|
132
|
-
suppliedValue,
|
133
|
-
suppliedYields,
|
134
|
-
healthRatio,
|
135
|
-
rewardAssets,
|
136
|
-
rewardValue,
|
137
|
-
value,
|
138
|
-
},
|
139
|
-
};
|
140
|
-
return [element];
|
101
|
+
return elementRegistry.getElements(cache);
|
141
102
|
});
|
142
103
|
const fetcher = {
|
143
104
|
id: `${constants_1.platformId}-collateral`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"collateralFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/navi/collateralFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"collateralFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/navi/collateralFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AAGrC,2CAKqB;AACrB,iDAAmD;AAEnD,iFAA8E;AAC9E,+DAA4D;AAC5D,gFAA6E;AAE7E,MAAM,YAAY,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,EAAE,CAAA,CAAC,CAAC;AAE7C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,OAAO,CAAgB,uBAAW,EAAE;QACnE,MAAM,EAAE,0BAAc;QACtB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,YAAY;QAAE,OAAO,EAAE,CAAC;IAE7B,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,IAAA,yCAAmB,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAE1E,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,GAAG,EAAE,sBAAU,CAAC,CAAC;IACvE,MAAM,OAAO,GAAG,e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AC,cAAc,CACpB,IAAI,sBAAS,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,SAAS,CAAC;qBACnE,GAAG,CAAC,SAAA,EAAE,EAAI,EAAE,CAAA,CAAC;qBACb,QAAQ,EAAE,CACd,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;QACrB,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE;YACnC,OAAO,CAAC,cAAc,CAAC;gBACrB,OAAO,EAAE,QAAQ;gBACjB,MAAM;aACP,CAAC,CAAC;QACL,CAAC,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,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -53,7 +53,7 @@ class ElementBorrowlendBuilder extends ElementBuilder_1.ElementBuilder {
|
|
53
53
|
.filter((a) => a !== null);
|
54
54
|
const borrowedAssets = this.borrowedAssets
|
55
55
|
.map((a) => a.get(networkId, tokenPrices))
|
56
|
-
.filter((a) => a !== null);
|
56
|
+
.filter((a) => a !== null && a.value && a.value > 0.002);
|
57
57
|
const rewardAssets = this.rewardAssets
|
58
58
|
.map((a) => a.get(networkId, tokenPrices))
|
59
59
|
.filter((a) => a !== null);
|
@@ -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,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QACtC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK;QACH,OAAO;YACL,GAAG,IAAI,CAAC,cAAc;YACtB,GAAG,IAAI,CAAC,cAAc;YACtB,GAAG,IAAI,CAAC,YAAY;SACrB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC;IAED,GAAG,CACD,SAAwB,EACxB,UAAkB,EAClB,WAA0B;QAE1B,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc;aACvC,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;QACjD,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc;aACvC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;aACzC,MAAM,
|
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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