@sonarwatch/portfolio-plugins 0.12.30 → 0.12.31
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1815 -1806
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +8 -0
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/banx/calculateLoanRepayValue.d.ts +4 -0
- package/src/plugins/banx/calculateLoanRepayValue.js +37 -0
- package/src/plugins/banx/calculateLoanRepayValue.js.map +1 -0
- package/src/plugins/banx/collectionsJob.d.ts +3 -0
- package/src/plugins/banx/collectionsJob.js +40 -0
- package/src/plugins/banx/collectionsJob.js.map +1 -0
- package/src/plugins/banx/constants.d.ts +8 -0
- package/src/plugins/banx/constants.js +13 -1
- package/src/plugins/banx/constants.js.map +1 -1
- package/src/plugins/banx/filters.d.ts +2 -0
- package/src/plugins/banx/filters.js +26 -1
- package/src/plugins/banx/filters.js.map +1 -1
- package/src/plugins/banx/idl.d.ts +115 -0
- package/src/plugins/banx/idl.js +2256 -0
- package/src/plugins/banx/idl.js.map +1 -0
- package/src/plugins/banx/index.js +9 -2
- package/src/plugins/banx/index.js.map +1 -1
- package/src/plugins/banx/loansFetcher.d.ts +3 -0
- package/src/plugins/banx/loansFetcher.js +158 -0
- package/src/plugins/banx/loansFetcher.js.map +1 -0
- package/src/plugins/banx/offersFetcher.d.ts +3 -0
- package/src/plugins/banx/offersFetcher.js +99 -0
- package/src/plugins/banx/offersFetcher.js.map +1 -0
- package/src/plugins/banx/types.d.ts +200 -0
- package/src/plugins/citrus/collectionsJob.d.ts +3 -0
- package/src/plugins/citrus/collectionsJob.js +40 -0
- package/src/plugins/citrus/collectionsJob.js.map +1 -0
- package/src/plugins/citrus/constants.d.ts +12 -0
- package/src/plugins/citrus/constants.js +26 -0
- package/src/plugins/citrus/constants.js.map +1 -0
- package/src/plugins/citrus/filters.d.ts +2 -0
- package/src/plugins/citrus/filters.js +32 -0
- package/src/plugins/citrus/filters.js.map +1 -0
- package/src/plugins/citrus/idl.d.ts +73 -0
- package/src/plugins/citrus/idl.js +292 -0
- package/src/plugins/citrus/idl.js.map +1 -0
- package/src/plugins/citrus/index.d.ts +6 -0
- package/src/plugins/citrus/index.js +13 -0
- package/src/plugins/citrus/index.js.map +1 -0
- package/src/plugins/citrus/loansFetcher.d.ts +3 -0
- package/src/plugins/citrus/loansFetcher.js +150 -0
- package/src/plugins/citrus/loansFetcher.js.map +1 -0
- package/src/plugins/citrus/types.d.ts +54 -0
- package/src/plugins/citrus/types.js +3 -0
- package/src/plugins/citrus/types.js.map +1 -0
- package/src/plugins/sharky/collectionsJob.d.ts +3 -0
- package/src/plugins/sharky/collectionsJob.js +75 -0
- package/src/plugins/sharky/collectionsJob.js.map +1 -0
- package/src/plugins/sharky/constants.d.ts +12 -0
- package/src/plugins/sharky/constants.js +26 -0
- package/src/plugins/sharky/constants.js.map +1 -0
- package/src/plugins/sharky/filters.d.ts +6 -0
- package/src/plugins/sharky/filters.js +43 -0
- package/src/plugins/sharky/filters.js.map +1 -0
- package/src/plugins/sharky/idl.d.ts +135 -0
- package/src/plugins/sharky/idl.js +388 -0
- package/src/plugins/sharky/idl.js.map +1 -0
- package/src/plugins/sharky/index.d.ts +6 -0
- package/src/plugins/sharky/index.js +13 -0
- package/src/plugins/sharky/index.js.map +1 -0
- package/src/plugins/sharky/loansFetcher.d.ts +3 -0
- package/src/plugins/sharky/loansFetcher.js +141 -0
- package/src/plugins/sharky/loansFetcher.js.map +1 -0
- package/src/plugins/sharky/types.d.ts +66 -0
- package/src/plugins/sharky/types.js +11 -0
- package/src/plugins/sharky/types.js.map +1 -0
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/das/getAssetBatchDas.d.ts +4 -0
- package/src/utils/solana/das/getAssetBatchDas.js +68 -0
- package/src/utils/solana/das/getAssetBatchDas.js.map +1 -0
- package/src/utils/solana/das/heliusAssetToAssetCollectible.d.ts +7 -1
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js +13 -9
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js.map +1 -1
- package/src/utils/solana/das/types.d.ts +5 -0
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.d.ts +4 -0
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js +33 -0
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js.map +1 -0
- package/src/utils/solana/getAutoParsedProgramAccounts.d.ts +4 -0
- package/src/utils/solana/getAutoParsedProgramAccounts.js +37 -0
- package/src/utils/solana/getAutoParsedProgramAccounts.js.map +1 -0
- package/src/utils/solana/getMultipleAccountsInfoSafe.d.ts +2 -2
- package/src/utils/solana/getMultipleAccountsInfoSafe.js +3 -3
- package/src/utils/solana/getMultipleAccountsInfoSafe.js.map +1 -1
- package/src/utils/solana/getParsedMultipleAccountsInfo.d.ts +2 -2
- package/src/utils/solana/getParsedMultipleAccountsInfo.js +2 -2
- package/src/utils/solana/getParsedMultipleAccountsInfo.js.map +1 -1
- package/src/utils/solana/index.d.ts +2 -0
- package/src/utils/solana/index.js +2 -0
- package/src/utils/solana/index.js.map +1 -1
@@ -0,0 +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,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;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e;qBACtB;oBACD;wBACE,IAAI,EAAE,aAAa;qBACpB;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,eAAe;qBACtB;oBACD;wBACE,IAAI,EAAE,aAAa;qBACpB;oBACD;wBACE,IAAI,EAAE,yBAAyB;qBAChC;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,QAAQ;qBACf;oBACD;wBACE,IAAI,EAAE,UAAU;qBACjB;oBACD;wBACE,IAAI,EAAE,YAAY;qBACnB;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,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"}
|
@@ -6,7 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
|
9
|
+
const collectionsJob_1 = __importDefault(require("./collectionsJob"));
|
10
|
+
const loansFetcher_1 = __importDefault(require("./loansFetcher"));
|
11
|
+
const offersFetcher_1 = __importDefault(require("./offersFetcher"));
|
9
12
|
exports.platforms = [constants_1.platform];
|
10
|
-
exports.jobs = [];
|
11
|
-
exports.fetchers = [
|
13
|
+
exports.jobs = [collectionsJob_1.default];
|
14
|
+
exports.fetchers = [
|
15
|
+
stakingFetcher_1.default,
|
16
|
+
loansFetcher_1.default,
|
17
|
+
offersFetcher_1.default,
|
18
|
+
];
|
12
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAC9C,sEAA8C;AAC9C,kEAA0C;AAC1C,oEAA4C;AAE/B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,wBAAc,CAAC,CAAC;AAC/B,QAAA,QAAQ,GAAc;IACjC,wBAAc;IACd,sBAAY;IACZ,uBAAa;CACd,CAAC"}
|
@@ -0,0 +1,158 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
+
const web3_js_1 = require("@solana/web3.js");
|
17
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
18
|
+
const clients_1 = require("../../utils/clients");
|
19
|
+
const getSolanaDasEndpoint_1 = __importDefault(require("../../utils/clients/getSolanaDasEndpoint"));
|
20
|
+
const solana_1 = require("../../utils/solana");
|
21
|
+
const getAssetBatchDas_1 = require("../../utils/solana/das/getAssetBatchDas");
|
22
|
+
const heliusAssetToAssetCollectible_1 = require("../../utils/solana/das/heliusAssetToAssetCollectible");
|
23
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
24
|
+
const constants_1 = require("./constants");
|
25
|
+
const calculateLoanRepayValue_1 = require("./calculateLoanRepayValue");
|
26
|
+
const filters_1 = require("./filters");
|
27
|
+
const collections = new Map();
|
28
|
+
let collectionLastUpdate = 0;
|
29
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
30
|
+
const connection = (0, clients_1.getClientSolana)();
|
31
|
+
const dasUrl = (0, getSolanaDasEndpoint_1.default)();
|
32
|
+
const accounts = (yield Promise.all([
|
33
|
+
(0, solana_1.getAutoParsedProgramAccounts)(connection, constants_1.banxIdlItem, (0, filters_1.loanFiltersA)(owner)),
|
34
|
+
(0, solana_1.getAutoParsedProgramAccounts)(connection, constants_1.banxIdlItem, (0, filters_1.loanFiltersB)(owner)),
|
35
|
+
]))
|
36
|
+
.flat()
|
37
|
+
.filter((acc) => acc.bondTradeTransactionState.perpetualActive ||
|
38
|
+
acc.bondTradeTransactionState.perpetualRefinancedActive ||
|
39
|
+
acc.bondTradeTransactionState.active);
|
40
|
+
if (accounts.length === 0)
|
41
|
+
return [];
|
42
|
+
const [tokenPrices, fbondTokenMints, bondOffers] = yield Promise.all([
|
43
|
+
cache.getTokenPricesAsMap([solana_1.usdcSolanaMint, portfolio_core_1.solanaNativeAddress], portfolio_core_1.NetworkId.solana),
|
44
|
+
(0, solana_1.getAutoParsedMultipleAccountsInfo)(connection, constants_1.banxIdlItem, accounts.map((acc) => new web3_js_1.PublicKey(acc.fbondTokenMint))),
|
45
|
+
(0, solana_1.getAutoParsedMultipleAccountsInfo)(connection, constants_1.banxIdlItem, accounts.map((acc) => new web3_js_1.PublicKey(acc.bondOffer))),
|
46
|
+
]);
|
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.marketPubkey, cc);
|
55
|
+
});
|
56
|
+
}
|
57
|
+
collectionLastUpdate = Date.now();
|
58
|
+
}
|
59
|
+
const solTokenPrice = tokenPrices.get(portfolio_core_1.solanaNativeAddress);
|
60
|
+
if (!solTokenPrice)
|
61
|
+
return [];
|
62
|
+
const fbondTokenMintsMap = new Map();
|
63
|
+
fbondTokenMints.forEach((fbondTokenMint) => {
|
64
|
+
if (!fbondTokenMint)
|
65
|
+
return;
|
66
|
+
fbondTokenMintsMap.set(fbondTokenMint.pubkey.toString(), fbondTokenMint);
|
67
|
+
});
|
68
|
+
const bondOffersMap = new Map();
|
69
|
+
bondOffers.forEach((bondOffer) => {
|
70
|
+
if (!bondOffer)
|
71
|
+
return;
|
72
|
+
bondOffersMap.set(bondOffer.pubkey.toString(), bondOffer);
|
73
|
+
});
|
74
|
+
const heliusAssets = yield (0, getAssetBatchDas_1.getAssetBatchDasAsMap)(dasUrl, fbondTokenMints.map((acc) => acc && acc.fbondTokenMint));
|
75
|
+
const elements = [];
|
76
|
+
accounts.forEach((acc) => {
|
77
|
+
const fbondTokenMint = fbondTokenMintsMap.get(acc.fbondTokenMint);
|
78
|
+
const bondOffer = bondOffersMap.get(acc.bondOffer);
|
79
|
+
if (!fbondTokenMint || !bondOffer || !bondOffer.hadoMarket)
|
80
|
+
return;
|
81
|
+
const collection = collections.get(bondOffer.hadoMarket);
|
82
|
+
if (!collection)
|
83
|
+
return;
|
84
|
+
const tokenPrice = acc.lendingToken.usdc
|
85
|
+
? tokenPrices.get(solana_1.usdcSolanaMint)
|
86
|
+
: tokenPrices.get(portfolio_core_1.solanaNativeAddress);
|
87
|
+
if (!tokenPrice)
|
88
|
+
return;
|
89
|
+
const borrowedAssets = [];
|
90
|
+
const suppliedAssets = [];
|
91
|
+
let mintAsset = null;
|
92
|
+
if (acc.fbondTokenMint) {
|
93
|
+
const heliusAsset = heliusAssets.get(fbondTokenMint.fbondTokenMint);
|
94
|
+
if (heliusAsset) {
|
95
|
+
mintAsset = (0, heliusAssetToAssetCollectible_1.heliusAssetToAssetCollectible)(heliusAsset, {
|
96
|
+
tags: [portfolio_core_1.collectibleFreezedTag],
|
97
|
+
collection: collection
|
98
|
+
? {
|
99
|
+
name: collection.collectionName,
|
100
|
+
floorPrice: new bignumber_js_1.default(collection.collectionFloor)
|
101
|
+
.dividedBy(Math.pow(10, tokenPrice.decimals))
|
102
|
+
.multipliedBy(solTokenPrice.price)
|
103
|
+
.toNumber(),
|
104
|
+
}
|
105
|
+
: undefined,
|
106
|
+
});
|
107
|
+
}
|
108
|
+
}
|
109
|
+
const solAsset = (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, (0, calculateLoanRepayValue_1.calculateLoanRepayValue)(acc)
|
110
|
+
.dividedBy(Math.pow(10, tokenPrice.decimals))
|
111
|
+
.toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice);
|
112
|
+
const name = `Active Loan`;
|
113
|
+
if (acc.user === owner.toString()) {
|
114
|
+
// LENDER
|
115
|
+
suppliedAssets.push(solAsset);
|
116
|
+
if (mintAsset)
|
117
|
+
borrowedAssets.push(mintAsset);
|
118
|
+
}
|
119
|
+
else {
|
120
|
+
// BORROWER
|
121
|
+
if (mintAsset)
|
122
|
+
suppliedAssets.push(mintAsset);
|
123
|
+
borrowedAssets.push(solAsset);
|
124
|
+
}
|
125
|
+
if (suppliedAssets.length > 0) {
|
126
|
+
const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, []);
|
127
|
+
elements.push({
|
128
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
129
|
+
label: 'Lending',
|
130
|
+
platformId: constants_1.platformId,
|
131
|
+
type: portfolio_core_1.PortfolioElementType.borrowlend,
|
132
|
+
value: suppliedValue,
|
133
|
+
name,
|
134
|
+
data: {
|
135
|
+
borrowedAssets,
|
136
|
+
borrowedValue,
|
137
|
+
borrowedYields: [],
|
138
|
+
suppliedAssets,
|
139
|
+
suppliedValue,
|
140
|
+
suppliedYields: [],
|
141
|
+
collateralRatio: null,
|
142
|
+
rewardAssets: [],
|
143
|
+
rewardValue,
|
144
|
+
healthRatio,
|
145
|
+
value: suppliedValue,
|
146
|
+
},
|
147
|
+
});
|
148
|
+
}
|
149
|
+
});
|
150
|
+
return elements;
|
151
|
+
});
|
152
|
+
const fetcher = {
|
153
|
+
id: `${constants_1.platformId}-loans`,
|
154
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
155
|
+
executor,
|
156
|
+
};
|
157
|
+
exports.default = fetcher;
|
158
|
+
//# sourceMappingURL=loansFetcher.js.map
|
@@ -0,0 +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,8EAA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E,SAAS;gBAChB,UAAU,EAAV,sBAAU;gBACV,IAAI,EAAE,qCAAoB,CAAC,UAAU;gBACrC,KAAK,EAAE,aAAa;gBACpB,IAAI;gBACJ,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,eAAe,EAAE,IAAI;oBACrB,YAAY,EAAE,EAAE;oBAChB,WAAW;oBACX,WAAW;oBACX,KAAK,EAAE,aAAa;iBACrB;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"}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
+
const clients_1 = require("../../utils/clients");
|
18
|
+
const solana_1 = require("../../utils/solana");
|
19
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
20
|
+
const constants_1 = require("./constants");
|
21
|
+
const collections = new Map();
|
22
|
+
let collectionLastUpdate = 0;
|
23
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
|
+
const connection = (0, clients_1.getClientSolana)();
|
25
|
+
const accounts = (yield (0, solana_1.getAutoParsedProgramAccounts)(connection, constants_1.banxIdlItem, [
|
26
|
+
{
|
27
|
+
dataSize: constants_1.bondOfferDataSize,
|
28
|
+
},
|
29
|
+
{
|
30
|
+
memcmp: {
|
31
|
+
bytes: owner,
|
32
|
+
offset: 130,
|
33
|
+
},
|
34
|
+
},
|
35
|
+
])).filter((acc) => acc.buyOrdersQuantity !== '0');
|
36
|
+
if (accounts.length === 0)
|
37
|
+
return [];
|
38
|
+
const tokenPrices = yield cache.getTokenPricesAsMap([solana_1.usdcSolanaMint, portfolio_core_1.solanaNativeAddress], portfolio_core_1.NetworkId.solana);
|
39
|
+
if (collectionLastUpdate + constants_1.collectionRefreshInterval < Date.now()) {
|
40
|
+
const collectionsArr = yield cache.getItem(constants_1.collectionsCacheKey, {
|
41
|
+
prefix: constants_1.cachePrefix,
|
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
|
+
}
|
51
|
+
const elements = [];
|
52
|
+
accounts.forEach((acc) => {
|
53
|
+
const collection = collections.get(acc.hadoMarket);
|
54
|
+
if (!collection)
|
55
|
+
return;
|
56
|
+
const borrowedAssets = [];
|
57
|
+
const suppliedAssets = [];
|
58
|
+
const tokenPrice = acc.bondingCurve.bondingType.linearUsdc
|
59
|
+
? tokenPrices.get(solana_1.usdcSolanaMint)
|
60
|
+
: tokenPrices.get(portfolio_core_1.solanaNativeAddress);
|
61
|
+
if (!tokenPrice)
|
62
|
+
return;
|
63
|
+
suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPrice.address, new bignumber_js_1.default(acc.fundsSolOrTokenBalance)
|
64
|
+
.dividedBy(Math.pow(10, tokenPrice.decimals))
|
65
|
+
.toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
|
66
|
+
const name = `${Number(acc.buyOrdersQuantity) > 1 ? `${acc.buyOrdersQuantity} ` : ''}Lend Offer${Number(acc.buyOrdersQuantity) > 1 ? 's' : ''} on ${collection.collectionName}`;
|
67
|
+
const { borrowedValue, suppliedValue, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, []);
|
68
|
+
if (suppliedValue && suppliedValue > 0)
|
69
|
+
elements.push({
|
70
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
71
|
+
label: 'Lending',
|
72
|
+
platformId: constants_1.platformId,
|
73
|
+
type: portfolio_core_1.PortfolioElementType.borrowlend,
|
74
|
+
value: suppliedValue,
|
75
|
+
name,
|
76
|
+
data: {
|
77
|
+
borrowedAssets,
|
78
|
+
borrowedValue,
|
79
|
+
borrowedYields: [],
|
80
|
+
suppliedAssets,
|
81
|
+
suppliedValue,
|
82
|
+
suppliedYields: [],
|
83
|
+
collateralRatio: null,
|
84
|
+
rewardAssets: [],
|
85
|
+
rewardValue,
|
86
|
+
healthRatio,
|
87
|
+
value: suppliedValue,
|
88
|
+
},
|
89
|
+
});
|
90
|
+
});
|
91
|
+
return elements;
|
92
|
+
});
|
93
|
+
const fetcher = {
|
94
|
+
id: `${constants_1.platformId}-offers`,
|
95
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
96
|
+
executor,
|
97
|
+
};
|
98
|
+
exports.default = fetcher;
|
99
|
+
//# sourceMappingURL=offersFetcher.js.map
|
@@ -0,0 +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,+CAI4B;AAC5B,qGAA6E;AAC7E,2CAOqB;AAGrB,MAAM,WAAW,GAA4B,IAAI,GAAG,EAAE,CAAC;AACvD,IAAI,oBAAoB,GAAG,CAAC,CAAC;AAE7B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,CACf,MAAM,IAAA,qCAA4B,EAAc,UAAU,EAAE,uBAAW,EAAE;QACvE;YACE,QAAQ,EAAE,6BAAiB;SAC5B;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,GAAG;aACZ;SACF;KACF,CAAC,CACH,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,iBAAiB,KAAK,GAAG,CAAC,CAAC;IACjD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACjD,CAAC,uBAAc,EAAE,oCAAmB,CAAC,EACrC,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,IAAI,oBAAoB,GAAG,qCAAyB,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;QAClE,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,OAAO,CACxC,+BAAmB,EACnB;YACE,MAAM,EAAE,uBAAW;YACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CACF,CAAC;QACF,IAAI,cAAc,EAAE,CAAC;YACnB,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,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C;QAEH,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,GAC9D,IAAA,wCAAuB,EAAC,cAAc,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC;QAE9D,IAAI,aAAa,IAAI,aAAa,GAAG,CAAC;YACpC,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,EAAE,aAAa;gBACpB,IAAI;gBACJ,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,eAAe,EAAE,IAAI;oBACrB,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"}
|
@@ -63,3 +63,203 @@ export type BanxTokenStake = {
|
|
63
63
|
updatedAt: Date;
|
64
64
|
user: string;
|
65
65
|
};
|
66
|
+
export type Collection = {
|
67
|
+
marketPubkey: string;
|
68
|
+
collectionName: string;
|
69
|
+
collectionFloor: number;
|
70
|
+
tensorSlug: string;
|
71
|
+
};
|
72
|
+
export type BondOfferV2 = {
|
73
|
+
hadoMarket: string;
|
74
|
+
pairState: PairState;
|
75
|
+
bondingCurve: BondOfferBondingCurve;
|
76
|
+
baseSpotPrice: string;
|
77
|
+
mathCounter: string;
|
78
|
+
currentSpotPrice: string;
|
79
|
+
concentrationIndex: string;
|
80
|
+
bidCap: string;
|
81
|
+
bidSettlement: string;
|
82
|
+
edgeSettlement: string;
|
83
|
+
fundsSolOrTokenBalance: string;
|
84
|
+
buyOrdersQuantity: string;
|
85
|
+
lastTransactedAt: string;
|
86
|
+
assetReceiver: string;
|
87
|
+
validation: BondOfferValidation;
|
88
|
+
};
|
89
|
+
export type PairState = {
|
90
|
+
pairState?: string;
|
91
|
+
onMarketVirtual?: string;
|
92
|
+
onMarketTokenized?: string;
|
93
|
+
frozen?: string;
|
94
|
+
closed?: string;
|
95
|
+
perpetualOnMarket?: string;
|
96
|
+
perpetualClosed?: string;
|
97
|
+
perpetualBondingCurveOnMarket?: string;
|
98
|
+
perpetualMigrated?: string;
|
99
|
+
perpetualBondingCurveClosed?: string;
|
100
|
+
perpetualListing?: string;
|
101
|
+
};
|
102
|
+
export type BondOfferBondingCurve = {
|
103
|
+
delta: number;
|
104
|
+
bondingType: BondOfferBondingCurveType;
|
105
|
+
};
|
106
|
+
export type BondOfferBondingCurveType = {
|
107
|
+
linear?: string;
|
108
|
+
exponential?: string;
|
109
|
+
linearUsdc?: string;
|
110
|
+
exponentialUsdc?: string;
|
111
|
+
linearBanxSol?: string;
|
112
|
+
exponentialBanxSol?: string;
|
113
|
+
};
|
114
|
+
export type BondOfferValidation = {
|
115
|
+
loanToValueFilter: number;
|
116
|
+
durationFilter: number;
|
117
|
+
maxReturnAmountFilter: number;
|
118
|
+
bondFeatures: BondFeatures;
|
119
|
+
};
|
120
|
+
export type BondFeatures = {
|
121
|
+
none?: string;
|
122
|
+
autocompound?: string;
|
123
|
+
receiveNftOnLiquidation?: string;
|
124
|
+
autoreceiveSol?: string;
|
125
|
+
autoCompoundAndReceiveNft?: string;
|
126
|
+
autoReceiveAndReceiveNft?: string;
|
127
|
+
};
|
128
|
+
export type BondTradeTransactionV3 = {
|
129
|
+
bondTradeTransactionState: BondTradeTransactionV2State;
|
130
|
+
bondOffer: string;
|
131
|
+
user: string;
|
132
|
+
amountOfBonds: number;
|
133
|
+
solAmount: number;
|
134
|
+
feeAmount: number;
|
135
|
+
bondTradeTransactionType: BondTradeTransactionV2Type;
|
136
|
+
fbondTokenMint: string;
|
137
|
+
soldAt: number;
|
138
|
+
redeemedAt: string;
|
139
|
+
redeemResult: RedeemResult;
|
140
|
+
seller: string;
|
141
|
+
isDirectSell: boolean;
|
142
|
+
lendingToken: LendingTokenType;
|
143
|
+
currentRemainingLent: number;
|
144
|
+
interestSnapshot: number;
|
145
|
+
partialRepaySnapshot: number;
|
146
|
+
terminationStartedAt: number;
|
147
|
+
lenderOriginalLent: number;
|
148
|
+
lenderFullRepaidAmount: number;
|
149
|
+
borrowerOriginalLent: number;
|
150
|
+
borrowerFullRepaidAmount: number;
|
151
|
+
repayDestination: RepayDestination;
|
152
|
+
repaymentCallAmount: number;
|
153
|
+
terminationFreeze: number;
|
154
|
+
placeholder3: number;
|
155
|
+
placeholder4: number;
|
156
|
+
placeholder5: number;
|
157
|
+
placeholder6: number;
|
158
|
+
placeholder7: number;
|
159
|
+
placeholder8: number;
|
160
|
+
};
|
161
|
+
export type BondTradeTransactionV2State = {
|
162
|
+
notActive?: string;
|
163
|
+
active?: string;
|
164
|
+
perpetualActive?: string;
|
165
|
+
perpetualRepaid?: string;
|
166
|
+
perpetualLiquidatedByAuction?: string;
|
167
|
+
perpetualLiquidatedByClaim?: string;
|
168
|
+
perpetualManualTerminating?: string;
|
169
|
+
perpetualPartialRepaid?: string;
|
170
|
+
perpetualRefinanceRepaid?: string;
|
171
|
+
perpetualRefinancedActive?: string;
|
172
|
+
migrated?: string;
|
173
|
+
perpetualBorrowerListing?: string;
|
174
|
+
perpetualLenderListing?: string;
|
175
|
+
};
|
176
|
+
export type BondTradeTransactionV2Type = {
|
177
|
+
none?: string;
|
178
|
+
autocompound?: string;
|
179
|
+
receiveNftOnLiquidation?: string;
|
180
|
+
autoreceiveSol?: string;
|
181
|
+
autoCompoundAndReceiveNft?: string;
|
182
|
+
autoReceiveAndReceiveNft?: string;
|
183
|
+
};
|
184
|
+
export type RedeemResult = {
|
185
|
+
none?: string;
|
186
|
+
directBorrow?: string;
|
187
|
+
reborrow?: string;
|
188
|
+
instantRefinanced?: string;
|
189
|
+
refinancedByAuction?: string;
|
190
|
+
partialRepay?: string;
|
191
|
+
directRepaid?: string;
|
192
|
+
claimed?: string;
|
193
|
+
directBorrowAndDirectRepaid?: string;
|
194
|
+
directBorrowAndReborrowRepaid?: string;
|
195
|
+
directBorrowAndInstantRefinancedRepaid?: string;
|
196
|
+
directBorrowAndRefinancedByAuctionRepaid?: string;
|
197
|
+
directBorrowAndPartialRepaid?: string;
|
198
|
+
directBorrowAndClaimed?: string;
|
199
|
+
reborrowAndDirectRepaid?: string;
|
200
|
+
reborrowAndReborrowRepaid?: string;
|
201
|
+
reborrowAndInstantRefinancedRepaid?: string;
|
202
|
+
reborrowAndRefinancedByAuctionRepaid?: string;
|
203
|
+
reborrowAndPartialRepaid?: string;
|
204
|
+
reborrowAndClaimed?: string;
|
205
|
+
instantRefinancedAndDirectRepaid?: string;
|
206
|
+
instantRefinancedAndReborrowRepaid?: string;
|
207
|
+
instantRefinancedAndInstantRefinancedRepaid?: string;
|
208
|
+
instantRefinancedAndRefinancedByAuctionRepaid?: string;
|
209
|
+
instantRefinancedAndPartialRepaid?: string;
|
210
|
+
instantRefinancedAndClaimed?: string;
|
211
|
+
refinancedByAuctionAndDirectRepaid?: string;
|
212
|
+
refinancedByAuctionAndReborrowRepaid?: string;
|
213
|
+
refinancedByAuctionAndInstantRefinancedRepaid?: string;
|
214
|
+
refinancedByAuctionAndRefinancedByAuctionRepaid?: string;
|
215
|
+
refinancedByAuctionAndPartialRepaid?: string;
|
216
|
+
refinancedByAuctionAndClaimed?: string;
|
217
|
+
partialRepaidAndDirectRepaid?: string;
|
218
|
+
partialRepaidAndReborrowRepaid?: string;
|
219
|
+
partialRepaidAndInstantRefinancedRepaid?: string;
|
220
|
+
partialRepaidAndRefinancedByAuctionRepaid?: string;
|
221
|
+
partialRepaidAndPartialRepaid?: string;
|
222
|
+
partialRepaidAndClaimed?: string;
|
223
|
+
};
|
224
|
+
export type RepayDestination = {
|
225
|
+
none?: string;
|
226
|
+
offer?: string;
|
227
|
+
wallet?: string;
|
228
|
+
vault?: string;
|
229
|
+
};
|
230
|
+
export type LendingTokenType = {
|
231
|
+
nativeSol?: string;
|
232
|
+
usdc?: string;
|
233
|
+
banxSol?: string;
|
234
|
+
};
|
235
|
+
export type FraktBond = {
|
236
|
+
fraktBondState: FraktBondState;
|
237
|
+
bondTradeTransactionsCounter: number;
|
238
|
+
borrowedAmount: number;
|
239
|
+
banxStake: string;
|
240
|
+
fraktMarket: string;
|
241
|
+
hadoMarket?: string;
|
242
|
+
amountToReturn: number;
|
243
|
+
actualReturnedAmount: number;
|
244
|
+
terminatedCounter: number;
|
245
|
+
fbondTokenMint: string;
|
246
|
+
fbondTokenSupply: number;
|
247
|
+
activatedAt: number;
|
248
|
+
liquidatingAt: number;
|
249
|
+
fbondIssuer: string;
|
250
|
+
repaidOrLiquidatedAt: number;
|
251
|
+
currentPerpetualBorrowed: number;
|
252
|
+
lastTransactedAt: number;
|
253
|
+
refinanceAuctionStartedAt: number;
|
254
|
+
};
|
255
|
+
export type FraktBondState = {
|
256
|
+
initialized?: string;
|
257
|
+
active?: string;
|
258
|
+
repaid?: string;
|
259
|
+
liquidating?: string;
|
260
|
+
liquidated?: string;
|
261
|
+
perpetualActive?: string;
|
262
|
+
perpetualRepaid?: string;
|
263
|
+
perpetualLiquidatedByAuction?: string;
|
264
|
+
perpetualLiquidatedByClaim?: string;
|
265
|
+
};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
+
const axios_1 = __importDefault(require("axios"));
|
17
|
+
const constants_1 = require("./constants");
|
18
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
19
|
+
const res = yield axios_1.default
|
20
|
+
.get(constants_1.collectionsApiUrl, {
|
21
|
+
timeout: 5000,
|
22
|
+
})
|
23
|
+
.catch((err) => {
|
24
|
+
throw Error(`CITRUS_API ERR: ${err}`);
|
25
|
+
});
|
26
|
+
if (!res) {
|
27
|
+
throw Error(`CITRUS_API NO RESPONSE`);
|
28
|
+
}
|
29
|
+
yield cache.setItem(constants_1.collectionsCacheKey, res.data, {
|
30
|
+
prefix: constants_1.cachePrefix,
|
31
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
32
|
+
});
|
33
|
+
});
|
34
|
+
const job = {
|
35
|
+
id: `${constants_1.platformId}-collections`,
|
36
|
+
executor,
|
37
|
+
label: 'normal',
|
38
|
+
};
|
39
|
+
exports.default = job;
|
40
|
+
//# sourceMappingURL=collectionsJob.js.map
|
@@ -0,0 +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,CAAa,6BAAiB,EAAE;QAClC,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"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
2
|
+
import { PublicKey } from '@solana/web3.js';
|
3
|
+
import { IdlItem } from '@solanafm/explorer-kit-idls';
|
4
|
+
export declare const platformId = "citrus";
|
5
|
+
export declare const platform: Platform;
|
6
|
+
export declare const collectionsCacheKey = "citrus-collections";
|
7
|
+
export declare const cachePrefix = "citrus";
|
8
|
+
export declare const collectionsApiUrl = "https://citrus.famousfoxes.com/citrus/allCollections";
|
9
|
+
export declare const citrusProgram: PublicKey;
|
10
|
+
export declare const loanDataSize = 464;
|
11
|
+
export declare const collectionRefreshInterval = 3600000;
|
12
|
+
export declare const citrusIdlItem: IdlItem;
|