@sonarwatch/portfolio-plugins 0.14.33 → 0.14.35
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/plugins/alphafi/positionsFetcher.js +1 -1
- package/src/plugins/alphafi/positionsFetcher.js.map +1 -1
- package/src/plugins/cetus/vaultsJob.js +1 -0
- package/src/plugins/cetus/vaultsJob.js.map +1 -1
- package/src/plugins/ensofi/constants.d.ts +10 -0
- package/src/plugins/ensofi/constants.js +24 -0
- package/src/plugins/ensofi/constants.js.map +1 -0
- package/src/plugins/ensofi/idl.d.ts +103 -0
- package/src/plugins/ensofi/idl.js +900 -0
- package/src/plugins/ensofi/idl.js.map +1 -0
- package/src/plugins/ensofi/index.d.ts +6 -0
- package/src/plugins/ensofi/index.js +14 -0
- package/src/plugins/ensofi/index.js.map +1 -0
- package/src/plugins/ensofi/solanaLoansFetcher.d.ts +3 -0
- package/src/plugins/ensofi/solanaLoansFetcher.js +116 -0
- package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -0
- package/src/plugins/ensofi/suiLoansFetcher.d.ts +3 -0
- package/src/plugins/ensofi/suiLoansFetcher.js +111 -0
- package/src/plugins/ensofi/suiLoansFetcher.js.map +1 -0
- package/src/plugins/ensofi/suiLoansJob.d.ts +3 -0
- package/src/plugins/ensofi/suiLoansJob.js +47 -0
- package/src/plugins/ensofi/suiLoansJob.js.map +1 -0
- package/src/plugins/ensofi/types.d.ts +71 -0
- package/src/plugins/ensofi/types.js +3 -0
- package/src/plugins/ensofi/types.js.map +1 -0
- package/src/plugins/flash/helpers.d.ts +1 -1
- package/src/plugins/flash/helpers.js +2 -2
- package/src/plugins/flash/helpers.js.map +1 -1
- package/src/plugins/flash/poolJob.js +25 -5
- package/src/plugins/flash/poolJob.js.map +1 -1
- package/src/plugins/flash/structs.d.ts +4 -0
- package/src/plugins/flash/structs.js +4 -0
- package/src/plugins/flash/structs.js.map +1 -1
- package/src/plugins/flash/types.d.ts +1 -0
- package/src/plugins/haedal/vaultFetcher.js +1 -2
- package/src/plugins/haedal/vaultFetcher.js.map +1 -1
- package/src/plugins/kai/vaultsJob.js +1 -2
- package/src/plugins/kai/vaultsJob.js.map +1 -1
- package/src/plugins/kriya/vaultsFetcher.js +1 -2
- package/src/plugins/kriya/vaultsFetcher.js.map +1 -1
- package/src/plugins/mole/depositsFetcher.js +1 -1
- package/src/plugins/mole/depositsFetcher.js.map +1 -1
- package/src/plugins/thala/farmingPoolsFetcher.js +14 -50
- package/src/plugins/thala/farmingPoolsFetcher.js.map +1 -1
- package/src/plugins/tokens/fetchers/sui.js +3 -3
- package/src/plugins/tokens/fetchers/sui.js.map +1 -1
- package/src/plugins/tokens/helpers.d.ts +3 -2
- package/src/plugins/tokens/helpers.js +5 -4
- package/src/plugins/tokens/helpers.js.map +1 -1
- package/src/plugins/turbos/clmmVaultFetcher.js +1 -2
- package/src/plugins/turbos/clmmVaultFetcher.js.map +1 -1
- package/src/plugins/typus/safuFetcher.js +2 -2
- package/src/plugins/typus/safuFetcher.js.map +1 -1
- package/src/plugins/typus/vaultsFetcher.js +1 -1
- package/src/plugins/typus/vaultsFetcher.js.map +1 -1
- package/src/plugins/whalesmarket/depositFetcher.js +0 -1
- package/src/plugins/whalesmarket/depositFetcher.js.map +1 -1
- package/src/utils/elementbuilder/AssetBuilder.d.ts +2 -1
- package/src/utils/elementbuilder/AssetBuilder.js +14 -2
- package/src/utils/elementbuilder/AssetBuilder.js.map +1 -1
- package/src/utils/elementbuilder/LiquidityBuilder.js +2 -1
- package/src/utils/elementbuilder/LiquidityBuilder.js.map +1 -1
@@ -215,5 +215,9 @@ exports.flPoolStruct = new beet_1.FixableBeetStruct([
|
|
215
215
|
['flpMintBump', beet_1.u8],
|
216
216
|
['flpTokenAccountBump', beet_1.u8],
|
217
217
|
['vpVolumeFactor', beet_1.u8],
|
218
|
+
['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 4)],
|
219
|
+
['stakingFeeBoostBps', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 6)],
|
220
|
+
['compoundingMint', beet_solana_1.publicKey],
|
221
|
+
['compoundingLpVault', beet_solana_1.publicKey],
|
218
222
|
], (args) => args);
|
219
223
|
//# sourceMappingURL=structs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/structs.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/structs.ts"],"names":[],"mappings":";;;AAAA,oDAQmC;AAGnC,kEAA6D;AAC7D,+CAA0D;AAY7C,QAAA,kBAAkB,GAAG,IAAI,iBAAU,CAC9C;IACE,CAAC,eAAe,EAAE,uBAAS,CAAC;IAC5B,CAAC,qBAAqB,EAAE,uBAAS,CAAC;IAClC,CAAC,YAAY,EAAE,SAAE,CAAC;IAClB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,gBAAgB,EAAE,YAAG,CAAC;CACxB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAC/B,CAAC;AAgBW,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,sBAAsB,EAAE,YAAG,CAAC;IAC7B,CAAC,mBAAmB,EAA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,CAAC,eAAe,EAAE,uBAAS,CAAC;IAC5B,CAAC,WAAW,EAAE,IAAA,YAAK,EAAC,uBAAS,CAAC,CAAC;IAC/B,CAAC,QAAQ,EAAE,IAAA,YAAK,EAAC,yBAAiB,CAAC,CAAC;IACpC,CAAC,SAAS,EAAE,IAAA,YAAK,EAAC,uBAAS,CAAC,CAAC;IAC7B,CAAC,WAAW,EAAE,aAAI,CAAC;IACnB,CAAC,QAAQ,EAAE,aAAI,CAAC;IAChB,CAAC,aAAa,EAAE,wBAAgB,CAAC;IACjC,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,aAAa,EAAE,SAAE,CAAC;IACnB,CAAC,qBAAqB,EAAE,SAAE,CAAC;IAC3B,CAAC,gBAAgB,EAAE,SAAE,CAAC;IACtB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC,oBAAoB,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,CAAC,CAAC,CAAC;IACrD,CAAC,iBAAiB,EAAE,uBAAS,CAAC;IAC9B,CAAC,oBAAoB,EAAE,uBAAS,CAAC;CAClC,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAc,CACzB,CAAC"}
|
@@ -38,14 +38,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
38
38
|
return [
|
39
39
|
{
|
40
40
|
type: 'multiple',
|
41
|
-
label: '
|
41
|
+
label: 'Vault',
|
42
42
|
platformId: constants_1.platformId,
|
43
43
|
networkId: portfolio_core_1.NetworkId.sui,
|
44
44
|
data: {
|
45
45
|
assets: [asset],
|
46
46
|
},
|
47
47
|
value: asset.value,
|
48
|
-
name: 'Random Vault',
|
49
48
|
},
|
50
49
|
];
|
51
50
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vaultFetcher.js","sourceRoot":"","sources":["../../../../../../packages/pl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AG,MAAM,KAAK,CAAC,aAAa,CAAC,iCAAgB,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;IAC9E,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,iCAAgB,EAChB,MAAM,CAAC,QAAQ,EAAE,EACjB,0BAAS,CAAC,GAAG,EACb,UAAU,CACX,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,OAAO;YACd,UAAU,EAAV,sBAAU;YACV,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;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"}
|
@@ -53,9 +53,8 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
53
53
|
tokenPrice,
|
54
54
|
},
|
55
55
|
],
|
56
|
-
elementName: 'Vaults',
|
57
56
|
});
|
58
|
-
yield cache.setTokenPriceSources(lpSource);
|
57
|
+
yield cache.setTokenPriceSources(lpSource.map((source) => (Object.assign(Object.assign({}, source), { label: 'Vault' }))));
|
59
58
|
}
|
60
59
|
});
|
61
60
|
const job = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kai/vaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAA2E;AAG3E,2CAAqD;AACrD,iDAAmD;AACnD,qEAAkE;AAElE,8EAA2E;AAE3E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,G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,EAAE,MAAM;oBACxB,UAAU;iBACX;aACF;SACF,CAAC,CAAC;QACH,MAAM,KAAK,CAAC,oBAAoB,CAC9B,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,iCAAM,MAAM,KAAE,KAAK,EAAE,OAAO,IAAG,CAAC,CAC1D,CAAC;IACJ,CAAC;AACH,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -43,8 +43,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
43
43
|
vaultsPositionInfo.forEach((vault) => vaultsByFarmId.set(vault.farmId, vault));
|
44
44
|
const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.sui, constants_1.platformId);
|
45
45
|
const liquidities = registry.addElementLiquidity({
|
46
|
-
|
47
|
-
label: 'LiquidityPool',
|
46
|
+
label: 'Vault',
|
48
47
|
});
|
49
48
|
for (let i = 0; i < vaultsOldBalances.length; i++) {
|
50
49
|
const liquidity = liquidities.addLiquidity();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/vaultsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,2CAKqB;AACrB,iDAAmD;AACnD,6EAA0E;AAE1E,wFAAyF;AACzF,gFAA6E;AAC7E,qEAAkE;AAClE,kEAA+D;AAG/D,MAAM,sBAAsB,GAAG,IAAI,6BAAa,CAC9C,yBAAa,EACb;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;CACzB,CACF,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;I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;YAC5C,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAE/B,SAAS,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,KAAK,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO;SAChB,CAAC,CAAC;QACH,SAAS,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,KAAK,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO;SAChB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -121,7 +121,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
121
121
|
elements.push({
|
122
122
|
type: 'liquidity',
|
123
123
|
data: { liquidities: depositedLiquidities },
|
124
|
-
label: '
|
124
|
+
label: 'Vault',
|
125
125
|
networkId: portfolio_core_1.NetworkId.sui,
|
126
126
|
platformId: constants_1.platformId,
|
127
127
|
value: (0, portfolio_core_1.getUsdValueSum)(depositedLiquidities.map((l) => l.value)),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mole/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AAGpC,2CAOqB;AACrB,iDAAmD;AACnD,uGAA+E;AAE/E,iFAA8E;AAE9E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,CAAC,IAAI,EAAE,aAAa,EAAE,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CA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AK;YAAE,SAAS;QAErB,MAAM,MAAM,GAAqB,IAAA,iCAAuB,EACtD,WAAW,CAAC,IAAI,EAChB,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC;YACzD,KAAK,CAAC,mBAAmB,EAC3B,0BAAS,CAAC,GAAG,EACb,UAAU,CACX,CAAC;QAEF,MAAM,WAAW,GAAG,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/D,MAAM,KAAK,GAAG,WAAW,CAAC;QAE1B,MAAM,SAAS,GAAuB;YACpC,KAAK;YACL,MAAM;YACN,WAAW;YACX,YAAY,EAAE,EAAE;YAChB,iBAAiB,EAAE,IAAI;YACvB,MAAM,EAAE,EAAE;SACX,CAAC;QAEF,IAAI,WAAW,CAAC,OAAO;YAAE,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;;YACvD,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC5C,CAAC;IAED,MAAM,QAAQ,GAAuB,EAAE,CAAC;IAExC,IAAI,oBAAoB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE;YAC3C,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mole/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AAGpC,2CAOqB;AACrB,iDAAmD;AACnD,uGAA+E;AAE/E,iFAA8E;AAE9E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY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E,CAAC,CAAC;IACL,CAAC;IAED,IAAI,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClC,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE;YACzC,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,IAAA,+BAAc,EAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAC9D,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -8,16 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
9
|
});
|
10
10
|
};
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
12
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
13
|
const constants_1 = require("./constants");
|
18
14
|
const aptos_1 = require("../../utils/aptos");
|
19
15
|
const clients_1 = require("../../utils/clients");
|
20
|
-
const
|
16
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
21
17
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
22
18
|
const client = (0, clients_1.getClientAptos)();
|
23
19
|
const [farmingPools, resources] = yield Promise.all([
|
@@ -92,56 +88,24 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
92
88
|
})));
|
93
89
|
if (!stakedTokens || stakedTokens.length === 0)
|
94
90
|
return [];
|
95
|
-
const
|
96
|
-
|
97
|
-
|
98
|
-
st.rewards.forEach((r) => tokenMints.add(r.coinType));
|
91
|
+
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.aptos, constants_1.platformId);
|
92
|
+
const element = elementRegistry.addElementLiquidity({
|
93
|
+
label: 'Farming',
|
99
94
|
});
|
100
|
-
const tokenPrices = yield cache.getTokenPricesAsMap([...tokenMints], portfolio_core_1.NetworkId.aptos);
|
101
|
-
const liquidities = [];
|
102
95
|
stakedTokens.forEach((stakedToken) => {
|
103
|
-
const
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
const asset = (0, tokenPriceToAssetToken_1.default)(stakedToken.coinType, new bignumber_js_1.default(stakedToken.amount)
|
108
|
-
.dividedBy(Math.pow(10, tokenPrice.decimals))
|
109
|
-
.toNumber(), portfolio_core_1.NetworkId.aptos, tokenPrice);
|
110
|
-
stakedToken.rewards.forEach((r) => {
|
111
|
-
if (r.amount === '0')
|
112
|
-
return;
|
113
|
-
const rewardTokenPrice = tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(r.coinType));
|
114
|
-
if (!rewardTokenPrice)
|
115
|
-
return;
|
116
|
-
rewardAssets.push((0, tokenPriceToAssetToken_1.default)(r.coinType, new bignumber_js_1.default(r.amount)
|
117
|
-
.dividedBy(Math.pow(10, rewardTokenPrice.decimals))
|
118
|
-
.toNumber(), portfolio_core_1.NetworkId.aptos, rewardTokenPrice));
|
96
|
+
const liquidity = element.addLiquidity();
|
97
|
+
liquidity.addAsset({
|
98
|
+
address: stakedToken.coinType,
|
99
|
+
amount: stakedToken.amount,
|
119
100
|
});
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
rewardAssets,
|
126
|
-
rewardAssetsValue,
|
127
|
-
value,
|
128
|
-
yields: [],
|
101
|
+
stakedToken.rewards.forEach((r) => {
|
102
|
+
liquidity.addRewardAsset({
|
103
|
+
address: r.coinType,
|
104
|
+
amount: r.amount,
|
105
|
+
});
|
129
106
|
});
|
130
107
|
});
|
131
|
-
|
132
|
-
return [];
|
133
|
-
return [
|
134
|
-
{
|
135
|
-
networkId: portfolio_core_1.NetworkId.aptos,
|
136
|
-
label: 'Farming',
|
137
|
-
platformId: constants_1.platformId,
|
138
|
-
type: portfolio_core_1.PortfolioElementType.liquidity,
|
139
|
-
value: (0, portfolio_core_1.getUsdValueSum)(liquidities.map((a) => a.value)),
|
140
|
-
data: {
|
141
|
-
liquidities,
|
142
|
-
},
|
143
|
-
},
|
144
|
-
];
|
108
|
+
return elementRegistry.getElements(cache);
|
145
109
|
});
|
146
110
|
const fetcher = {
|
147
111
|
id: `${constants_1.platformId}-farming-pools`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"farmingPoolsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/farmingPoolsFetcher.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"farmingPoolsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/farmingPoolsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAwE;AAGxE,2CAKqB;AACrB,6CAK2B;AAC3B,iDAAqD;AAErD,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAEhC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAClD,KAAK,CAAC,OAAO,CAAa,2BAAe,EAAE;YACzC,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,KAAK;SAC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,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -45,7 +45,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
45
45
|
yields: [],
|
46
46
|
name: tokenPrice.liquidityName,
|
47
47
|
};
|
48
|
-
const tag = (0, helpers_1.getLpTag)(tokenPrice.platformId, tokenPrice.elementName);
|
48
|
+
const tag = (0, helpers_1.getLpTag)(tokenPrice.platformId, tokenPrice.elementName, tokenPrice.label);
|
49
49
|
if (!liquiditiesByTag[tag]) {
|
50
50
|
liquiditiesByTag[tag] = [];
|
51
51
|
}
|
@@ -70,13 +70,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
70
70
|
elements.push(walletTokensElement);
|
71
71
|
}
|
72
72
|
for (const [tag, liquidities] of Object.entries(liquiditiesByTag)) {
|
73
|
-
const { platformId, elementName } = (0, helpers_1.parseLpTag)(tag);
|
73
|
+
const { platformId, elementName, label } = (0, helpers_1.parseLpTag)(tag);
|
74
74
|
elements.push({
|
75
75
|
type: portfolio_core_1.PortfolioElementType.liquidity,
|
76
76
|
networkId: portfolio_core_1.NetworkId.sui,
|
77
77
|
platformId,
|
78
78
|
name: elementName,
|
79
|
-
label: 'LiquidityPool',
|
79
|
+
label: label !== null && label !== void 0 ? label : 'LiquidityPool',
|
80
80
|
value: (0, portfolio_core_1.getUsdValueSum)(liquidities.map((a) => a.value)),
|
81
81
|
data: {
|
82
82
|
liquidities,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sui.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/tokens/fetchers/sui.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AAIpC,oDAAsD;AACtD,wGAAgF;AAChF,4CAAoD;AACpD,0GAAkF;AAClF,wCAAkD;AAElD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,G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,WAAW;aACZ;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,gCAAoB,CAAC,EAAE,MAAM;IACpC,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1,12 +1,13 @@
|
|
1
|
-
import { NetworkIdType, TokenPriceSource, UniTokenList, UniTokenListVersion } from '@sonarwatch/portfolio-core';
|
1
|
+
import { NetworkIdType, PortfolioElementLabel, TokenPriceSource, UniTokenList, UniTokenListVersion } from '@sonarwatch/portfolio-core';
|
2
2
|
import { TokenData } from './types';
|
3
3
|
export declare function compareVersion(versionA: UniTokenListVersion, versionB: UniTokenListVersion): 1 | -1 | 0;
|
4
4
|
export declare function isLatestVersion(newVersion: UniTokenListVersion, oldVersion: UniTokenListVersion): boolean;
|
5
5
|
export declare function getCoingeckoSources(networkId: NetworkIdType, tokensData: TokenData[]): Promise<TokenPriceSource[]>;
|
6
6
|
export declare function getTokensData(tokenList: UniTokenList): TokenData[];
|
7
7
|
export declare const lpTagSeparator = "<|>";
|
8
|
-
export declare function getLpTag(platformId: string, elementName?: string): string;
|
8
|
+
export declare function getLpTag(platformId: string, elementName?: string, label?: PortfolioElementLabel): string;
|
9
9
|
export declare function parseLpTag(tag: string): {
|
10
10
|
platformId: string;
|
11
11
|
elementName?: string;
|
12
|
+
label?: PortfolioElementLabel;
|
12
13
|
};
|
@@ -124,17 +124,18 @@ function getTokensData(tokenList) {
|
|
124
124
|
}
|
125
125
|
exports.getTokensData = getTokensData;
|
126
126
|
exports.lpTagSeparator = '<|>';
|
127
|
-
function getLpTag(platformId, elementName) {
|
128
|
-
return `${platformId}${elementName ? `${exports.lpTagSeparator}${elementName}` :
|
127
|
+
function getLpTag(platformId, elementName, label) {
|
128
|
+
return `${platformId}${label ? `${exports.lpTagSeparator}${label}` : `${exports.lpTagSeparator}`}${elementName ? `${exports.lpTagSeparator}${elementName}` : `${exports.lpTagSeparator}`}`;
|
129
129
|
}
|
130
130
|
exports.getLpTag = getLpTag;
|
131
131
|
function parseLpTag(tag) {
|
132
|
-
const split = tag.split(exports.lpTagSeparator,
|
132
|
+
const split = tag.split(exports.lpTagSeparator, 3);
|
133
133
|
if (split.length < 1)
|
134
134
|
throw new Error(`Tag is not valid: ${tag}`);
|
135
135
|
return {
|
136
136
|
platformId: split[0],
|
137
|
-
|
137
|
+
label: split.at(1) === '' ? undefined : split.at(1),
|
138
|
+
elementName: split.at(2) === '' ? undefined : split.at(2),
|
138
139
|
};
|
139
140
|
}
|
140
141
|
exports.parseLpTag = parseLpTag;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tokens/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA6C;
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tokens/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA6C;AAQ7C,2CAAgE;AAEhE,iFAAyD;AACzD,mEAA2C;AAC3C,+DAAyE;AAEzE,SAAgB,cAAc,CAC5B,QAA6B,EAC7B,QAA6B;IAE7B,IAAI,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK;QAAE,OAAO,CAAC,CAAC;IAC9C,IAAI,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK;QAAE,OAAO,CAAC,CAAC,CAAC;IAC/C,IAAI,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK;QAAE,OAAO,CAAC,CAAC;IAC9C,IAAI,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK;QAAE,OAAO,CAAC,CAAC,CAAC;IAC/C,IAAI,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,KAA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E,CAAC;AAC7E,CAAC;AARD,4BAQC;AAED,SAAgB,UAAU,CAAC,GAAW;IAKpC,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,sBAAc,EAAE,CAAC,CAAC,CAAC;IAC3C,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,GAAG,EAAE,CAAC,CAAC;IAClE,OAAO;QACL,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;QACpB,KAAK,EACH,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAA2B;QACzE,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;KAC1D,CAAC;AACJ,CAAC;AAbD,gCAaC"}
|
@@ -169,8 +169,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
169
169
|
type: portfolio_core_1.PortfolioElementType.liquidity,
|
170
170
|
networkId: portfolio_core_1.NetworkId.sui,
|
171
171
|
platformId: constants_1.platformId,
|
172
|
-
label: '
|
173
|
-
name: 'Vault',
|
172
|
+
label: 'Vault',
|
174
173
|
value: totalLiquidityValue,
|
175
174
|
data: {
|
176
175
|
liquidities: assets,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"clmmVaultFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/clmmVaultFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAA0E;AAC1E,qEAAkE;AAClE,iDAAmD;AAQnD,qEAAkE;AAClE,wFAAyF;AACzF,qGAA6E;AAC7E,uFAAoF;AACpF,+DAA4D;AAE5D,MAAM,QAAQ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AAS;YACpC,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,OAAO;YACd,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,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -13,12 +13,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
16
17
|
const constants_1 = require("./constants");
|
17
18
|
const clients_1 = require("../../utils/clients");
|
18
19
|
const safu_helpers_1 = require("./safu_helpers");
|
19
20
|
const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
|
20
21
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
21
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
22
22
|
const vaultsMemo = new MemoizedCache_1.MemoizedCache(constants_1.safuVaultsKey, {
|
23
23
|
prefix: constants_1.platformId,
|
24
24
|
networkId: portfolio_core_1.NetworkId.sui,
|
@@ -45,7 +45,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
45
45
|
const vaultIndex = constants_1.vaultsIndexes[i];
|
46
46
|
const share = shareDatas[vaultIndex];
|
47
47
|
if (share.length > 0) {
|
48
|
-
const [vault
|
48
|
+
const [vault] = vaults[vaultIndex];
|
49
49
|
if (!vault)
|
50
50
|
continue;
|
51
51
|
const amount = new bignumber_js_1.default(share[0].share.active_share)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"safuFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/typus/safuFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;
|
1
|
+
{"version":3,"file":"safuFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/typus/safuFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAGrC,2CAKqB;AACrB,iDAAmD;AACnD,iDAA8C;AAC9C,kEAA+D;AAE/D,qGAA6E;AAE7E,MAAM,UAAU,GAAG,IAAI,6BAAa,CAEjC,yBAAa,EAAE;IAChB,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;CACzB,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,UAAU,GAAG,MAAM,IAAA,2BAAY,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAErD,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,yBAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC9C,MAAM,UAAU,GAAG,yBAAa,CAAC,CAAC,CAAC,CAAC;QACpC,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtC,WAAW,GAAG,IAAI,CAAC;YACnB,MAAM;QACR,CAAC;IACH,CAAC;IACD,IAAI,CAAC,WAAW;QAAE,OAAO,EAAE,CAAC;IAE5B,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/C,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEvB,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,mBAAm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C,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,OAAO;IACxB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -97,7 +97,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
97
97
|
if (assets.length > 0)
|
98
98
|
elements.push({
|
99
99
|
networkId: portfolio_core_1.NetworkId.sui,
|
100
|
-
label: '
|
100
|
+
label: 'Vault',
|
101
101
|
platformId: constants_1.platformId,
|
102
102
|
name: vault.metadata,
|
103
103
|
type: portfolio_core_1.PortfolioElementType.multiple,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/typus/vaultsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAGrC,2CAA6D;AAC7D,iDAAmD;AACnD,qEAAkE;AAElE,uCAA6C;AAC7C,qEAAkE;AAClE,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,gBAAgB,GAAG,MAAM,IAAA,iCAAe,EAC5C,MAAM,EACN,KAAK,EACL;QACE,MAAM,EAAE,EAAE,UAAU,EAAE,8BAAkB,EAAE;KAC3C,CACF,CAAC;IACF,IAAI,CAAC,gBAAgB;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,WAAW,GAAa,EAAE,CAAC;IACjC,MAAM,SAAS,GAAgB,IAAI,GAAG,EAAE,CAAC;IACzC,gBAAgB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;;QAClC,IAAI,MAAA,MAAM,CAAC,IAAI,0CAAE,OAAO,EAAE,CAAC;YACzB,SAAS,CAAC,GAAG,CAAC,M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void 0, void 0, function* (
|
|
131
131
|
const amountToCollatAmount = collateral.dividedBy(offer.totalAmount);
|
132
132
|
const amount = order.amount.times(amountToCollatAmount).toNumber();
|
133
133
|
const side = offer.offerType === structs_1.OfferType.Buy ? 'Sell Order' : 'Buy Order';
|
134
|
-
console.log(offer);
|
135
134
|
const collatAsset = (0, tokenPriceToAssetToken_1.default)(mint, amount, portfolio_core_1.NetworkId.solana, tokenPrice, undefined, {
|
136
135
|
tags: [side],
|
137
136
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,6CAA4C;AAG5C,2CAAyD;AACzD,iDAAsD;AACtD,+CAG4B;AAC5B,uCAQmB;AACnB,uCAAyE;AACzE,qGAA6E;AAC7E,mCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACpE,IAAA,iCAAwB,EAAC,MAAM,EAAE,qBAAW,EAAE,eAAG,EAAE,IAAA,qBAAW,EAAC,KAAK,CAAC,CAAC;QACtE,IAAA,iCAAwB,EAAC,MAAM,EAAE,qBAAW,EAAE,eAAG,EAAE,IAAA,wBAAc,EAAC,KAAK,CAAC,CAAC;QACzE,IAAA,iCAAwB,EAAC,MAAM,EAAE,qBAAW,EAAE,eAAG,EAAE,IAAA,yBAAe,EAAC,KAAK,CAAC,CAAC;QAC1E,KAAK,CAAC,OAAO,CAAU,qBAAS,EAAE;YAChC,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC;KACH,CAAC,CA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Q,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,GAAG,IAAI,MAAM,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG;YACjD,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,EAAE,MAAM,EAAE;YAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,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,5 +8,6 @@ export declare class AssetBuilder {
|
|
8
8
|
attributes: PortfolioAssetAttributes;
|
9
9
|
alreadyShifted: boolean;
|
10
10
|
constructor(params: PortfolioAssetParams);
|
11
|
-
|
11
|
+
getUnderlyings(networkId: NetworkIdType, tokenPrices: TokenPriceMap): PortfolioAsset[];
|
12
|
+
get(networkId: NetworkIdType, tokenPrices: TokenPriceMap): PortfolioAsset | null;
|
12
13
|
}
|