@sonarwatch/portfolio-plugins 0.14.128 → 0.14.129
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 +2124 -2120
- package/README.md +3 -3
- 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/balancer/helpers/pools.js +21 -21
- 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 +5 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/limitFetcher.js +2 -0
- package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/valueAverageFetcher.js +1 -0
- 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/sushiswap/helpers.js +24 -24
- 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/uniswap-v2/helpers.js +22 -22
- 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/airdropFetcher.js +14 -14
- package/src/plugins/zeta/depositsFetcher.js +5 -1
- package/src/plugins/zeta/depositsFetcher.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"realmsDepositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/realmsDepositsFetcher.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"realmsDepositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/realmsDepositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAG5C,2CAAyC;AACzC,iDAAsD;AACtD,+CAG4B;AAC5B,6CAA2D;AAC3D,uCAAwC;AACxC,uCAAwD;AAExD,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,OAAO,CAAY,MAAM,EAAE;QACvD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IAEH,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAEzD,MAAM,cAAc,GAAG,SAAS,CAAC,WAAW,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AC;oBACtB,OAAO,EAAE,IAAI;oBACb,MAAM,EAAE,OAAO,CAAC,qBAAqB;oBACrC,GAAG,EAAE,YAAY,CAAC,MAAM,CAAC,QAAQ,EAAE;oBACnC,UAAU,EAAE;wBACV,WAAW;qBACZ;oBACD,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC;iBAC3D,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,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"}
|
@@ -10,17 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
10
10
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
11
11
|
});
|
12
12
|
};
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
-
};
|
16
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
14
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
18
15
|
const clients_1 = require("../../utils/clients");
|
19
16
|
const constants_1 = require("./constants");
|
20
17
|
const solana_1 = require("../../utils/solana");
|
21
|
-
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
22
18
|
const struct_1 = require("../meteora/struct");
|
23
19
|
const constants_2 = require("../meteora/constants");
|
20
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
24
21
|
const slotTtl = 30000;
|
25
22
|
let slot = null;
|
26
23
|
let slotUpdate = 0;
|
@@ -32,7 +29,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
32
29
|
networkId: portfolio_core_1.NetworkId.solana,
|
33
30
|
});
|
34
31
|
if (!vaults)
|
35
|
-
|
32
|
+
throw new Error('No vaults cached');
|
36
33
|
if (!slot || Date.now() - slotTtl > slotUpdate) {
|
37
34
|
slot = yield client.getSlot();
|
38
35
|
slotUpdate = Date.now();
|
@@ -56,15 +53,17 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
56
53
|
return [v.baseMint, v.quoteMint];
|
57
54
|
})
|
58
55
|
.flat(), portfolio_core_1.NetworkId.solana);
|
56
|
+
const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
57
|
+
const vestingElement = registry.addElementMultiple({
|
58
|
+
label: 'Vesting',
|
59
|
+
link: 'https://debridge.foundation/lfg',
|
60
|
+
});
|
59
61
|
const assets = [];
|
60
62
|
for (const escrow of accounts) {
|
61
63
|
const vault = vaults[escrow.dlmmVault.toString()];
|
62
64
|
if (!vault)
|
63
65
|
continue;
|
64
|
-
const
|
65
|
-
tokenPrices.get(vault.quoteMint),
|
66
|
-
tokenPrices.get(vault.baseMint),
|
67
|
-
];
|
66
|
+
const quoteTokenPrice = tokenPrices.get(vault.quoteMint);
|
68
67
|
if (!quoteTokenPrice)
|
69
68
|
continue;
|
70
69
|
const totalTokenEligible = escrow.totalDeposit
|
@@ -73,7 +72,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
73
72
|
const remainingClaimableTokens = totalTokenEligible.minus(escrow.claimedToken.dividedBy(Math.pow(10, constants_1.dbrDecimals)));
|
74
73
|
if (remainingClaimableTokens.isLessThanOrEqualTo(0))
|
75
74
|
continue;
|
76
|
-
|
75
|
+
vestingElement.addAsset({
|
76
|
+
address: vault.baseMint,
|
77
|
+
amount: remainingClaimableTokens,
|
78
|
+
alreadyShifted: true,
|
79
|
+
ref: escrow.pubkey,
|
80
|
+
sourceRefs: [{ name: 'Vault', address: vault.pubkey }],
|
81
|
+
attributes: { lockedUntil: 1744876800000 },
|
82
|
+
});
|
77
83
|
}
|
78
84
|
if (assets.length === 0)
|
79
85
|
return [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB
|
1
|
+
{"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;AAEnB,+DAKoC;AAGpC,iDAAsD;AACtD,2CAA0E;AAC1E,+CAA8D;AAC9D,8CAAiD;AAEjD,oDAAqD;AACrD,gFAA6E;AAE7E,MAAM,OAAO,GAAG,KAAK,CAAC;AACtB,IAAI,IAAI,GAAkB,IAAI,CAAC;AAC/B,IAAI,UAAU,GAAG,CAAC,CAAC;AACnB,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAAmB,yBAAa,EAAE;QAClE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAEjD,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,GAAG,UAAU,EAAE,CAAC;QAC/C,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QAC9B,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC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AAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -29,11 +29,18 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
29
29
|
if (!lockupAccounts)
|
30
30
|
return [];
|
31
31
|
const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
32
|
-
const element = registry.addElementMultiple({
|
32
|
+
const element = registry.addElementMultiple({
|
33
|
+
label: 'Staked',
|
34
|
+
link: 'https://staking.defiland.app/',
|
35
|
+
});
|
33
36
|
for (const lockupAccount of lockupAccounts) {
|
34
37
|
element.addAsset({
|
35
38
|
address: constants_1.dflMint,
|
36
39
|
amount: lockupAccount.stakedTokenBalance,
|
40
|
+
ref: lockupAccount.pubkey,
|
41
|
+
sourceRefs: [
|
42
|
+
{ name: 'Pool', address: lockupAccount.poolAddress.toString() },
|
43
|
+
],
|
37
44
|
});
|
38
45
|
}
|
39
46
|
return registry.getElements(cache);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defiland/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA8D;AAC9D,iDAAsD;AACtD,uCAA4C;AAC5C,gFAA6E;AAC7E,+CAA8D;AAE9D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,MAAM,IAAA,iCAAwB,EACnD,MAAM,EACN,yBAAe,EACf,sBAAU,EACV;QACE,EAAE,QAAQ,EAAE,yBAAe,CAAC,QAAQ,EAAE;QACtC;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,KAAK;aACb;SACF;KACF,CACF,CAAC;IACF,IAAI,CAAC,cAAc;QAAE,OAAO,EAAE,CAAC;IAE/B,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC,
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defiland/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA8D;AAC9D,iDAAsD;AACtD,uCAA4C;AAC5C,gFAA6E;AAC7E,+CAA8D;AAE9D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,MAAM,IAAA,iCAAwB,EACnD,MAAM,EACN,yBAAe,EACf,sBAAU,EACV;QACE,EAAE,QAAQ,EAAE,yBAAe,CAAC,QAAQ,EAAE;QACtC;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,KAAK;aACb;SACF;KACF,CACF,CAAC;IACF,IAAI,CAAC,cAAc;QAAE,OAAO,EAAE,CAAC;IAE/B,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC;QAC1C,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,+BAA+B;KACtC,CAAC,CAAC;IAEH,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,mBAAO;YAChB,MAAM,EAAE,aAAa,CAAC,kBAAkB;YACxC,GAAG,EAAE,aAAa,CAAC,MAAM;YACzB,UAAU,EAAE;gBACV,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE;aAChE;SACF,CAAC,CAAC;IACL,CAAC;IACD,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,6 +44,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
44
44
|
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
45
45
|
const element = elementRegistry.addElementBorrowlend({
|
46
46
|
label: 'Lending',
|
47
|
+
link: 'https://defituna.com/lending',
|
47
48
|
});
|
48
49
|
accounts.forEach((account) => {
|
49
50
|
const pool = pools.find((p) => p.mint.toString() === account.poolMint.toString());
|
@@ -54,6 +55,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
54
55
|
amount: account.depositedShares
|
55
56
|
.multipliedBy(pool.depositedFunds)
|
56
57
|
.dividedBy(pool.depositedShares),
|
58
|
+
ref: account.pubkey,
|
59
|
+
sourceRefs: [{ name: 'Lending Market', address: pool.pubkey.toString() }],
|
57
60
|
});
|
58
61
|
element.addSuppliedYield([
|
59
62
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AAErC,2CAAqE;AAErE,iDAAsD;AACtD,+CAA8D;AAC9D,gFAA6E;AAC7E,uCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,uBAAa,EACb,2BAAe,EACf;QACE;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,aAAa;aACrB;SACF;QACD;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,KAAK;aACb;SACF;QACD;YACE,QAAQ,EAAE,GAAG;SACd;KACF,CACF,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,KAAK,GAAG,MAAM,qBAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAE7C,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;
|
1
|
+
{"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,gEAAqC;AAErC,2CAAqE;AAErE,iDAAsD;AACtD,+CAA8D;AAC9D,gFAA6E;AAC7E,uCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,uBAAa,EACb,2BAAe,EACf;QACE;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,aAAa;aACrB;SACF;QACD;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,KAAK;aACb;SACF;QACD;YACE,QAAQ,EAAE,GAAG;SACd;KACF,CACF,CAAC;IAEF,IAAI,QAAQ,CAAC,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EH,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"}
|
@@ -57,11 +57,17 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
57
57
|
if (!pool)
|
58
58
|
return;
|
59
59
|
const lendingPoolA = lendingPools.find((p) => p.mint.toString() === account.mint_a.toString());
|
60
|
-
const lendingPoolB = lendingPools.find((p) => p.mint.toString() === account.
|
60
|
+
const lendingPoolB = lendingPools.find((p) => p.mint.toString() === account.mint_b.toString());
|
61
61
|
if (!lendingPoolA || !lendingPoolB)
|
62
62
|
return;
|
63
63
|
const element = elementRegistry.addElementBorrowlend({
|
64
64
|
label: 'LiquidityPool',
|
65
|
+
ref: account.pubkey,
|
66
|
+
link: 'https://defituna.com/trade',
|
67
|
+
sourceRefs: [
|
68
|
+
{ name: 'Lending Market', address: lendingPoolA.pubkey.toString() },
|
69
|
+
{ name: 'Lending Market', address: lendingPoolB.pubkey.toString() },
|
70
|
+
],
|
65
71
|
});
|
66
72
|
const { tokenAmountA, tokenAmountB } = (0, tokenAmountFromLiquidity_1.getTokenAmountsFromLiquidity)(new bignumber_js_1.default(account.liquidity), Number(pool.tickCurrentIndex), Number(account.tick_lower_index), Number(account.tick_upper_index), true);
|
67
73
|
element.addSuppliedAsset({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAAqE;AAErE,iDAAsD;AACtD,+CAA6E;AAC7E,gFAA6E;AAC7E,uCAAmE;AACnE,iDAAoD;AAEpD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CAAC;QACF,IAAI,CAAC,IAAI;YAAE,OAAO;QAClB,MAAM,YAAY,GAAG,YAAY,CAAC,IAAI,CACpC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CACvD,CAAC;QACF,MAAM,YAAY,GAAG,YAAY,CAAC,IAAI,CACpC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CACvD,CAAC;QACF,IAAI,CAAC,YAAY,IAAI,CAAC,YAAY;YAAE,OAAO;QAE3C,MAAM,OAAO,GAAG,eAAe,CAAC,oBAAoB,CAAC;YACnD,KAAK,EAAE,eAAe;
|
1
|
+
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAAqE;AAErE,iDAAsD;AACtD,+CAA6E;AAC7E,gFAA6E;AAC7E,uCAAmE;AACnE,iDAAoD;AAEpD,wFAAyF;AAEzF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,4BAAkB,EAClB,2BAAe,EACf;QACE;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,aAAa;aACrB;SACF;QACD;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,KAAK;aACb;SACF;QACD;YACE,QAAQ,EAAE,GAAG;SACd;KACF,CACF,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO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AAO,CAAC,MAAM;YACvB,MAAM,EAAE,OAAO,CAAC,aAAa;iBAC1B,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC;iBACxC,SAAS,CAAC,YAAY,CAAC,cAAc,CAAC;SAC1C,CAAC,CAAC;QAEH,OAAO,CAAC,gBAAgB,CAAC;YACvB,OAAO,EAAE,OAAO,CAAC,MAAM;YACvB,MAAM,EAAE,OAAO,CAAC,aAAa;iBAC1B,YAAY,CAAC,YAAY,CAAC,aAAa,CAAC;iBACxC,SAAS,CAAC,YAAY,CAAC,cAAc,CAAC;SAC1C,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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/structs.ts"],"names":[],"mappings":";;;AAEA,oDAMmC;AACnC,kEAA6D;AAC7D,+CAAqD;AAYxC,QAAA,aAAa,GAAG,IAAI,iBAAU,CACzC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,UAAG,CAAC;IAChB,CAAC,MAAM,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACtC,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,UAAU,EAAE,uBAAS,CAAC;IACvB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,iBAAiB,EAAE,YAAG,CAAC;CACzB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAe,CAC1B,CAAC;
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/defituna/structs.ts"],"names":[],"mappings":";;;AAEA,oDAMmC;AACnC,kEAA6D;AAC7D,+CAAqD;AAYxC,QAAA,aAAa,GAAG,IAAI,iBAAU,CACzC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,UAAG,CAAC;IAChB,CAAC,MAAM,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACtC,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,UAAU,EAAE,uBAAS,CAAC;IACvB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,iBAAiB,EAAE,YAAG,CAAC;CACzB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAe,CAC1B,CAAC;AAoBW,QAAA,WAAW,GAAG,IAAI,iBAAU,CACvC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,MAAM,EAAE,IAAA,4BAAqB,EAAC,UAAG,EAAE,CAAC,CAAC,CAAC;IACvC,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,qBAAqB,EAAE,YAAG,CAAC;IAC5B,CAAC,aAAa,EAAE,YAAG,CAAC;CACrB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAa,CACxB,CAAC;AAEF,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,+DAAM,CAAA;IACN,uEAAU,CAAA;IACV,uFAAkB,CAAA;AACpB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AA0BY,QAAA,kBAAkB,GAAG,IAAI,iBAAU,CAC9C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,UAAG,CAAC;IAChB,CAAC,MAAM,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACtC,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,eAAe,EAAE,uBAAS,CAAC;IAC5B,CAAC,WAAW,EAAE,aAAI,CAAC;IACnB,CAAC,kBAAkB,EAAE,UAAG,CAAC;IACzB,CAAC,kBAAkB,EAAE,UAAG,CAAC;IACzB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,kBAAkB,EAAE,UAAG,CAAC;IACzB,CAAC,sBAAsB,EAAE,UAAG,CAAC;IAC7B,CAAC,wBAAwB,EAAE,UAAG,CAAC;IAC/B,CAAC,OAAO,EAAE,SAAE,CAAC;CACd,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAC/B,CAAC"}
|
@@ -6,5 +6,6 @@ import { PublicKey } from '@solana/web3.js';
|
|
6
6
|
export declare const platformId = "divvy";
|
7
7
|
export declare const platform: Platform;
|
8
8
|
export declare const divvyProgram: PublicKey;
|
9
|
+
export declare const dvyMint = "8fdi18UQNGg8mFEzjf79GUkzTg9YHSeojzCcarVxCX2y";
|
9
10
|
export declare const divvyIdlItem: IdlItem;
|
10
11
|
export declare const houseCacheKey = "houses";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.houseCacheKey = exports.divvyIdlItem = exports.divvyProgram = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.houseCacheKey = exports.divvyIdlItem = exports.dvyMint = exports.divvyProgram = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
const idl_1 = require("./idl");
|
6
6
|
exports.platformId = 'divvy';
|
@@ -12,6 +12,7 @@ exports.platform = {
|
|
12
12
|
website: 'https://app.divvy.bet/',
|
13
13
|
};
|
14
14
|
exports.divvyProgram = new web3_js_1.PublicKey('dvyFwAPniptQNb1ey4eM12L8iLHrzdiDsPPDndd6xAR');
|
15
|
+
exports.dvyMint = '8fdi18UQNGg8mFEzjf79GUkzTg9YHSeojzCcarVxCX2y';
|
15
16
|
exports.divvyIdlItem = {
|
16
17
|
programId: exports.divvyProgram.toString(),
|
17
18
|
idl: idl_1.DivvyIdl,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,+BAAiC;AAEpB,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,wBAAwB;CAClC,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,+BAAiC;AAEpB,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,wBAAwB;CAClC,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AACW,QAAA,OAAO,GAAG,8CAA8C,CAAC;AAEzD,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,oBAAY,CAAC,QAAQ,EAAE;IAClC,GAAG,EAAE,cAAQ;IACb,OAAO,EAAE,QAAQ;CACP,CAAC;AAEA,QAAA,aAAa,GAAG,QAAQ,CAAC"}
|
@@ -38,6 +38,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
38
38
|
const element = elementRegistry.addElementMultiple({
|
39
39
|
label: 'Deposit',
|
40
40
|
name: 'House Pool',
|
41
|
+
link: 'https://app.divvy.bet/housepool/?house=SOL',
|
41
42
|
});
|
42
43
|
accounts.forEach((account) => {
|
43
44
|
const house = houses.get(account.house);
|
@@ -46,6 +47,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
46
47
|
element.addAsset({
|
47
48
|
address: house.currency,
|
48
49
|
amount: account.amount,
|
50
|
+
ref: account.pubkey,
|
51
|
+
sourceRefs: [{ name: 'Pool', address: house.pubkey.toString() }],
|
49
52
|
});
|
50
53
|
});
|
51
54
|
return elementRegistry.getElements(cache);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"housePoolFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/housePoolFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAsE;AAEtE,iDAAsD;AAEtD,+CAAkE;AAClE,kEAA+D;AAC/D,4DAAyD;AACzD,gFAA6E;AAE7E,MAAM,UAAU,GAAG,IAAI,6BAAa,CAClC,yBAAa,EACb;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,IAAI,EAAE,EAAE,QAAQ,CAAC,CACzC,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,qCAA4B,EACjD,UAAU,EACV,wBAAY,EACZ;QACE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE;QAC/C;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAE/C,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;QAChB,IAAI,EAAE,YAAY;
|
1
|
+
{"version":3,"file":"housePoolFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/housePoolFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAsE;AAEtE,iDAAsD;AAEtD,+CAAkE;AAClE,kEAA+D;AAC/D,4DAAyD;AACzD,gFAA6E;AAE7E,MAAM,UAAU,GAAG,IAAI,6BAAa,CAClC,yBAAa,EACb;IACE,MAAM,EAAE,sBAAU;IAClB,S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AE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;SACjE,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,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -32,11 +32,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
32
32
|
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
33
33
|
const element = elementRegistry.addElementMultiple({
|
34
34
|
label: 'Staked',
|
35
|
+
link: 'https://app.divvy.bet/staking/?house=SOL',
|
35
36
|
});
|
36
37
|
accounts.forEach((account) => {
|
37
38
|
element.addAsset({
|
38
|
-
address:
|
39
|
+
address: constants_1.dvyMint,
|
39
40
|
amount: account.amount,
|
41
|
+
ref: account.pubkey,
|
40
42
|
});
|
41
43
|
});
|
42
44
|
return elementRegistry.getElements(cache);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAgE;AAEhE,iDAAsD;AAEtD,+CAAkE;AAClE,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,qCAA4B,EACjD,UAAU,EACV,wBAAY,EACZ;QACE;YACE,QAAQ,EAAE,EAAE;SACb;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IAEF,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,QAAQ;QACf,IAAI,EAAE,0CAA0C;KACjD,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,mBAAO;YAChB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,GAAG,EAAE,OAAO,CAAC,MAAM;SACpB,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"}
|
@@ -59,6 +59,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
59
59
|
const elementInsurance = elementRegistry.addElementMultiple({
|
60
60
|
label: 'Staked',
|
61
61
|
name: 'Insurance Fund',
|
62
|
+
link: 'https://app.drift.trade/vaults/insurance-fund-vaults',
|
62
63
|
});
|
63
64
|
insuranceAccounts.forEach((account, i) => {
|
64
65
|
if (!account || account.ifShares.isZero())
|
@@ -75,6 +76,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
75
76
|
amount: account.ifShares
|
76
77
|
.dividedBy(insuranceFund.totalShares)
|
77
78
|
.times(vault.amount),
|
79
|
+
ref: account.pubkey,
|
80
|
+
sourceRefs: [
|
81
|
+
{ name: 'Vault', address: insuranceFund.vault.toString() },
|
82
|
+
{ name: 'Market', address: spotMarket.pubkey.toString() },
|
83
|
+
],
|
78
84
|
});
|
79
85
|
});
|
80
86
|
// Perps part
|
@@ -105,6 +111,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
105
111
|
const element = elementRegistry.addElementBorrowlend({
|
106
112
|
label: 'Lending',
|
107
113
|
name: (0, solana_1.u8ArrayToString)(userAccount.name),
|
114
|
+
ref: userAccount.pubkey,
|
115
|
+
link: 'https://app.drift.trade/',
|
108
116
|
});
|
109
117
|
for (const perpPosition of userAccount.perpPositions) {
|
110
118
|
if (perpPosition.baseAssetAmount.isZero())
|
@@ -132,6 +140,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
132
140
|
attributes: {
|
133
141
|
tags: [side],
|
134
142
|
},
|
143
|
+
sourceRefs: [{ name: 'Lending Market', address: perpMarketAddress }],
|
135
144
|
});
|
136
145
|
}
|
137
146
|
// Each account has up to 8 SpotPositions
|
@@ -159,6 +168,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
159
168
|
element.addSuppliedAsset({
|
160
169
|
address: spotMarket.mint,
|
161
170
|
amount: tokenAmount,
|
171
|
+
sourceRefs: [
|
172
|
+
{ name: 'Lending Market', address: spotMarket.pubkey.toString() },
|
173
|
+
],
|
162
174
|
});
|
163
175
|
element.addSuppliedYield([
|
164
176
|
{
|
@@ -171,6 +183,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
171
183
|
element.addBorrowedAsset({
|
172
184
|
address: spotMarket.mint,
|
173
185
|
amount: tokenAmount.abs(),
|
186
|
+
sourceRefs: [
|
187
|
+
{ name: 'Lending Market', address: spotMarket.pubkey.toString() },
|
188
|
+
],
|
174
189
|
});
|
175
190
|
element.addSuppliedYield([
|
176
191
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAA+E;AAC/E,gEAAqC;AACrC,6CAA4C;AAG5C,2CAKqB;AACrB,qCAKkB;AAClB,uCAMmB;AAEnB,+CAM4B;AAC5B,iDAAsD;AACtD,qDAGgC;AAChC,uDAAqE;AACrE,+CAAwD;AACxD,iEAA8D;AAC9D,+DAA4D;AAC5D,uEAAoE;AACpE,gFAA6E;AAC7E,kEAA+D;AAElD,QAAA,eAAe,GAAG,IAAI,6BAAa,CAC9C,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,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,MAAM,gBAAgB,GAAG,MAAM,uBAAe,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,iBAAiB,GAAoC,IAAI,GAAG,EAAE,CAAC;IACrE,MAAM,mCAAmC,GAAgB,EAAE,CAAC;IAC5D,MAAM,oBAAoB,GAAgB,EAAE,CAAC;IAC7C,KAAK,MAAM,cAAc,IAAI,gBAAgB,IAAI,EAAE,EAAE,CAAC;QACpD,mCAAmC,CAAC,cAAc,CAAC,WAAW,CAAC;YAC7D,IAAA,mDAAyC,EACvC,wBAAY,EACZ,IAAI,mBAAS,CAAC,KAAK,CAAC,EACpB,cAAc,CAAC,WAAW,CAC3B,CAAC;QACJ,oBAAoB,CAAC,IAAI,CACvB,IAAI,mBAAS,CAAC,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,CAClD,CAAC;QACF,iBAAiB,CAAC,GAAG,CAAC,cAAc,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACpE,IAAA,sCAA6B,EAC3B,MAAM,EACN,iCAAwB,EACxB,mCAAmC,CACpC;QACD,IAAA,sCAA6B,EAC3B,MAAM,EACN,2BAAkB,EAClB,oBAAoB,CACrB;KACF,CAAC,CAAC;IAEH,MAAM,0BAA0B,GAA8B,IAAI,GAAG,EAAE,CAAC;IACxE,sBAAsB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACrC,IAAI,GAAG;YAAE,0BAA0B,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,GAAG,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;IAEH,YAAY;IACZ,MAAM,gBAAgB,GAAG,eAAe,CAAC,kBAAkB,CAAC;QAC1D,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,gBAAgB;
|
1
|
+
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAA+E;AAC/E,gEAAqC;AACrC,6CAA4C;AAG5C,2CAKqB;AACrB,qCAKkB;AAClB,uCAMmB;AAEnB,+CAM4B;AAC5B,iDAAsD;AACtD,qDAGgC;AAChC,uDAAqE;AACrE,+CAAwD;AACxD,iEAA8D;AAC9D,+DAA4D;AAC5D,uEAAoE;AACpE,gFAA6E;AAC7E,kEAA+D;AAElD,QAAA,eAAe,GAAG,IAAI,6BAAa,CAC9C,0BAAc,E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|
@@ -46,7 +46,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
46
46
|
label: 'Deposit',
|
47
47
|
platformId,
|
48
48
|
name,
|
49
|
-
//
|
49
|
+
// Link can fail for some vaults
|
50
|
+
link: `https://app.drift.trade/vaults/${vaultInfo.pubkey.toString()}`,
|
50
51
|
sourceRefs: [
|
51
52
|
{
|
52
53
|
name: 'Vault',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,kDAAmE;AACnE,2CAMqB;AACrB,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAiD;AACjD,uCAAiD;AAEjD,gFAA6E;AAC7E,4DAAyD;AAE5C,QAAA,MAAM,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC7B,QAAA,SAAS,GAAG,CAAC,GAAG,cAAM,CAAC;AAEpC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,CACtB,MAAM,OAAO,CAAC,GAAG,CACf,4BAAgB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CACjC,IAAA,iCAAwB,EACtB,MAAM,EACN,8BAAoB,EACpB,SAAS,EACT,IAAA,8BAAoB,EAAC,KAAK,CAAC,CAC5B,CACF,CACF,CACF,CAAC,IAAI,EAAE,CAAC;IAET,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE5C,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,QAAQ,CACrC,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAC1D,EAAE,MAAM,EAAE,wBAAY,EAAE,SAAS,EAAE,0BAAS,CAAC,MAAM,EAAE,CACtD,CAAC;IAEF,MAAM,SAAS,GAA2B,IAAA,uBAAU,EAClD,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAgB,EACxD,QAAQ,CACT,CAAC;IAEF,MAAM,eAAe,GAAG,IAAI,iCAAe,CACzC,0BAAS,CAAC,MAAM,EAChB,sBAAe,CAChB,CAAC;IAEF,KAAK,MAAM,cAAc,IAAI,eAAe,EAAE,CAAC;QAC7C,IACE,cAAc,CAAC,mBAAmB,CAAC,KAAK,CAAC,MAAM,EAAE;YACjD,cAAc,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC;YAEjD,SAAS;QAEX,MAAM,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QACjE,IAAI,CAAC,SAAS;YAAE,SAAS;QAEzB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;QAE7C,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;YACjD,KAAK,EAAE,SAAS;YAChB,UAAU;YACV,IAAI;YACJ,
|
1
|
+
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,kDAAmE;AACnE,2CAMqB;AACrB,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAiD;AACjD,uCAAiD;AAEjD,gFAA6E;AAC7E,4DAAyD;AAE5C,QAAA,MAAM,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC7B,QAAA,SAAS,GAAG,CAAC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qB;IAC3C,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -45,6 +45,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
45
45
|
continue;
|
46
46
|
const element = elementRegistry.addElementMultiple({
|
47
47
|
label: 'Deposit',
|
48
|
+
ref: position.pubkey,
|
49
|
+
link: `https://elemental.fund/?address=${pool.pubkey.toString()}`,
|
50
|
+
sourceRefs: [{ name: 'Pool', address: pool.pubkey }],
|
48
51
|
});
|
49
52
|
element.addAsset({
|
50
53
|
address: pool.liquidity_mint,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAAwD;AAExD,iDAAsD;AACtD,+CAAmE;AACnE,gFAA6E;AAE7E,kEAA+D;AAC/D,uCAA2C;AAC3C,uCAA0D;AAE7C,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,UAAU,CAAC,CAAC;AAEnD,MAAM,SAAS,GAAG,IAAI,6BAAa,CAAe,yBAAa,EAAE;IAC/D,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7C,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,4BAAkB,EAAC,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAC5E,MAAM,SAAS,GAAG,MAAM,IAAA,sCAA6B,EACnD,UAAU,EACV,wBAAc,EACd,aAAa,CACd,CAAC;IACF,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QACjC,IAAI,CAAC,QAAQ;YAAE,SAAS;QAExB,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,IAAI;YAAE,SAAS;QAEpB,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;YACjD,KAAK,EAAE,SAAS;
|
1
|
+
{"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAAwD;AAExD,iDAAsD;AACtD,+CAAmE;AACnE,gFAA6E;AAE7E,kEAA+D;AAC/D,uCAA2C;AAC3C,uCAA0D;AAE7C,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,UAAU,CAAC,CAAC;AAEnD,MAAM,SAAS,GAAG,IAAI,6BAAa,CAAe,yBAAa,EAAE;IAC/D,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,KAAK,GAAG,MAAM,SAAS,CA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,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -63,6 +63,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
63
63
|
const openOffersElement = elementRegistry.addElementBorrowlend({
|
64
64
|
label: 'Lending',
|
65
65
|
name: 'Open Offers',
|
66
|
+
link: 'https://app.ensofi.xyz/contract/lend',
|
66
67
|
});
|
67
68
|
offersAsLender.forEach((offer) => {
|
68
69
|
if (!offer.status.created)
|
@@ -70,11 +71,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
70
71
|
openOffersElement.addSuppliedAsset({
|
71
72
|
address: offer.lendMintToken,
|
72
73
|
amount: offer.amount,
|
74
|
+
ref: offer.pubkey,
|
73
75
|
});
|
74
76
|
});
|
75
77
|
const lenderActiveElement = elementRegistry.addElementBorrowlend({
|
76
78
|
label: 'Lending',
|
77
79
|
name: 'Active Contracts',
|
80
|
+
link: 'https://app.ensofi.xyz/contract/lend',
|
78
81
|
});
|
79
82
|
loansAsLender.forEach((loan) => {
|
80
83
|
if (!loan.status.fundTransferred && !loan.status.liquidating)
|
@@ -87,6 +90,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
87
90
|
.plus(loan.duration)
|
88
91
|
.toNumber(),
|
89
92
|
},
|
93
|
+
ref: loan.pubkey,
|
90
94
|
});
|
91
95
|
});
|
92
96
|
loansAsBorrower.forEach((loan) => {
|
@@ -95,6 +99,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
95
99
|
const borrowerActiveElement = elementRegistry.addElementBorrowlend({
|
96
100
|
label: 'Lending',
|
97
101
|
name: 'Active Contract',
|
102
|
+
ref: loan.pubkey,
|
103
|
+
link: 'https://app.ensofi.xyz/contract/loan',
|
98
104
|
});
|
99
105
|
borrowerActiveElement.addSuppliedAsset({
|
100
106
|
address: loan.collateralMintToken,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solanaLoansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/ensofi/solanaLoansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,2CAAwD;AAExD,gFAA6E;AAC7E,iDAAsD;AACtD,+CAAkE;AAElE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,CAAC,aAAa,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACzE,IAAA,qCAA4B,EAAmB,UAAU,EAAE,yBAAa,EAAE;YACxE;gBACE,QAAQ,EAAE,GAAG;aACd;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,GAAG;iBACZ;aACF;SACF,CAAC;QACF,IAAA,qCAA4B,EAAmB,UAAU,EAAE,yBAAa,EAAE;YACxE;gBACE,QAAQ,EAAE,GAAG;aACd;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,GAAG;iBACZ;aACF;SACF,CAAC;QACF,IAAA,qCAA4B,EAAmB,UAAU,EAAE,yBAAa,EAAE;YACxE;gBACE,QAAQ,EAAE,GAAG;aACd;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,EAAE;iBACX;aACF;SACF,CAAC;KACH,CAAC,CAAC;IAEH,IACE,CAAC,eAAe,CAAC,MAAM;QACvB,CAAC,aAAa,CAAC,MAAM;QACrB,CAAC,cAAc,CAAC,MAAM;QAEtB,OAAO,EAAE,CAAC;IAEZ,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,MAAM,iBAAiB,GAAG,eAAe,CAAC,oBAAoB,CAAC;QAC7D,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,aAAa;
|
1
|
+
{"version":3,"file":"solanaLoansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/ensofi/solanaLoansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,2CAAwD;AAExD,gFAA6E;AAC7E,iDAAsD;AACtD,+CAAkE;AAElE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,CAAC,aAAa,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACzE,IAAA,qCAA4B,EAAmB,UAAU,EAAE,yBAAa,EAAE;YACxE;gBACE,QAAQ,EAAE,GAAG;aACd;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,GAAG;iBACZ;aACF;SACF,CAAC;QACF,IAAA,qCAA4B,EAAmB,UAAU,EAAE,yBAAa,EAAE;YACxE;gBACE,QAAQ,EAAE,GAAG;aACd;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,GAAG;iBACZ;aACF;SACF,CAAC;QACF,IAAA,qCAA4B,EAAmB,UAAU,EAAE,yBAAa,EAAE;YACxE;gBACE,QAAQ,EAAE,GAAG;aACd;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,EAAE;iBACX;aACF;SACF,CAAC;KACH,CAAC,CAAC;IAEH,IACE,CAAC,eAAe,CAAC,MAAM;QACvB,CAAC,aAAa,CAAC,MAAM;QACrB,CAAC,cAAc,CAAC,MAAM;QAEtB,OAAO,EAAE,CAAC;IAEZ,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM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AAI,CAAC,MAAM,CAAC,WAAW;YAAE,OAAO;QAErE,MAAM,qBAAqB,GAAG,eAAe,CAAC,oBAAoB,CAAC;YACjE,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,iBAAiB;YACvB,GAAG,EAAE,IAAI,CAAC,MAAM;YAChB,IAAI,EAAE,sCAAsC;SAC7C,CAAC,CAAC;QACH,qBAAqB,CAAC,gBAAgB,CAAC;YACrC,OAAO,EAAE,IAAI,CAAC,mBAAmB;YACjC,MAAM,EAAE,IAAI,CAAC,gBAAgB;SAC9B,CAAC,CAAC;QACH,qBAAqB,CAAC,gBAAgB,CAAC;YACrC,OAAO,EAAE,IAAI,CAAC,aAAa;YAC3B,MAAM,EAAE,IAAI,CAAC,YAAY;SAC1B,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,eAAe;IAChC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -38,6 +38,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
38
38
|
name: `${market.vault.platform} ${maturity.toLocaleString('en-US', {
|
39
39
|
month: 'short',
|
40
40
|
})} ${maturity.getDate()} ${maturity.getFullYear().toString()}`,
|
41
|
+
link: 'https://www.exponent.finance/liquidity',
|
41
42
|
});
|
42
43
|
const liquidity = element.addLiquidity({
|
43
44
|
sourceRefs: [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"liquidityFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/exponent/liquidityFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAiE;AAEjE,2CAA2E;AAE3E,gFAA6E;AAC7E,+CAA8D;AAC9D,iDAAsD;AACtD,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,CAAC,CAAC;QAE/C,SAAS,CAAC,QAAQ,CAAC;YACjB,GAAG;YACH,GAAG,EAAE,IAAA,yBAAQ,EAAC,GAAG,CAAC;SACnB,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"}
|
@@ -37,6 +37,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
37
37
|
name: `${market.vault.platform} ${maturity.toLocaleString('en-US', {
|
38
38
|
month: 'short',
|
39
39
|
})} ${maturity.getDate()} ${maturity.getFullYear().toString()}`,
|
40
|
+
link: 'https://www.exponent.finance/farm',
|
40
41
|
});
|
41
42
|
element.addAsset({
|
42
43
|
address: market.vault.mintAsset,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tradeFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/exponent/tradeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAA2E;AAE3E,gFAA6E;AAC7E,+CAA8D;AAC9D,iDAAsD;AACtD,uCAA6C;AAE7C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,0BAAgB,EAChB,+BAAmB,EACnB;QACE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE;QAC/C,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,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