@sonarwatch/portfolio-plugins 0.14.128 → 0.14.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/index.js +5 -0
- package/src/index.js.map +1 -1
- package/src/plugins/adrena/positionsFetcher.js +1 -0
- package/src/plugins/adrena/positionsFetcher.js.map +1 -1
- package/src/plugins/allbridge/positionsFetcher.js +9 -1
- package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
- package/src/plugins/armada-staking/stakingFetcher.js +4 -1
- package/src/plugins/armada-staking/stakingFetcher.js.map +1 -1
- package/src/plugins/aurory/stakingFetcher.js +5 -1
- package/src/plugins/aurory/stakingFetcher.js.map +1 -1
- package/src/plugins/bonfida/offersFetcher.js +30 -37
- package/src/plugins/bonfida/offersFetcher.js.map +1 -1
- package/src/plugins/bonkrewards/positionFetcher.js +16 -22
- package/src/plugins/bonkrewards/positionFetcher.js.map +1 -1
- package/src/plugins/cyberfrogs/thorDepositFetcher.js +2 -0
- package/src/plugins/cyberfrogs/thorDepositFetcher.js.map +1 -1
- package/src/plugins/daos/realmsDepositsFetcher.js +29 -43
- package/src/plugins/daos/realmsDepositsFetcher.js.map +1 -1
- package/src/plugins/debridge/dlmmVaultsFetcher.js +16 -10
- package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
- package/src/plugins/defiland/stakingFetcher.js +8 -1
- package/src/plugins/defiland/stakingFetcher.js.map +1 -1
- package/src/plugins/defituna/lendingFetcher.js +3 -0
- package/src/plugins/defituna/lendingFetcher.js.map +1 -1
- package/src/plugins/defituna/positionsFetcher.js +7 -1
- package/src/plugins/defituna/positionsFetcher.js.map +1 -1
- package/src/plugins/defituna/structs.d.ts +1 -0
- package/src/plugins/defituna/structs.js.map +1 -1
- package/src/plugins/divvy/constants.d.ts +1 -0
- package/src/plugins/divvy/constants.js +2 -1
- package/src/plugins/divvy/constants.js.map +1 -1
- package/src/plugins/divvy/housePoolFetcher.js +3 -0
- package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
- package/src/plugins/divvy/stakingFetcher.js +3 -1
- package/src/plugins/divvy/stakingFetcher.js.map +1 -1
- package/src/plugins/drift/depositsFetcher.js +15 -0
- package/src/plugins/drift/depositsFetcher.js.map +1 -1
- package/src/plugins/drift-market-maker-vault/depositsFetcher.js +2 -1
- package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
- package/src/plugins/elemental/depositFetcher.js +3 -0
- package/src/plugins/elemental/depositFetcher.js.map +1 -1
- package/src/plugins/ensofi/solanaLoansFetcher.js +6 -0
- package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
- package/src/plugins/exponent/liquidityFetcher.js +1 -0
- package/src/plugins/exponent/liquidityFetcher.js.map +1 -1
- package/src/plugins/exponent/tradeFetcher.js +1 -0
- package/src/plugins/exponent/tradeFetcher.js.map +1 -1
- package/src/plugins/famousfoxfederation/stakingFetcher.js +18 -22
- package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -1
- package/src/plugins/flash/perpetualFetcher.js +1 -1
- package/src/plugins/flash/perpetualFetcher.js.map +1 -1
- package/src/plugins/fragmetric/pricingJob.js +6 -0
- package/src/plugins/fragmetric/pricingJob.js.map +1 -1
- package/src/plugins/francium/lendingFetcher.js +1 -0
- package/src/plugins/francium/lendingFetcher.js.map +1 -1
- package/src/plugins/futarchy/daosJob.js +9 -0
- package/src/plugins/futarchy/daosJob.js.map +1 -1
- package/src/plugins/genesysgo/stakingFetcher.js +12 -25
- package/src/plugins/genesysgo/stakingFetcher.js.map +1 -1
- package/src/plugins/goosefx/stakingFetcher.js +18 -27
- package/src/plugins/goosefx/stakingFetcher.js.map +1 -1
- package/src/plugins/gpool/stakingFetcher.js +5 -1
- package/src/plugins/gpool/stakingFetcher.js.map +1 -1
- package/src/plugins/guano/constants.d.ts +8 -0
- package/src/plugins/guano/constants.js +15 -0
- package/src/plugins/guano/constants.js.map +1 -0
- package/src/plugins/guano/filters.d.ts +20 -0
- package/src/plugins/guano/filters.js +41 -0
- package/src/plugins/guano/filters.js.map +1 -0
- package/src/plugins/guano/index.d.ts +6 -0
- package/src/plugins/guano/index.js +10 -0
- package/src/plugins/guano/index.js.map +1 -0
- package/src/plugins/guano/stakingFetcher.d.ts +3 -0
- package/src/plugins/guano/stakingFetcher.js +70 -0
- package/src/plugins/guano/stakingFetcher.js.map +1 -0
- package/src/plugins/guano/structs.d.ts +34 -0
- package/src/plugins/guano/structs.js +33 -0
- package/src/plugins/guano/structs.js.map +1 -0
- package/src/plugins/guano/types.d.ts +15 -0
- package/src/plugins/guano/types.js +3 -0
- package/src/plugins/guano/types.js.map +1 -0
- package/src/plugins/hedgehog/ammJob.js +8 -0
- package/src/plugins/hedgehog/ammJob.js.map +1 -1
- package/src/plugins/hxro/stakingFetcher.js +2 -0
- package/src/plugins/hxro/stakingFetcher.js.map +1 -1
- package/src/plugins/iloop/depositsFetcher.js +8 -0
- package/src/plugins/iloop/depositsFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js +6 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/limitFetcher.js +3 -0
- package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/valueAverageFetcher.js +2 -1
- package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
- package/src/plugins/kamino/lendsFetcher.js +6 -0
- package/src/plugins/kamino/lendsFetcher.js.map +1 -1
- package/src/plugins/kamino/ordersFetcher.js +2 -1
- package/src/plugins/kamino/ordersFetcher.js.map +1 -1
- package/src/plugins/layer3/stakingFetcher.js +1 -0
- package/src/plugins/layer3/stakingFetcher.js.map +1 -1
- package/src/plugins/lifinity/lockerFetcher.js +14 -17
- package/src/plugins/lifinity/lockerFetcher.js.map +1 -1
- package/src/plugins/loverflow/airdropClaimFetcher.js +1 -0
- package/src/plugins/loverflow/airdropClaimFetcher.js.map +1 -1
- package/src/plugins/magiceden/escrowFetcher.js +12 -18
- package/src/plugins/magiceden/escrowFetcher.js.map +1 -1
- package/src/plugins/marginfi/helpers.d.ts +2 -1
- package/src/plugins/marginfi/helpers.js +8 -2
- package/src/plugins/marginfi/helpers.js.map +1 -1
- package/src/plugins/marinade/ticketsFetcher.js +14 -31
- package/src/plugins/marinade/ticketsFetcher.js.map +1 -1
- package/src/plugins/metaplex/resizableNftFetcher.js +1 -0
- package/src/plugins/metaplex/resizableNftFetcher.js.map +1 -1
- package/src/plugins/nxfinance/positionsFetcher.js +19 -2
- package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
- package/src/plugins/orca/getWhirlpoolPositions.js +10 -1
- package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
- package/src/plugins/parcl/depositsFetcher.js +1 -1
- package/src/plugins/parcl/depositsFetcher.js.map +1 -1
- package/src/plugins/parcl/marginFetcher.js +1 -1
- package/src/plugins/parcl/marginFetcher.js.map +1 -1
- package/src/plugins/parcl/stakingFetcher.js +6 -3
- package/src/plugins/parcl/stakingFetcher.js.map +1 -1
- package/src/plugins/photofinish/stakingFetcher.js +6 -1
- package/src/plugins/photofinish/stakingFetcher.js.map +1 -1
- package/src/plugins/picasso/unstakingPositionsFetcher.js +3 -2
- package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
- package/src/plugins/quarry/calculatePositions.js +7 -1
- package/src/plugins/quarry/calculatePositions.js.map +1 -1
- package/src/plugins/quarry/positionsFetcher.js +2 -0
- package/src/plugins/quarry/positionsFetcher.js.map +1 -1
- package/src/plugins/quarry/types.d.ts +3 -0
- package/src/plugins/ratex/positionsFetcher.js +2 -0
- package/src/plugins/ratex/positionsFetcher.js.map +1 -1
- package/src/plugins/saber/lpTokensJob.js +1 -0
- package/src/plugins/saber/lpTokensJob.js.map +1 -1
- package/src/plugins/sandglass/depositFetcher.js +3 -0
- package/src/plugins/sandglass/depositFetcher.js.map +1 -1
- package/src/plugins/sharky/loansFetcher.js +1 -0
- package/src/plugins/sharky/loansFetcher.js.map +1 -1
- package/src/plugins/solayer/airdropFetcher.d.ts +3 -0
- package/src/plugins/solayer/airdropFetcher.js +55 -0
- package/src/plugins/solayer/airdropFetcher.js.map +1 -0
- package/src/plugins/solayer/constants.d.ts +5 -0
- package/src/plugins/solayer/constants.js +13 -1
- package/src/plugins/solayer/constants.js.map +1 -1
- package/src/plugins/solayer/index.d.ts +2 -0
- package/src/plugins/solayer/index.js +4 -2
- package/src/plugins/solayer/index.js.map +1 -1
- package/src/plugins/solayer/proofsFetcher.js +7 -6
- package/src/plugins/solayer/proofsFetcher.js.map +1 -1
- package/src/plugins/solayer/types.d.ts +8 -0
- package/src/plugins/solayer/types.js +3 -0
- package/src/plugins/solayer/types.js.map +1 -0
- package/src/plugins/spdr/stakingFetcher.js +3 -0
- package/src/plugins/spdr/stakingFetcher.js.map +1 -1
- package/src/plugins/stabble/poolsJob.js +1 -0
- package/src/plugins/stabble/poolsJob.js.map +1 -1
- package/src/plugins/staratlas/lockersFetcher.js +2 -0
- package/src/plugins/staratlas/lockersFetcher.js.map +1 -1
- package/src/plugins/staratlas/stakingFetcher.js +2 -1
- package/src/plugins/staratlas/stakingFetcher.js.map +1 -1
- package/src/plugins/streamflow/vestingFetcher.js +1 -1
- package/src/plugins/streamflow/vestingFetcher.js.map +1 -1
- package/src/plugins/tensor/bidsFetcher.js +1 -1
- package/src/plugins/tensor/bidsFetcher.js.map +1 -1
- package/src/plugins/texture/loansFetcher.js +2 -1
- package/src/plugins/texture/loansFetcher.js.map +1 -1
- package/src/plugins/tulip/depositsFetcher.js +3 -1
- package/src/plugins/tulip/depositsFetcher.js.map +1 -1
- package/src/plugins/uxd/stakingFetcher.js +4 -3
- package/src/plugins/uxd/stakingFetcher.js.map +1 -1
- package/src/plugins/vaultka/lendingFetcher.js +5 -0
- package/src/plugins/vaultka/lendingFetcher.js.map +1 -1
- package/src/plugins/vaultka/strategyFetcher.js +3 -0
- package/src/plugins/vaultka/strategyFetcher.js.map +1 -1
- package/src/plugins/whalesmarket/depositFetcher.js +7 -5
- package/src/plugins/whalesmarket/depositFetcher.js.map +1 -1
- package/src/plugins/zelo/positionsFetcher.js +2 -0
- package/src/plugins/zelo/positionsFetcher.js.map +1 -1
- package/src/plugins/zeta/depositsFetcher.js +5 -1
- package/src/plugins/zeta/depositsFetcher.js.map +1 -1
- package/src/utils/clients/getClientSolanaAlt.d.ts +2 -0
- package/src/utils/clients/getClientSolanaAlt.js +93 -0
- package/src/utils/clients/getClientSolanaAlt.js.map +1 -0
- package/src/utils/elementbuilder/ElementRegistry.d.ts +1 -3
- package/src/utils/elementbuilder/ElementRegistry.js +2 -5
- package/src/utils/elementbuilder/ElementRegistry.js.map +1 -1
@@ -89,7 +89,9 @@ function getElementFromAccount(marginfiAccount, banksInfoByAddress, tokenPriceBy
|
|
89
89
|
// If one of the deposited asset is a stake collateral, show it inside the element name
|
90
90
|
if ((tokenPrice === null || tokenPrice === void 0 ? void 0 : tokenPrice.elementName) === 'Stake Collateral')
|
91
91
|
name = 'Stake Collateral';
|
92
|
-
suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(bankInfo.mint.toString(), suppliedAmount, portfolio_core_1.NetworkId.solana, tokenPrice))
|
92
|
+
suppliedAssets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(bankInfo.mint.toString(), suppliedAmount, portfolio_core_1.NetworkId.solana, tokenPrice)), { sourceRefs: [
|
93
|
+
{ name: 'Lending Market', address: balance.bankPk.toString() },
|
94
|
+
] }));
|
93
95
|
suppliedYields.push(bankInfo.suppliedYields);
|
94
96
|
}
|
95
97
|
if (!balance.liabilityShares.value.isZero()) {
|
@@ -97,7 +99,9 @@ function getElementFromAccount(marginfiAccount, banksInfoByAddress, tokenPriceBy
|
|
97
99
|
const borrowedAmount = wrappedI80F48toBigNumber(balance.liabilityShares)
|
98
100
|
.times(bankInfo.dividedLiabilityShareValue)
|
99
101
|
.toNumber();
|
100
|
-
borrowedAssets.push((0, tokenPriceToAssetToken_1.default)(bankInfo.mint.toString(), borrowedAmount, portfolio_core_1.NetworkId.solana, tokenPrice))
|
102
|
+
borrowedAssets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(bankInfo.mint.toString(), borrowedAmount, portfolio_core_1.NetworkId.solana, tokenPrice)), { sourceRefs: [
|
103
|
+
{ name: 'Lending Market', address: balance.bankPk.toString() },
|
104
|
+
] }));
|
101
105
|
borrowedYields.push(bankInfo.borrowedYields);
|
102
106
|
}
|
103
107
|
}
|
@@ -127,6 +131,8 @@ function getElementFromAccount(marginfiAccount, banksInfoByAddress, tokenPriceBy
|
|
127
131
|
rewardAssets,
|
128
132
|
rewardValue,
|
129
133
|
value,
|
134
|
+
ref: marginfiAccount.pubkey.toString(),
|
135
|
+
link: 'https://app.marginfi.com/portfolio',
|
130
136
|
},
|
131
137
|
name,
|
132
138
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/marginfi/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,4DAAiC;AACjC,+DAQoC;AAIpC,qGAA6E;AAC7E,2CAAyC;
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/marginfi/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,4DAAiC;AACjC,+DAQoC;AAIpC,qGAA6E;AAC7E,2CAAyC;AAGzC,SAAgB,wBAAwB,CACtC,EAAE,KAAK,EAAwB,EAC/B,YAAY,GAAG,CAAC;IAEhB,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,sBAAS,CAAC,CAAC,CAAC,CAAC;IAEpC,MAAM,OAAO,GAAG,IAAI,oBAAO,CACzB,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK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M,KAAK,CAAC,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAE5E,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC;QACtB,cAAc;QACd,cAAc;QACd,YAAY;QACZ,YAAY;QACZ,eAAe;KAChB,CAAC,CAAC;IAEL,OAAO;QACL,IAAI,EAAE,qCAAoB,CAAC,UAAU;QACrC,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS;QAChB,KAAK;QACL,IAAI,EAAE;YACJ,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;YACd,aAAa;YACb,cAAc;YACd,WAAW;YACX,YAAY;YACZ,WAAW;YACX,KAAK;YACL,GAAG,EAAE,eAAe,CAAC,MAAM,CAAC,QAAQ,EAAE;YACtC,IAAI,EAAE,oCAAoC;SAC3C;QACD,IAAI;KACL,CAAC;AACJ,CAAC;AAvGD,sDAuGC"}
|
@@ -15,44 +15,27 @@ const constants_1 = require("./constants");
|
|
15
15
|
const structs_1 = require("./structs");
|
16
16
|
const filters_1 = require("./filters");
|
17
17
|
const clients_1 = require("../../utils/clients");
|
18
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
18
19
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
19
20
|
const connection = (0, clients_1.getClientSolana)();
|
20
21
|
const tickets = yield (0, solana_1.getParsedProgramAccounts)(connection, structs_1.ticketStruct, constants_1.marinadeTicketProgramId, (0, filters_1.ticketFilters)(owner));
|
21
22
|
if (tickets.length === 0)
|
22
23
|
return [];
|
23
|
-
const
|
24
|
+
const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
25
|
+
const element = registry.addElementMultiple({
|
26
|
+
label: 'Rewards',
|
27
|
+
name: 'Tickets',
|
28
|
+
link: 'https://marinade.finance/',
|
29
|
+
});
|
24
30
|
for (let i = 0; i < tickets.length; i += 1) {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
type: portfolio_core_1.PortfolioAssetType.token,
|
32
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
33
|
-
value,
|
34
|
-
attributes: {},
|
35
|
-
data: {
|
36
|
-
address: portfolio_core_1.solanaNativeAddress,
|
37
|
-
price,
|
38
|
-
amount,
|
39
|
-
},
|
40
|
-
};
|
41
|
-
assets.push(asset);
|
31
|
+
element.addAsset({
|
32
|
+
address: portfolio_core_1.solanaNativeAddress,
|
33
|
+
amount: tickets[i].lamportsAmount.div(constants_1.solFactor).toNumber(),
|
34
|
+
alreadyShifted: true,
|
35
|
+
ref: tickets[i].pubkey,
|
36
|
+
});
|
42
37
|
}
|
43
|
-
|
44
|
-
return [];
|
45
|
-
const element = {
|
46
|
-
type: portfolio_core_1.PortfolioElementType.multiple,
|
47
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
48
|
-
platformId: constants_1.platformId,
|
49
|
-
label: 'Rewards',
|
50
|
-
value: (0, portfolio_core_1.getUsdValueSumStrict)(assets.map((a) => a.value)),
|
51
|
-
data: {
|
52
|
-
assets,
|
53
|
-
},
|
54
|
-
};
|
55
|
-
return [element];
|
38
|
+
return registry.getElements(cache);
|
56
39
|
});
|
57
40
|
const fetcher = {
|
58
41
|
id: `${constants_1.platformId}-tickets`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ticketsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/marinade/ticketsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"ticketsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/marinade/ticketsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAC5E,+CAA8D;AAC9D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@ -57,6 +57,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
57
57
|
const element = elementRegistry.addElementMultiple({
|
58
58
|
label: 'Rewards',
|
59
59
|
name: 'Resize Program',
|
60
|
+
link: 'https://resize.metaplex.com',
|
60
61
|
});
|
61
62
|
element.addAsset({
|
62
63
|
address: portfolio_core_1.solanaNativeAddress,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resizableNftFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/metaplex/resizableNftFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAE5C,2CAIqB;AAErB,gFAA6E;AAC7E,iDAAsD;AACtD,+CAAwE;AACxE,uCAAqE;AACrE,gGAA6F;AAE7F,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,EAAE;QACvE,SAAS,EAAE,IAAI,mBAAS,CAAC,uBAAc,CAAC;KACzC,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK;SAC9B,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,2BAAkB,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SACzE,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAEvC,MAAM,eAAe,GAAgB,EAAE,CAAC;IACxC,MAAM,cAAc,GAAgB,EAAE,CAAC;IACvC,aAAa,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAChC,eAAe,CAAC,IAAI,CAAC,IAAA,2BAAiB,EA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sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -32,7 +32,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
32
32
|
solayerPoolsMemo.getItem(cache),
|
33
33
|
]);
|
34
34
|
if (!lendingPools)
|
35
|
-
|
35
|
+
throw new Error('Lending pools missing in cache.');
|
36
36
|
const [lendingAccounts, vSolPositionsAccounts, marginAccount, solayerUserAccounts,] = yield Promise.all([
|
37
37
|
(0, helpers_1.getLendingAccounts)(lendingPools, owner), // JLP
|
38
38
|
(0, helpers_1.getVSolPositionAccounts)(lendingPools, owner), // vSOL
|
@@ -76,9 +76,15 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
76
76
|
const element = elementRegistry.addElementLiquidity({
|
77
77
|
label: 'Lending',
|
78
78
|
name: 'GMS Lending Pool',
|
79
|
+
link: 'https://nxfinance.io/lend',
|
79
80
|
});
|
80
81
|
const formattedLendingPool = (0, helpers_1.formatLendingPool)(lendingPools[0], tokenPrice.decimals);
|
81
|
-
const liquidity = element.addLiquidity({
|
82
|
+
const liquidity = element.addLiquidity({
|
83
|
+
ref: lendingAccount.pubkey.toString(),
|
84
|
+
sourceRefs: [
|
85
|
+
{ name: 'Lending Market', address: lendingPool.pubkey.toString() },
|
86
|
+
],
|
87
|
+
});
|
82
88
|
liquidity.addAsset({
|
83
89
|
address: lendingPool.tokenMint,
|
84
90
|
amount: new bignumber_js_1.default(lendingAccount.depositNotes).multipliedBy(formattedLendingPool.depositNoteRate),
|
@@ -111,6 +117,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
111
117
|
name: `vSOL Leverage x${new bignumber_js_1.default(position.leverageMultiples)
|
112
118
|
.dividedBy(1000000)
|
113
119
|
.decimalPlaces(2)}`,
|
120
|
+
link: 'https://nxfinance.io/leverage',
|
121
|
+
ref: vSolPositionsAccount.pubkey.toString(),
|
122
|
+
sourceRefs: [
|
123
|
+
{ name: 'Lending Market', address: lendingPool.pubkey.toString() },
|
124
|
+
],
|
114
125
|
});
|
115
126
|
const amount = new bignumber_js_1.default(new bignumber_js_1.default(position.leverageNote)
|
116
127
|
.dividedBy(Math.pow(10, leverageTokenPrice.decimals))
|
@@ -131,12 +142,16 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
131
142
|
const elementMultiple = elementRegistry.addElementMultiple({
|
132
143
|
label: 'Lending',
|
133
144
|
name: 'Fulcrum Lending Pool',
|
145
|
+
link: 'https://nxfinance.io/lend',
|
146
|
+
ref: marginAccount.pubkey,
|
134
147
|
});
|
135
148
|
const elementBorrowlend = elementRegistry.addElementBorrowlend({
|
136
149
|
label: 'Leverage',
|
137
150
|
name: `JLP Leverage x${new bignumber_js_1.default(marginAccount.leverage)
|
138
151
|
.dividedBy(100)
|
139
152
|
.decimalPlaces(2)}`,
|
153
|
+
link: 'https://nxfinance.io/leverage',
|
154
|
+
ref: marginAccount.pubkey,
|
140
155
|
});
|
141
156
|
marginAccount.deposits.forEach((deposit) => {
|
142
157
|
const marginPool = marginPools.find((mp) => (mp === null || mp === void 0 ? void 0 : mp.tokenMint) === deposit.tokenMint);
|
@@ -176,6 +191,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
176
191
|
return;
|
177
192
|
const element = elementRegistry.addElementMultiple({
|
178
193
|
label: 'Leverage',
|
194
|
+
link: 'https://nxfinance.io/leverage',
|
195
|
+
ref: solayerUserAccount.pubkey,
|
179
196
|
});
|
180
197
|
element.addAsset({
|
181
198
|
address: solayerUserAccount.lrtMint,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAErC,2CAKqB;AAIrB,kEAA+D;AAC/D,uCASmB;AACnB,gFAA6E;AAE7E,MAAM,gBAAgB,GAAG,IAAI,6BAAa,CACxC,0BAAc,EACd;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CACF,CAAC;AACF,MAAM,gBAAgB,GAAG,IAAI,6BAAa,CACxC,0BAAc,EACd;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CACF,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACrD,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC;QAC/B,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC;KAChC,CAAC,CAAC;IACH,IAAI,CAAC,YAAY;QAAE,
|
1
|
+
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAErC,2CAKqB;AAIrB,kEAA+D;AAC/D,uCASmB;AACnB,gFAA6E;AAE7E,MAAM,gBAAgB,GAAG,IAAI,6BAAa,CACxC,0BAAc,EACd;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CACF,CAAC;AACF,MAAM,gBAAgB,GAAG,IAAI,6BAAa,CACxC,0BAAc,EACd;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CACF,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACrD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A+B;YACrC,GAAG,EAAE,kBAAkB,CAAC,MAAM;SAC/B,CAAC,CAAC;QACH,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,kBAAkB,CAAC,OAAO;YACnC,MAAM,EAAE,kBAAkB,CAAC,MAAM;SAClC,CAAC,CAAC;QACH,kBAAkB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YACpD,IAAI,UAAU,CAAC,CAAC,CAAC;gBACf,OAAO,CAAC,QAAQ,CAAC;oBACf,OAAO,EAAE,2CAA0B;oBACnC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS;iBAChC,CAAC,CAAC;QACP,CAAC,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,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -73,7 +73,16 @@ function getOrcaNftFetcher(platformId, programId) {
|
|
73
73
|
!whirlpoolInfo.tokenMintB ||
|
74
74
|
!whirlpoolInfo.tickCurrentIndex)
|
75
75
|
continue;
|
76
|
-
const element = elementRegistry.addElementConcentratedLiquidity(
|
76
|
+
const element = elementRegistry.addElementConcentratedLiquidity({
|
77
|
+
link: 'https://www.orca.so/portfolio',
|
78
|
+
ref: positionInfo.pubkey.toString(),
|
79
|
+
sourceRefs: [
|
80
|
+
{
|
81
|
+
name: 'Pool',
|
82
|
+
address: whirlpoolInfo.pubkey.toString(),
|
83
|
+
},
|
84
|
+
],
|
85
|
+
});
|
77
86
|
const liquidity = element.setLiquidity({
|
78
87
|
addressA: whirlpoolInfo.tokenMintA,
|
79
88
|
addressB: whirlpoolInfo.tokenMintB,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getWhirlpoolPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/getWhirlpoolPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAIoC;AACpC,6CAA4C;AAC5C,2CAIqB;AACrB,iDAAsD;AACtD,+CAG4B;AAE5B,mDAAgE;AAEhE,iDAAwE;AACxE,gFAA6E;AAGhE,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,YAAY,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;YAEnE,MAAM,CAAC,cAAc,CAAC,GAAG,mBAAS,CAAC,sBAAsB,CACvD,YAAY,EACZ,SAAS,CACV,CAAC;YACF,uBAAuB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;QACH,IAAI,uBAAuB,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAEpD,MAAM,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACvD,MAAM,EACN,0BAAc,EACd,uBAAuB,CACxB,CAAC;QACF,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAE5D,MAAM,kBAAkB,GAAgB,IAAI,GAAG,EAAE,CAAC;QAClD,aAAa,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC5B,IAAI,GAAG;gBAAE,kBAAkB,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAChE,KAAK,CAAC,QAAQ,CAA2B,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE;gBACvE,MAAM,EAAE,2BAAe;gBACvB,SAAS,EAAE,0BAAS,CAAC,MAAM;aAC5B,CAAC;YACF,KAAK,CAAC,QAAQ,CACZ,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,EACvD;gBACE,MAAM,EAAE,2BAAe;gBACvB,SAAS,EAAE,0BAAS,CAAC,MAAM;aAC5B,CACF;SACF,CAAC,CAAC;QAEH,MAAM,YAAY,
|
1
|
+
{"version":3,"file":"getWhirlpoolPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/getWhirlpoolPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAIoC;AACpC,6CAA4C;AAC5C,2CAIqB;AACrB,iDAAsD;AACtD,+CAG4B;AAE5B,mDAAgE;AAEhE,iDAAwE;AACxE,gFAA6E;AAGhE,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,EAA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C,QAAQ;iBAChC,CAAC,CAAC;gBAEH,SAAS,CAAC,cAAc,CAAC;oBACvB,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI;oBAC1C,MAAM,EAAE,cAAc,CAAC,WAAW;iBACnC,CAAC,CAAC;gBAEH,SAAS,CAAC,cAAc,CAAC;oBACvB,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI;oBAC1C,MAAM,EAAE,cAAc,CAAC,WAAW;iBACnC,CAAC,CAAC;gBAEH,SAAS,CAAC,cAAc,CAAC;oBACvB,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI;oBAC1C,MAAM,EAAE,cAAc,CAAC,WAAW;iBACnC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC,CAAA,CAAC;AACJ,CAAC;AA5ID,8CA4IC"}
|
@@ -82,7 +82,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
82
82
|
label: 'Deposit',
|
83
83
|
networkId: portfolio_core_1.NetworkId.solana,
|
84
84
|
platformId: constants_1.platformId,
|
85
|
-
data: { assets },
|
85
|
+
data: { assets, link: 'https://app.parcl.co/lp' },
|
86
86
|
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
|
87
87
|
},
|
88
88
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAAyC;AACzC,iDAAsD;AACtD,+CAG4B;AAC5B,uCAImB;AACnB,qGAA6E;AAC7E,uCAImB;AACnB,kFAA+E;AAE/E,MAAM,UAAU,GAAG,EAAE,GAAG,IAAI,GAAG,EAAE,GA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AAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,EAAE;YACjD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -31,7 +31,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
31
31
|
for (const account of accounts) {
|
32
32
|
if (account.margin.isZero())
|
33
33
|
continue;
|
34
|
-
assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(solana_1.usdcSolanaMint, account.margin.dividedBy(Math.pow(10, solana_1.usdcSolanaDecimals)).toNumber(), portfolio_core_1.NetworkId.solana, usdcTokenPrice)), {
|
34
|
+
assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(solana_1.usdcSolanaMint, account.margin.dividedBy(Math.pow(10, solana_1.usdcSolanaDecimals)).toNumber(), portfolio_core_1.NetworkId.solana, usdcTokenPrice)), { ref: account.pubkey.toString() }));
|
35
35
|
}
|
36
36
|
if (assets.length === 0)
|
37
37
|
return [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"marginFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/marginFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAAoD;AAEpD,iDAAsD;AACtD,+CAI4B;AAC5B,uCAAgD;AAChD,uCAAgD;AAChD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,CAAC,QAAQ,EAAE,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACnD,IAAA,iCAAwB,EACtB,MAAM,EACN,6BAAmB,EACnB,qBAAS,EACT,IAAA,6BAAmB,EAAC,KAAK,CAAC,CAC3B;QACD,KAAK,CAAC,aAAa,CAAC,uBAAc,EAAE,0BAAS,CAAC,MAAM,CAAC;KACtD,CAAC,CAAC;IACH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;YAAE,SAAS;QACtC,MAAM,CAAC,IAAI,iCACN,IAAA,gCAAsB,EACvB,uBAAc,EACd,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,2BAAkB,CAAA,CAAC,CAAC,QAAQ,EAAE,EAC7D,0BAAS,CAAC,MAAM,EAChB,cAAc,CACf,KACD,
|
1
|
+
{"version":3,"file":"marginFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/marginFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAAoD;AAEpD,iDAAsD;AACtD,+CAI4B;AAC5B,uCAAgD;AAChD,uCAAgD;AAChD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,CAAC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0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -43,9 +43,12 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
43
43
|
label: 'Staked',
|
44
44
|
link: 'https://stake.parcllimited.com/',
|
45
45
|
});
|
46
|
-
|
47
|
-
|
48
|
-
|
46
|
+
accs.forEach((acc, i) => {
|
47
|
+
element.addAsset({
|
48
|
+
address: constants_1.prclMint,
|
49
|
+
amount: tokenBalances[i],
|
50
|
+
ref: acc.pubkey.toString(),
|
51
|
+
});
|
49
52
|
});
|
50
53
|
return elementRegistry.getElements(cache);
|
51
54
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAE5C,2CAAqE;AAErE,iDAAsD;AACtD,+CAAwD;AACxD,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,0HAA0H;IAE1H,MAAM,IAAI,GAAG,MAAM,IAAA,2BAAkB,EAAC,MAAM,EAAE,4BAAgB,EAAE;QAC9D;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,aAAa;aACrB;SACF;QACD;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,KAAK;aACb;SACF;KACF,CAAC,CAAC;IAEH,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CACrC,IAAI,CAAC,GAAG,CAAC,CAAO,GAAG,EAAE,EAAE;QACrB,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,sBAAsB,CACtD,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAC/C,4BAAgB,CACjB,CAAC,CAAC,CAAC,CACL,CAAC;QAEF,OAAO,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC,CAAA,CAAC,CACH,CAAC;IAEF,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,iCAAiC;KACxC,CAAC,CAAC;IAEH,OAAO,CAAC,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAE5C,2CAAqE;AAErE,iDAAsD;AACtD,+CAAwD;AACxD,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,0HAA0H;IAE1H,MAAM,IAAI,GAAG,MAAM,IAAA,2BAAkB,EAAC,MAAM,EAAE,4BAAgB,EAAE;QAC9D;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,aAAa;aACrB;SACF;QACD;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,KAAK;aACb;SACF;KACF,CAAC,CAAC;IAEH,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CACrC,IAAI,CAAC,GAAG,CAAC,CAAO,GAAG,EAAE,EAAE;QACrB,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,sBAAsB,CACtD,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAC/C,4BAAgB,CACjB,CAAC,CAAC,CAAC,CACL,CAAC;QAEF,OAAO,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC,CAAA,CAAC,CACH,CAAC;IAEF,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,iCAAiC;KACxC,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;QACtB,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oBAAQ;YACjB,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;YACxB,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;SAC3B,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,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -27,7 +27,12 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
27
27
|
if (typeof res.data === 'string')
|
28
28
|
return [];
|
29
29
|
const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
30
|
-
registry
|
30
|
+
registry
|
31
|
+
.addElementMultiple({
|
32
|
+
label: 'Staked',
|
33
|
+
link: 'https://photofinish.live/crown',
|
34
|
+
})
|
35
|
+
.addAsset({
|
31
36
|
address: constants_1.crownMint,
|
32
37
|
amount: res.data,
|
33
38
|
alreadyShifted: true,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/photofinish/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA0B;AAE1B,2CAA4D;AAE5D,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,IAAI,GAAG,CAAC;IACR,IAAI,CAAC;QACH,GAAG,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,kBAAM,GAAG,KAAK,CAAC,CAAC;IACxC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,EAAE,CAAC;IAE5C,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAEnE,QAAQ,
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/photofinish/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA0B;AAE1B,2CAA4D;AAE5D,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,IAAI,GAAG,CAAC;IACR,IAAI,CAAC;QACH,GAAG,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,kBAAM,GAAG,KAAK,CAAC,CAAC;IACxC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,EAAE,CAAC;IAE5C,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAEnE,QAAQ;SACL,kBAAkB,CAAC;QAClB,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,gCAAgC;KACvC,CAAC;SACD,QAAQ,CAAC;QACR,OAAO,EAAE,qBAAS;QAClB,MAAM,EAAE,GAAG,CAAC,IAAI;QAChB,cAAc,EAAE,IAAI;KACrB,CAAC,CAAC;IAEL,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,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"}
|
@@ -44,12 +44,12 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
44
44
|
.times(1000)
|
45
45
|
.toNumber());
|
46
46
|
const isClaimable = unlockingAt.getTime() < Date.now();
|
47
|
-
assets.push((0, tokenPriceToAssetToken_1.default)(vault.stakeMint, new bignumber_js_1.default(vault.stakeAmount)
|
47
|
+
assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(vault.stakeMint, new bignumber_js_1.default(vault.stakeAmount)
|
48
48
|
.dividedBy(Math.pow(10, tokenPrice.decimals))
|
49
49
|
.toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice, undefined, {
|
50
50
|
isClaimable,
|
51
51
|
lockedUntil: unlockingAt.getTime(),
|
52
|
-
}));
|
52
|
+
})), { ref: vault.pubkey.toString() }));
|
53
53
|
});
|
54
54
|
if (assets.length === 0)
|
55
55
|
return [];
|
@@ -62,6 +62,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
62
62
|
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
|
63
63
|
data: {
|
64
64
|
assets,
|
65
|
+
link: 'https://app.picasso.network/restake',
|
65
66
|
},
|
66
67
|
},
|
67
68
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"unstakingPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/picasso/unstakingPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAErC,2CAIqB;AAErB,qGAA6E;AAE7E,kEAA+D;
|
1
|
+
{"version":3,"file":"unstakingPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/picasso/unstakingPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAErC,2CAIqB;AAErB,qGAA6E;AAE7E,kEAA+D;AAG/D,MAAM,aAAa,GAAG,IAAI,6BAAa,CACrC,iCAAqB,EACrB;IACE,MAAM,EAAE,oCAAwB;IAChC,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CACF,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,0CAA0C;IAC1C,8DAA8D;IAE9D,MAAM,SAAS,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAErD,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEpD,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,CAC/B,CAAC,CAAC,EAAE,EAAE,WAAC,OAAA,CAAA,MAAA,CAAC,CAAC,iBAAiB,0CAAE,KAAK,MAAK,KAAK,CAAA,EAAA,CAC5C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,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,IAC5B,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,QAAQ;YACf,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACjD,IAAI,EAAE;gBACJ,MAAM;gBACN,IAAI,EAAE,qCAAqC;aAC5C;SACF;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,sBAAsB;IACvC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -27,12 +27,14 @@ const calculatePositions = (mergeMinerAccounts, minerAccounts, replicaMinerAccou
|
|
27
27
|
const primaryQuarryAccount = quarryAccounts.find((q) => q.pubkey.toString() === primaryQuarry.quarry.toString());
|
28
28
|
if (!primaryQuarryAccount)
|
29
29
|
return;
|
30
|
+
let minerAccount;
|
30
31
|
if ((0, helpers_1.isMinerAccount)(account)) {
|
32
|
+
minerAccount = account;
|
31
33
|
rewardsTokenInfo.push(primaryRewarder.rewardsTokenInfo);
|
32
34
|
rewardsBalance.push((0, getClaimableRewards_1.getClaimableRewards)(primaryQuarryAccount, account));
|
33
35
|
}
|
34
36
|
else {
|
35
|
-
|
37
|
+
minerAccount = replicaMinerAccounts[i].find((a) => a.quarry === primaryQuarryAccount.pubkey.toString());
|
36
38
|
if (!minerAccount)
|
37
39
|
return;
|
38
40
|
rewardsTokenInfo.push(primaryRewarder.rewardsTokenInfo);
|
@@ -55,6 +57,10 @@ const calculatePositions = (mergeMinerAccounts, minerAccounts, replicaMinerAccou
|
|
55
57
|
});
|
56
58
|
}
|
57
59
|
positions.push({
|
60
|
+
ref: minerAccount.pubkey.toString(),
|
61
|
+
sourceRefs: [
|
62
|
+
{ name: 'Pool', address: primaryQuarryAccount.pubkey.toString() },
|
63
|
+
],
|
58
64
|
primaryRewarder: {
|
59
65
|
slug: primaryRewarder.slug,
|
60
66
|
name: (_a = primaryRewarder.info) === null || _a === void 0 ? void 0 : _a.name,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"calculatePositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/calculatePositions.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAW5C,uCAA0D;AAC1D,+DAA4D;AAErD,MAAM,kBAAkB,GAAG,CAChC,kBAA+C,EAC/C,aAAqC,EACrC,oBAA8C,EAC9C,YAAwB,EACxB,cAA2C,EAC3C,KAAa,EACb,EAAE;IACF,MAAM,SAAS,GAAe,EAAE,CAAC;IAEjC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,YAAY,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAErE,CAAC,GAAG,kBAAkB,EAAE,GAAG,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE;;QAC/D,IAAI,CAAC,OAAO;YAAE,OAAO;QAErB,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CACtC,IAAA,wBAAc,EAAC,OAAO,CAAC;YACrB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;YACvD,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAClD,CAAC;QACF,IAAI,CAAC,SAAS;YAAE,OAAO;QAEvB,MAAM,eAAe,GAAG,YAAY,CAAC,IAAI,CACvC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,CACpD,CAAC;QACF,IAAI,CAAC,eAAe;YAAE,OAAO;QAE7B,MAAM,aAAa,GAAG,eAAe,CAAC,QAAQ,CAAC,IAAI,CACjD,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,MAAM,CACvD,CAAC;QACF,IAAI,CAAC,aAAa;YAAE,OAAO;QAE3B,MAAM,cAAc,GAAgB,EAAE,CAAC;QACvC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,oBAAoB,GAAG,cAAc,CAAC,IAAI,CAC9C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,CAC/D,CAAC;QACF,IAAI,CAAC,oBAAoB;YAAE,OAAO;QAElC,IAAI,IAAA,wBAAc,EAAC,OAAO,CAAC,EAAE,CAAC;YAC5B,gBAAgB,CAAC,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC;YACxD,cAAc,CAAC,IAAI,CAAC,IAAA,yCAAmB,EAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAAC;QAC1E,CAAC;aAAM,CAAC;YACN,
|
1
|
+
{"version":3,"file":"calculatePositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/calculatePositions.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAW5C,uCAA0D;AAC1D,+DAA4D;AAErD,MAAM,kBAAkB,GAAG,CAChC,kBAA+C,EAC/C,aAAqC,EACrC,oBAA8C,EAC9C,YAAwB,EACxB,cAA2C,EAC3C,KAAa,EACb,EAAE;IACF,MAAM,SAAS,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,IAAI;qBACZ;oBACD,QAAQ,EAAE,eAAe,CAAC,OAAO;iBAClC,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CACF,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,iBAAiB,GAAG,IAAA,+BAAc,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3E,MAAM,KAAK,GAAG,WAAW,CAAC;QAE1B,IAAI,iBAAiB,CAAC;QAEtB,QAAQ,eAAe,CAAC,IAAI,EAAE,CAAC;YAC7B,KAAK,OAAO;gBACV,iBAAiB,GAAG,sBAAkB,CAAC;gBACvC,MAAM;YACR,KAAK,OAAO;gBACV,iBAAiB,GAAG,sBAAe,CAAC;gBACpC,MAAM;YACR;gBACE,iBAAiB,GAAG,sBAAU,CAAC;QACnC,CAAC;QAED,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,iBAAiB;YAC7B,IAAI,EAAE,qCAAoB,CAAC,SAAS;YACpC,KAAK;YACL,IAAI,EACF,iBAAiB,KAAK,sBAAU,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI;YACzE,IAAI,EAAE;gBACJ,WAAW,EAAE;oBACX;wBACE,MAAM;wBACN,WAAW;wBACX,YAAY;wBACZ,iBAAiB;wBACjB,KAAK;wBACL,MAAM,EAAE,EAAE;
|
1
|
+
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,gEAAqC;A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S,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
3
|
import { PublicKey } from '@solana/web3.js';
|
4
|
+
import { SourceRef } from '@sonarwatch/portfolio-core';
|
4
5
|
import BigNumber from 'bignumber.js';
|
5
6
|
export type TokenInfo = {
|
6
7
|
decimals: number;
|
@@ -86,6 +87,8 @@ export type Redeemer = {
|
|
86
87
|
redemptionMint: string;
|
87
88
|
};
|
88
89
|
export type Position = {
|
90
|
+
ref: string;
|
91
|
+
sourceRefs: SourceRef[];
|
89
92
|
primaryRewarder: {
|
90
93
|
slug: string;
|
91
94
|
name?: string;
|
@@ -45,6 +45,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
45
45
|
if (marginPosition.balance !== 0) {
|
46
46
|
const element = elementRegistry.addElementMultiple({
|
47
47
|
label: 'Margin',
|
48
|
+
link: 'https://app.rate-x.io/trade',
|
48
49
|
ref: user.pubkey,
|
49
50
|
});
|
50
51
|
element.addAsset({
|
@@ -69,6 +70,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
69
70
|
const o = (0, tokenPricesFromSqrt_1.sqrtPriceX64ToPrice)(new bignumber_js_1.default(ammpool.pool.sqrtPrice), 9, 9);
|
70
71
|
const element = elementRegistry.addElementMultiple({
|
71
72
|
label: 'LiquidityPool',
|
73
|
+
link: 'https://app.rate-x.io/liquidity',
|
72
74
|
ref: lpData.pubkey,
|
73
75
|
sourceRefs: [
|
74
76
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/ratex/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAq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IAAA,yCAAmB,EAC3B,IAAI,sBAAS,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EACrC,CAAC,EACD,CAAC,CACF,CAAC;gBAEF,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;oBACjD,KAAK,EAAE,eAAe;oBACtB,GAAG,EAAE,MAAM,CAAC,MAAM;oBAClB,UAAU,EAAE;wBACV;4BACE,IAAI,EAAE,MAAM;4BACZ,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;yBACnC;qBACF;iBACF,CAAC,CAAC;gBACH,OAAO,CAAC,QAAQ,CAAC;oBACf,OAAO,EAAE,OAAO,CAAC,IAAI;oBACrB,MAAM,EAAE,eAAe;yBACpB,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;yBACnB,IAAI,CAAC,gBAAgB,CAAC;yBACtB,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;oBAC1B,cAAc,EAAE,IAAI;iBACrB,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,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,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
1
|
+
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/ratex/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAA2D;AAE3D,gFAA6E;AAC7E,kEAA+D;AAE/D,wFAAyF;AACzF,uCAKmB;AACnB,8EAA2E;AAE3E,MAAM,YAAY,GAAG,IAAI,6BAAa,CAAY,4BAAgB,EAAE;IAClE,MAAM,EAAE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