@sonarwatch/portfolio-plugins 0.12.36 → 0.12.38
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1847 -1839
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/plugins/allbridge/constants.d.ts +0 -1
- package/src/plugins/allbridge/constants.js +1 -2
- package/src/plugins/allbridge/constants.js.map +1 -1
- package/src/plugins/allbridge/positionsFetcher.js +6 -2
- package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/banx/constants.d.ts +0 -1
- package/src/plugins/banx/constants.js +1 -2
- package/src/plugins/banx/constants.js.map +1 -1
- package/src/plugins/banx/idl.d.ts +15 -7
- package/src/plugins/banx/idl.js +199 -268
- package/src/plugins/banx/idl.js.map +1 -1
- package/src/plugins/banx/loansFetcher.js +19 -23
- package/src/plugins/banx/loansFetcher.js.map +1 -1
- package/src/plugins/banx/offersFetcher.js +10 -15
- package/src/plugins/banx/offersFetcher.js.map +1 -1
- package/src/plugins/citrus/collectionsJob.js.map +1 -1
- package/src/plugins/citrus/constants.d.ts +0 -1
- package/src/plugins/citrus/constants.js +1 -2
- package/src/plugins/citrus/constants.js.map +1 -1
- package/src/plugins/citrus/loansFetcher.js +14 -20
- package/src/plugins/citrus/loansFetcher.js.map +1 -1
- package/src/plugins/drift/constants.d.ts +1 -0
- package/src/plugins/drift/constants.js +2 -1
- package/src/plugins/drift/constants.js.map +1 -1
- package/src/plugins/drift/depositsFetcher.js +63 -1
- package/src/plugins/drift/depositsFetcher.js.map +1 -1
- package/src/plugins/drift/filters.d.ts +1 -0
- package/src/plugins/drift/filters.js +4 -1
- package/src/plugins/drift/filters.js.map +1 -1
- package/src/plugins/drift/index.js +2 -1
- package/src/plugins/drift/index.js.map +1 -1
- package/src/plugins/drift/perpHelpers/amm.d.ts +74 -0
- package/src/plugins/drift/perpHelpers/amm.js +567 -0
- package/src/plugins/drift/perpHelpers/amm.js.map +1 -0
- package/src/plugins/drift/perpHelpers/assert.d.ts +1 -0
- package/src/plugins/drift/perpHelpers/assert.js +10 -0
- package/src/plugins/drift/perpHelpers/assert.js.map +1 -0
- package/src/plugins/drift/perpHelpers/constants.d.ts +27 -0
- package/src/plugins/drift/perpHelpers/constants.js +35 -0
- package/src/plugins/drift/perpHelpers/constants.js.map +1 -0
- package/src/plugins/drift/perpHelpers/convert.d.ts +0 -0
- package/src/plugins/drift/perpHelpers/convert.js +2 -0
- package/src/plugins/drift/perpHelpers/convert.js.map +1 -0
- package/src/plugins/drift/perpHelpers/getOraclePrice.d.ts +4 -0
- package/src/plugins/drift/perpHelpers/getOraclePrice.js +61 -0
- package/src/plugins/drift/perpHelpers/getOraclePrice.js.map +1 -0
- package/src/plugins/drift/perpHelpers/getPerpMarket.d.ts +4 -0
- package/src/plugins/drift/perpHelpers/getPerpMarket.js +33 -0
- package/src/plugins/drift/perpHelpers/getPerpMarket.js.map +1 -0
- package/src/plugins/drift/perpHelpers/margin.d.ts +10 -0
- package/src/plugins/drift/perpHelpers/margin.js +82 -0
- package/src/plugins/drift/perpHelpers/margin.js.map +1 -0
- package/src/plugins/drift/perpHelpers/math.d.ts +4 -0
- package/src/plugins/drift/perpHelpers/math.js +29 -0
- package/src/plugins/drift/perpHelpers/math.js.map +1 -0
- package/src/plugins/drift/perpHelpers/oracle.d.ts +6 -0
- package/src/plugins/drift/perpHelpers/oracle.js +54 -0
- package/src/plugins/drift/perpHelpers/oracle.js.map +1 -0
- package/src/plugins/drift/perpHelpers/orders.d.ts +2 -0
- package/src/plugins/drift/perpHelpers/orders.js +9 -0
- package/src/plugins/drift/perpHelpers/orders.js.map +1 -0
- package/src/plugins/drift/perpHelpers/position.d.ts +44 -0
- package/src/plugins/drift/perpHelpers/position.js +184 -0
- package/src/plugins/drift/perpHelpers/position.js.map +1 -0
- package/src/plugins/drift/perpHelpers/prelaunchOracle.d.ts +3 -0
- package/src/plugins/drift/perpHelpers/prelaunchOracle.js +20 -0
- package/src/plugins/drift/perpHelpers/prelaunchOracle.js.map +1 -0
- package/src/plugins/drift/perpHelpers/pyth.d.ts +5 -0
- package/src/plugins/drift/perpHelpers/pyth.js +42 -0
- package/src/plugins/drift/perpHelpers/pyth.js.map +1 -0
- package/src/plugins/drift/perpHelpers/repeg.d.ts +14 -0
- package/src/plugins/drift/perpHelpers/repeg.js +162 -0
- package/src/plugins/drift/perpHelpers/repeg.js.map +1 -0
- package/src/plugins/drift/perpHelpers/switchboard.d.ts +3 -0
- package/src/plugins/drift/perpHelpers/switchboard.js +31 -0
- package/src/plugins/drift/perpHelpers/switchboard.js.map +1 -0
- package/src/plugins/drift/perpHelpers/types.d.ts +28 -0
- package/src/plugins/drift/perpHelpers/types.js +19 -0
- package/src/plugins/drift/perpHelpers/types.js.map +1 -0
- package/src/plugins/drift/prepMarketsJob.d.ts +3 -0
- package/src/plugins/drift/prepMarketsJob.js +38 -0
- package/src/plugins/drift/prepMarketsJob.js.map +1 -0
- package/src/plugins/drift/struct.d.ts +82 -76
- package/src/plugins/drift/struct.js +79 -74
- package/src/plugins/drift/struct.js.map +1 -1
- package/src/plugins/drift/types.d.ts +1 -0
- package/src/plugins/jupiter/exchange/constants.d.ts +1 -0
- package/src/plugins/jupiter/exchange/constants.js +2 -1
- package/src/plugins/jupiter/exchange/constants.js.map +1 -1
- package/src/plugins/jupiter/exchange/limitFetcher.js +9 -6
- package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/perpetualFetcher.js +3 -6
- package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/structs.d.ts +21 -0
- package/src/plugins/jupiter/exchange/structs.js +21 -1
- package/src/plugins/jupiter/exchange/structs.js.map +1 -1
- package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
- package/src/plugins/jupiter/helpers.d.ts +2 -2
- package/src/plugins/jupiter/helpers.js.map +1 -1
- package/src/plugins/rain/collectionsJob.js +6 -10
- package/src/plugins/rain/collectionsJob.js.map +1 -1
- package/src/plugins/rain/helpers.js +3 -1
- package/src/plugins/rain/helpers.js.map +1 -1
- package/src/plugins/rain/index.js +2 -1
- package/src/plugins/rain/index.js.map +1 -1
- package/src/plugins/rain/loansFetcher.js +60 -25
- package/src/plugins/rain/loansFetcher.js.map +1 -1
- package/src/plugins/rain/types.d.ts +3 -0
- package/src/plugins/sharky/constants.d.ts +0 -1
- package/src/plugins/sharky/constants.js +3 -4
- package/src/plugins/sharky/constants.js.map +1 -1
- package/src/plugins/sharky/loansFetcher.js +17 -20
- package/src/plugins/sharky/loansFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/misc/MemoizedCache.d.ts +12 -0
- package/src/utils/misc/MemoizedCache.js +35 -0
- package/src/utils/misc/MemoizedCache.js.map +1 -0
- package/src/utils/misc/arrayToMap.d.ts +1 -0
- package/src/utils/misc/arrayToMap.js +12 -0
- package/src/utils/misc/arrayToMap.js.map +1 -0
- package/src/utils/misc/pick.d.ts +2 -0
- package/src/utils/misc/pick.js +16 -0
- package/src/utils/misc/pick.js.map +1 -0
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js +8 -3
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js.map +1 -1
- package/src/plugins/allbridge/getPoolInfo.d.ts +0 -3
- package/src/plugins/allbridge/getPoolInfo.js +0 -28
- package/src/plugins/allbridge/getPoolInfo.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"idl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/idl.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE;QACR;YACE,IAAI,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
{"version":3,"file":"idl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/idl.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,2BAA2B;YACjC,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,4BAA4B;wBAClC,IAAI,EAAE;4BACJ,OAAO,EAAE,gCAAgC;yBAC1C;qBACF;oBACD;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,WAAW;qBAClB;oBACD;wBACE,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,WAAW;qBAClB;oBACD;wBACE,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,WAAW;qBAClB;oBACD;wBACE,IAAI,EAAE,mBAAmB;wBACzB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,0BAA0B;wBAChC,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,yBAAyB;wBAC/B,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,aAAa;wBACnB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,yBAAyB;wBAC/B,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,8BAA8B;wBACpC,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,kBAAkB;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QAAQ;wBACd,MAAM,EAAE,CAAC,WAAW,CAAC;qBACtB;oBACD;wBACE,IAAI,EAAE,OAAO;wBACb,MAAM,EAAE;4BACN;gCACE,OAAO,EAAE,eAAe;6BACzB;yBACF;qBACF;oBACD;wBACE,IAAI,EAAE,aAAa;wBACnB,MAAM,EAAE;4BACN;gCACE,OAAO,EAAE,gBAAgB;6BAC1B;yBACF;qBACF;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,CAAC,KAAK,CAAC;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC"}
|
@@ -24,8 +24,12 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
|
|
24
24
|
const constants_1 = require("./constants");
|
25
25
|
const helpers_1 = require("./helpers");
|
26
26
|
const filters_1 = require("./filters");
|
27
|
-
const
|
28
|
-
|
27
|
+
const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
|
28
|
+
const arrayToMap_1 = require("../../utils/misc/arrayToMap");
|
29
|
+
const collectionsMemo = new MemoizedCache_1.MemoizedCache(constants_1.collectionsCacheKey, {
|
30
|
+
prefix: constants_1.cachePrefix,
|
31
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
32
|
+
}, (arr) => (0, arrayToMap_1.arrayToMap)(arr || [], 'marketPubkey'));
|
29
33
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
30
34
|
const connection = (0, clients_1.getClientSolana)();
|
31
35
|
const dasUrl = (0, getSolanaDasEndpoint_1.default)();
|
@@ -40,23 +44,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
40
44
|
acc.bondTradeTransactionState.active);
|
41
45
|
if (accounts.length === 0)
|
42
46
|
return [];
|
43
|
-
const [tokenPrices, fbondTokenMints, bondOffers] = yield Promise.all([
|
47
|
+
const [tokenPrices, fbondTokenMints, bondOffers, collections] = yield Promise.all([
|
44
48
|
cache.getTokenPricesAsMap([solana_1.usdcSolanaMint, portfolio_core_1.solanaNativeAddress], portfolio_core_1.NetworkId.solana),
|
45
49
|
(0, solana_1.getAutoParsedMultipleAccountsInfo)(connection, constants_1.banxIdlItem, accounts.map((acc) => new web3_js_1.PublicKey(acc.fbondTokenMint))),
|
46
50
|
(0, solana_1.getAutoParsedMultipleAccountsInfo)(connection, constants_1.banxIdlItem, accounts.map((acc) => new web3_js_1.PublicKey(acc.bondOffer))),
|
51
|
+
collectionsMemo.getItem(cache),
|
47
52
|
]);
|
48
|
-
if (
|
49
|
-
|
50
|
-
prefix: constants_1.cachePrefix,
|
51
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
52
|
-
});
|
53
|
-
if (collectionsArr) {
|
54
|
-
collectionsArr.forEach((cc) => {
|
55
|
-
collections.set(cc.marketPubkey, cc);
|
56
|
-
});
|
57
|
-
}
|
58
|
-
collectionLastUpdate = Date.now();
|
59
|
-
}
|
53
|
+
if (!collections)
|
54
|
+
return [];
|
60
55
|
const solTokenPrice = tokenPrices.get(portfolio_core_1.solanaNativeAddress);
|
61
56
|
if (!solTokenPrice)
|
62
57
|
return [];
|
@@ -77,14 +72,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
77
72
|
accounts.forEach((acc) => {
|
78
73
|
const fbondTokenMint = fbondTokenMintsMap.get(acc.fbondTokenMint);
|
79
74
|
const bondOffer = bondOffersMap.get(acc.bondOffer);
|
80
|
-
if (!fbondTokenMint
|
75
|
+
if (!fbondTokenMint)
|
81
76
|
return;
|
82
77
|
if (!fbondTokenMint.fraktBondState.perpetualActive &&
|
83
78
|
!fbondTokenMint.fraktBondState.active)
|
84
79
|
return;
|
85
|
-
const collection =
|
86
|
-
|
87
|
-
|
80
|
+
const collection = bondOffer && bondOffer.hadoMarket
|
81
|
+
? collections.get(bondOffer.hadoMarket)
|
82
|
+
: undefined;
|
88
83
|
const tokenPrice = acc.lendingToken.usdc
|
89
84
|
? tokenPrices.get(solana_1.usdcSolanaMint)
|
90
85
|
: tokenPrices.get(portfolio_core_1.solanaNativeAddress);
|
@@ -128,17 +123,18 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
128
123
|
.toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
|
129
124
|
}
|
130
125
|
if (suppliedAssets.length > 0) {
|
131
|
-
const { borrowedValue, suppliedValue,
|
126
|
+
const { borrowedValue, suppliedValue, rewardValue, value } = (0, portfolio_core_1.getElementNFTLendingValues)({
|
132
127
|
suppliedAssets,
|
133
128
|
borrowedAssets,
|
134
129
|
rewardAssets: [],
|
130
|
+
lender: acc.user === owner.toString(),
|
135
131
|
});
|
136
132
|
elements.push({
|
137
133
|
networkId: portfolio_core_1.NetworkId.solana,
|
138
134
|
label: 'Lending',
|
139
135
|
platformId: constants_1.platformId,
|
140
136
|
type: portfolio_core_1.PortfolioElementType.borrowlend,
|
141
|
-
value
|
137
|
+
value,
|
142
138
|
name,
|
143
139
|
data: {
|
144
140
|
borrowedAssets,
|
@@ -149,8 +145,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
149
145
|
suppliedYields: [],
|
150
146
|
rewardAssets: [],
|
151
147
|
rewardValue,
|
152
|
-
healthRatio,
|
153
|
-
value
|
148
|
+
healthRatio: null,
|
149
|
+
value,
|
154
150
|
},
|
155
151
|
});
|
156
152
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,iDAAsD;AACtD,oGAA4E;AAC5E,+CAK4B;AAC5B,8EAAgF;AAChF,wGAAqG;AACrG,qGAA6E;AAC7E,
|
1
|
+
{"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,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E,KAAK,EAAE,GACxD,IAAA,2CAA0B,EAAC;gBACzB,cAAc;gBACd,cAAc;gBACd,YAAY,EAAE,EAAE;gBAChB,MAAM,EAAE,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,QAAQ,EAAE;aACtC,CAAC,CAAC;YAEL,QAAQ,CAAC,IAAI,CAAC;gBACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,KAAK,EAAE,SAAS;gBAChB,UAAU,EAAV,sBAAU;gBACV,IAAI,EAAE,qCAAoB,CAAC,UAAU;gBACrC,KAAK;gBACL,IAAI;gBACJ,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,YAAY,EAAE,EAAE;oBAChB,WAAW;oBACX,WAAW,EAAE,IAAI;oBACjB,KAAK;iBACN;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -18,8 +18,12 @@ const clients_1 = require("../../utils/clients");
|
|
18
18
|
const solana_1 = require("../../utils/solana");
|
19
19
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
20
20
|
const constants_1 = require("./constants");
|
21
|
-
const
|
22
|
-
|
21
|
+
const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
|
22
|
+
const arrayToMap_1 = require("../../utils/misc/arrayToMap");
|
23
|
+
const collectionsMemo = new MemoizedCache_1.MemoizedCache(constants_1.collectionsCacheKey, {
|
24
|
+
prefix: constants_1.cachePrefix,
|
25
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
26
|
+
}, (arr) => (0, arrayToMap_1.arrayToMap)(arr || [], 'marketPubkey'));
|
23
27
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
28
|
const connection = (0, clients_1.getClientSolana)();
|
25
29
|
const accounts = (yield (0, solana_1.getAutoParsedProgramAccounts)(connection, constants_1.banxIdlItem, [
|
@@ -35,19 +39,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
35
39
|
])).filter((acc) => acc.buyOrdersQuantity !== '0');
|
36
40
|
if (accounts.length === 0)
|
37
41
|
return [];
|
38
|
-
const tokenPrices = yield
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
43
|
-
});
|
44
|
-
if (collectionsArr) {
|
45
|
-
collectionsArr.forEach((cc) => {
|
46
|
-
collections.set(cc.marketPubkey, cc);
|
47
|
-
});
|
48
|
-
}
|
49
|
-
collectionLastUpdate = Date.now();
|
50
|
-
}
|
42
|
+
const [tokenPrices, collections] = yield Promise.all([
|
43
|
+
cache.getTokenPricesAsMap([solana_1.usdcSolanaMint, portfolio_core_1.solanaNativeAddress], portfolio_core_1.NetworkId.solana),
|
44
|
+
collectionsMemo.getItem(cache),
|
45
|
+
]);
|
51
46
|
const elements = [];
|
52
47
|
accounts.forEach((acc) => {
|
53
48
|
const collection = collections.get(acc.hadoMarket);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"offersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/offersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,+
|
1
|
+
{"version":3,"file":"offersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/offersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,+CAG4B;AAC5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ACpB,IAAI;gBACJ,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,YAAY,EAAE,EAAE;oBAChB,WAAW;oBACX,WAAW;oBACX,KAAK,EAAE,aAAa;iBACrB;aACF,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"collectionsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/collectionsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA0B;AAG1B,2CAKqB;AAGrB,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,
|
1
|
+
{"version":3,"file":"collectionsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/collectionsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA0B;AAG1B,2CAKqB;AAGrB,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,CAAe,6BAAiB,EAAE;QACpC,OAAO,EAAE,IAAI;KACd,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,KAAK,CAAC,mBAAmB,GAAG,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,+BAAmB,EAAE,GAAG,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,kBAAe,GAAG,CAAC"}
|
@@ -8,5 +8,4 @@ export declare const cachePrefix = "citrus";
|
|
8
8
|
export declare const collectionsApiUrl = "https://citrus.famousfoxes.com/citrus/allCollections";
|
9
9
|
export declare const citrusProgram: PublicKey;
|
10
10
|
export declare const loanDataSize = 464;
|
11
|
-
export declare const collectionRefreshInterval = 3600000;
|
12
11
|
export declare const citrusIdlItem: IdlItem;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.citrusIdlItem = exports.
|
3
|
+
exports.citrusIdlItem = exports.loanDataSize = exports.citrusProgram = exports.collectionsApiUrl = exports.cachePrefix = exports.collectionsCacheKey = 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 = 'citrus';
|
@@ -17,7 +17,6 @@ exports.cachePrefix = `${exports.platformId}`;
|
|
17
17
|
exports.collectionsApiUrl = 'https://citrus.famousfoxes.com/citrus/allCollections';
|
18
18
|
exports.citrusProgram = new web3_js_1.PublicKey('JCFRaPv7852ESRwJJGRy2mysUMydXZgVVhrMLmExvmVp');
|
19
19
|
exports.loanDataSize = 464;
|
20
|
-
exports.collectionRefreshInterval = 3600000;
|
21
20
|
exports.citrusIdlItem = {
|
22
21
|
programId: exports.citrusProgram.toString(),
|
23
22
|
idl: idl_1.CitrusIDL,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,+BAAkC;AAErB,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,QAAQ,EAAE,sCAAsC;CAC9D,CAAC;AACW,QAAA,mBAAmB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAClD,QAAA,WAAW,GAAG,GAAG,kBAAU,EAAE,CAAC;AAE9B,QAAA,iBAAiB,GAC5B,sDAAsD,CAAC;AAE5C,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,YAAY,GAAG,GAAG,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,+BAAkC;AAErB,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,QAAQ,EAAE,sCAAsC;CAC9D,CAAC;AACW,QAAA,mBAAmB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAClD,QAAA,WAAW,GAAG,GAAG,kBAAU,EAAE,CAAC;AAE9B,QAAA,iBAAiB,GAC5B,sDAAsD,CAAC;AAE5C,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,YAAY,GAAG,GAAG,CAAC;AAEnB,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,qBAAa,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,eAAS;IACd,OAAO,EAAE,QAAQ;CACP,CAAC"}
|
@@ -22,8 +22,12 @@ const getAssetBatchDas_1 = require("../../utils/solana/das/getAssetBatchDas");
|
|
22
22
|
const getSolanaDasEndpoint_1 = __importDefault(require("../../utils/clients/getSolanaDasEndpoint"));
|
23
23
|
const heliusAssetToAssetCollectible_1 = require("../../utils/solana/das/heliusAssetToAssetCollectible");
|
24
24
|
const filters_1 = require("./filters");
|
25
|
-
const
|
26
|
-
|
25
|
+
const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
|
26
|
+
const arrayToMap_1 = require("../../utils/misc/arrayToMap");
|
27
|
+
const collectionsMemo = new MemoizedCache_1.MemoizedCache(constants_1.collectionsCacheKey, {
|
28
|
+
prefix: constants_1.cachePrefix,
|
29
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
30
|
+
}, (arr) => (0, arrayToMap_1.arrayToMap)(arr || [], 'id'));
|
27
31
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
28
32
|
const connection = (0, clients_1.getClientSolana)();
|
29
33
|
const dasUrl = (0, getSolanaDasEndpoint_1.default)();
|
@@ -36,26 +40,15 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
36
40
|
);
|
37
41
|
if (accounts.length === 0)
|
38
42
|
return [];
|
39
|
-
const [solTokenPrice, heliusAssets] = yield Promise.all([
|
43
|
+
const [solTokenPrice, heliusAssets, collections] = yield Promise.all([
|
40
44
|
cache.getTokenPrice(portfolio_core_1.solanaNativeAddress, portfolio_core_1.NetworkId.solana),
|
41
45
|
(0, getAssetBatchDas_1.getAssetBatchDasAsMap)(dasUrl, accounts
|
42
46
|
.map((acc) => acc.mint)
|
43
47
|
.filter((mint) => mint && mint !== '11111111111111111111111111111111')),
|
48
|
+
collectionsMemo.getItem(cache),
|
44
49
|
]);
|
45
|
-
if (!solTokenPrice)
|
50
|
+
if (!solTokenPrice || !collections)
|
46
51
|
return [];
|
47
|
-
if (collectionLastUpdate + constants_1.collectionRefreshInterval < Date.now()) {
|
48
|
-
const collectionsArr = yield cache.getItem(constants_1.collectionsCacheKey, {
|
49
|
-
prefix: constants_1.cachePrefix,
|
50
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
51
|
-
});
|
52
|
-
if (collectionsArr) {
|
53
|
-
collectionsArr.forEach((cc) => {
|
54
|
-
collections.set(cc.id, cc);
|
55
|
-
});
|
56
|
-
}
|
57
|
-
collectionLastUpdate = Date.now();
|
58
|
-
}
|
59
52
|
const elements = [];
|
60
53
|
accounts.forEach((acc) => {
|
61
54
|
const collection = collections.get(acc.collectionConfig);
|
@@ -115,17 +108,18 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
115
108
|
}
|
116
109
|
}
|
117
110
|
if (suppliedAssets.length > 0) {
|
118
|
-
const { borrowedValue, suppliedValue,
|
111
|
+
const { borrowedValue, suppliedValue, rewardValue, value } = (0, portfolio_core_1.getElementNFTLendingValues)({
|
119
112
|
suppliedAssets,
|
120
113
|
borrowedAssets,
|
121
114
|
rewardAssets: [],
|
115
|
+
lender: acc.lender === owner.toString(),
|
122
116
|
});
|
123
117
|
elements.push({
|
124
118
|
networkId: portfolio_core_1.NetworkId.solana,
|
125
119
|
label: 'Lending',
|
126
120
|
platformId: constants_1.platformId,
|
127
121
|
type: portfolio_core_1.PortfolioElementType.borrowlend,
|
128
|
-
value
|
122
|
+
value,
|
129
123
|
name,
|
130
124
|
data: {
|
131
125
|
borrowedAssets,
|
@@ -136,8 +130,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
136
130
|
suppliedYields: [],
|
137
131
|
rewardAssets: [],
|
138
132
|
rewardValue,
|
139
|
-
healthRatio,
|
140
|
-
value
|
133
|
+
healthRatio: null,
|
134
|
+
value,
|
141
135
|
expireOn: acc.status.active || acc.status.onSale
|
142
136
|
? Number(acc.startTime) + Number(acc.loanTerms.duration)
|
143
137
|
: undefined,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gEAAqC;AAErC,
|
1
|
+
{"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gEAAqC;AAErC,2CAKqB;AAErB,iDAAsD;AAEtD,+CAAkE;AAClE,qGAA6E;AAC7E,8EAAgF;AAChF,oGAA4E;AAC5E,wGAAqG;AACrG,uCAA2C;AAC3C,kEAA+D;AAC/D,4DAAyD;AAEzD,MAAM,eAAe,GAAG,IAAI,6BAAa,CAIvC,+BAAmB,EACnB;IACE,MAAM,EAAE,uBAAW;IACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,CACrC,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,MAAM,GAAG,IAAA,8BAAoB,GAAE,CAAC;IAEtC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAA,wBAAc,EAAC,KAAK,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,CAClB,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,qCAA4B,EAAO,UAAU,EAAE,yBAAa,EAAE,OAAO,CAAC;QACtE,IAAA,qCAA4B,EAAO,UAAU,EAAE,yBAAa,EAAE,OAAO,CAAC;KACv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BACjB,KAAK;oBACL,QAAQ,EACN,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM;wBACpC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC;wBACxD,CAAC,CAAC,SAAS;iBAChB;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -8,6 +8,7 @@ export declare const platform: Platform;
|
|
8
8
|
export declare const prefixSpotMarkets = "drift-spotMarkets";
|
9
9
|
export declare const driftProgram: PublicKey;
|
10
10
|
export declare const preMarketPriceKey = "premarketPrice";
|
11
|
+
export declare const perpMarketsIndexesKey = "perp-markets-indexes";
|
11
12
|
export declare const airdropUrl = "https://airdrop.drift.trade/eligibility/";
|
12
13
|
export declare const distributorPid = "E7HtfkEMhmn9uwL7EFNydcXBWy5WCYN1vFmKKjipEH1x";
|
13
14
|
export declare const driftDecimals = 6;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.driftMint = exports.driftDecimals = exports.distributorPid = exports.airdropUrl = exports.preMarketPriceKey = exports.driftProgram = exports.prefixSpotMarkets = exports.platform = exports.platformWebsite = exports.platformImage = exports.platformName = exports.platformId = void 0;
|
3
|
+
exports.driftMint = exports.driftDecimals = exports.distributorPid = exports.airdropUrl = exports.perpMarketsIndexesKey = exports.preMarketPriceKey = exports.driftProgram = exports.prefixSpotMarkets = exports.platform = exports.platformWebsite = exports.platformImage = exports.platformName = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'drift';
|
6
6
|
exports.platformName = 'Drift';
|
@@ -16,6 +16,7 @@ exports.platform = {
|
|
16
16
|
exports.prefixSpotMarkets = `${exports.platformId}-spotMarkets`;
|
17
17
|
exports.driftProgram = new web3_js_1.PublicKey('dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH');
|
18
18
|
exports.preMarketPriceKey = 'premarketPrice';
|
19
|
+
exports.perpMarketsIndexesKey = 'perp-markets-indexes';
|
19
20
|
exports.airdropUrl = 'https://airdrop.drift.trade/eligibility/';
|
20
21
|
exports.distributorPid = 'E7HtfkEMhmn9uwL7EFNydcXBWy5WCYN1vFmKKjipEH1x';
|
21
22
|
exports.driftDecimals = 6;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,YAAY,GAAG,OAAO,CAAC;AACvB,QAAA,aAAa,GAAG,6CAA6C,CAAC;AAC9D,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAC7C,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,oBAAY;IAClB,KAAK,EAAE,qBAAa;IACpB,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,uBAAe;CACzB,CAAC;AACW,QAAA,iBAAiB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAEhD,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,iBAAiB,GAAG,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,YAAY,GAAG,OAAO,CAAC;AACvB,QAAA,aAAa,GAAG,6CAA6C,CAAC;AAC9D,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAC7C,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,oBAAY;IAClB,KAAK,EAAE,qBAAa;IACpB,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,uBAAe;CACzB,CAAC;AACW,QAAA,iBAAiB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAEhD,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,iBAAiB,GAAG,gBAAgB,CAAC;AACrC,QAAA,qBAAqB,GAAG,sBAAsB,CAAC;AAE/C,QAAA,UAAU,GAAG,0CAA0C,CAAC;AACxD,QAAA,cAAc,GAAG,8CAA8C,CAAC;AAChE,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,SAAS,GAAG,8CAA8C,CAAC"}
|
@@ -21,6 +21,11 @@ const helpers_1 = require("./helpers");
|
|
21
21
|
const solana_1 = require("../../utils/solana");
|
22
22
|
const clients_1 = require("../../utils/clients");
|
23
23
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
24
|
+
const position_1 = require("./perpHelpers/position");
|
25
|
+
const constants_2 = require("./perpHelpers/constants");
|
26
|
+
const types_1 = require("./perpHelpers/types");
|
27
|
+
const getOraclePrice_1 = require("./perpHelpers/getOraclePrice");
|
28
|
+
const getPerpMarket_1 = require("./perpHelpers/getPerpMarket");
|
24
29
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
25
30
|
const client = (0, clients_1.getClientSolana)();
|
26
31
|
const spotMarketsItems = yield cache.getAllItems({
|
@@ -82,6 +87,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
82
87
|
} while (parsedAccount[parsedAccount.length]);
|
83
88
|
if (!userAccounts)
|
84
89
|
return elements;
|
90
|
+
const perpMarketIndexesArr = yield cache.getItem(constants_1.perpMarketsIndexesKey, {
|
91
|
+
prefix: constants_1.platformId,
|
92
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
93
|
+
});
|
94
|
+
const perpMarketAddressByIndex = new Map();
|
95
|
+
perpMarketIndexesArr === null || perpMarketIndexesArr === void 0 ? void 0 : perpMarketIndexesArr.forEach(([index, address]) => {
|
96
|
+
perpMarketAddressByIndex.set(index, address);
|
97
|
+
});
|
85
98
|
// One user can have multiple sub-account
|
86
99
|
for (const userAccount of userAccounts) {
|
87
100
|
if (!userAccount)
|
@@ -92,6 +105,46 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
92
105
|
const suppliedYields = [];
|
93
106
|
const rewardAssets = [];
|
94
107
|
const marketIndexRef = 0;
|
108
|
+
const unsettledAssets = [];
|
109
|
+
for (const perpPosition of userAccount.perpPositions) {
|
110
|
+
if (perpPosition.baseAssetAmount.isZero())
|
111
|
+
continue;
|
112
|
+
const perpMarketAddress = perpMarketAddressByIndex.get(perpPosition.marketIndex);
|
113
|
+
if (!perpMarketAddress)
|
114
|
+
continue;
|
115
|
+
const market = yield (0, getPerpMarket_1.getPerpMarket)(perpMarketAddress, client);
|
116
|
+
if (!market)
|
117
|
+
continue;
|
118
|
+
const oraclePriceData = yield (0, getOraclePrice_1.getOraclePrice)(market.amm.oracle.toString(), market.amm.oracleSource, client);
|
119
|
+
const pnl = new bignumber_js_1.default((0, position_1.calculatePositionPNL)(market, perpPosition, oraclePriceData).toString())
|
120
|
+
.div(constants_2.PRICE_PRECISION_BIG_NUMBER)
|
121
|
+
.toNumber();
|
122
|
+
const side = (0, position_1.positionCurrentDirection)(perpPosition) === types_1.PositionDirection.LONG
|
123
|
+
? portfolio_core_1.LeverageSide.long
|
124
|
+
: portfolio_core_1.LeverageSide.short;
|
125
|
+
// console.log('market:', market.pubkey);
|
126
|
+
// // console.log('entryPrice', calculateEntryPrice(perpPosition));
|
127
|
+
// console.log('perpPosition:', perpPosition.baseAssetAmount.toString());
|
128
|
+
// console.log('pnl:', pnl.toString());
|
129
|
+
// console.log('baseAssetValue:', baseAssetValue.toString());
|
130
|
+
// console.log(
|
131
|
+
// 'quoteEntryAmount:',
|
132
|
+
// perpPosition.quoteEntryAmount.toString()
|
133
|
+
// );
|
134
|
+
// console.log('-----');
|
135
|
+
const asset = {
|
136
|
+
type: portfolio_core_1.PortfolioAssetType.generic,
|
137
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
138
|
+
value: pnl,
|
139
|
+
data: {
|
140
|
+
name: (0, solana_1.u8ArrayToString)(market.name),
|
141
|
+
},
|
142
|
+
attributes: {
|
143
|
+
tags: [side],
|
144
|
+
},
|
145
|
+
};
|
146
|
+
unsettledAssets.push(asset);
|
147
|
+
}
|
95
148
|
// Each account has up to 8 SpotPositions
|
96
149
|
for (const spotPosition of userAccount.spotPositions) {
|
97
150
|
if (spotPosition.scaledBalance.isZero())
|
@@ -141,7 +194,12 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
141
194
|
}
|
142
195
|
if (suppliedAssets.length === 0 && borrowedAssets.length === 0)
|
143
196
|
continue;
|
144
|
-
const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({
|
197
|
+
const { borrowedValue, suppliedValue, value, healthRatio, rewardValue, unsettledValue, } = (0, portfolio_core_1.getElementLendingValues)({
|
198
|
+
suppliedAssets,
|
199
|
+
borrowedAssets,
|
200
|
+
rewardAssets,
|
201
|
+
unsettledAssets,
|
202
|
+
});
|
145
203
|
elements.push({
|
146
204
|
type: portfolio_core_1.PortfolioElementType.borrowlend,
|
147
205
|
networkId: portfolio_core_1.NetworkId.solana,
|
@@ -158,6 +216,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
158
216
|
rewardAssets,
|
159
217
|
rewardValue,
|
160
218
|
healthRatio,
|
219
|
+
unsettled: {
|
220
|
+
assets: unsettledAssets,
|
221
|
+
value: unsettledValue,
|
222
|
+
},
|
161
223
|
value,
|
162
224
|
},
|
163
225
|
name: (0, solana_1.u8ArrayToString)(userAccount.name),
|