@sonarwatch/portfolio-plugins 0.12.119 → 0.12.121
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +2197 -2189
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +4 -6
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/banx/constants.d.ts +1 -1
- package/src/plugins/banx/constants.js +1 -1
- package/src/plugins/banx/constants.js.map +1 -1
- package/src/plugins/banx/stakingFetcher.js +16 -23
- package/src/plugins/banx/stakingFetcher.js.map +1 -1
- package/src/plugins/drift/depositsFetcher.js +26 -9
- package/src/plugins/drift/depositsFetcher.js.map +1 -1
- package/src/plugins/kamino/lendsFetcher.js +1 -1
- package/src/plugins/kamino/lendsFetcher.js.map +1 -1
- package/src/plugins/nxfinance/constants.js +1 -0
- package/src/plugins/nxfinance/constants.js.map +1 -1
- package/src/plugins/orca/constants.d.ts +2 -0
- package/src/plugins/orca/constants.js +8 -1
- package/src/plugins/orca/constants.js.map +1 -1
- package/src/plugins/orca/index.js +1 -1
- package/src/plugins/orca/index.js.map +1 -1
- package/src/plugins/orca/lpTokensJob.js +101 -80
- package/src/plugins/orca/lpTokensJob.js.map +1 -1
- package/src/plugins/picasso/helpers.js +0 -1
- package/src/plugins/picasso/helpers.js.map +1 -1
- package/src/plugins/picasso/unstakingPositionsFetcher.js +0 -1
- package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/tensor/helpers.d.ts +2 -0
- package/src/plugins/tensor/helpers.js +12 -1
- package/src/plugins/tensor/helpers.js.map +1 -1
- package/src/plugins/tensor/index.js +2 -0
- package/src/plugins/tensor/index.js.map +1 -1
- package/src/plugins/tensor/sharedEscrowFetcher.d.ts +3 -0
- package/src/plugins/tensor/sharedEscrowFetcher.js +52 -0
- package/src/plugins/tensor/sharedEscrowFetcher.js.map +1 -0
- 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
@@ -22,41 +22,64 @@ const solana_1 = require("../../utils/solana");
|
|
22
22
|
const fetchTokenSupplyAndDecimals_1 = require("../../utils/solana/fetchTokenSupplyAndDecimals");
|
23
23
|
const runInBatch_1 = __importDefault(require("../../utils/misc/runInBatch"));
|
24
24
|
const computeAndStoreLpPrice_1 = require("../../utils/misc/computeAndStoreLpPrice");
|
25
|
-
const getTokensPricesMap_1 = __importDefault(require("../../utils/misc/getTokensPricesMap"));
|
26
|
-
const getLpUnderlyingTokenSourceOld_1 = __importDefault(require("../../utils/misc/getLpUnderlyingTokenSourceOld"));
|
27
25
|
const getDecimalsForToken_1 = require("../../utils/misc/getDecimalsForToken");
|
28
|
-
const
|
26
|
+
const getLpTokenSource_1 = require("../../utils/misc/getLpTokenSource");
|
29
27
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
30
28
|
const client = (0, clients_1.getClientSolana)();
|
31
|
-
const farmsAccounts = yield
|
32
|
-
|
33
|
-
|
29
|
+
const [farmsAccounts, poolsAccounts] = yield Promise.all([
|
30
|
+
(0, solana_1.getParsedProgramAccounts)(client, oldLiquidities_1.aquafarmStruct, constants_1.aquafarmsProgram, filters_1.aquafarmFilters),
|
31
|
+
(0, solana_1.getParsedProgramAccounts)(client, oldLiquidities_1.poolInfoStruct, constants_1.poolsProgram, filters_1.poolsFilters),
|
32
|
+
]);
|
33
|
+
const mintsSet = new Set();
|
34
34
|
const tokensAccountAddresses = [];
|
35
35
|
farmsAccounts.forEach((farm) => {
|
36
|
-
|
36
|
+
mintsSet.add(farm.baseTokenMint.toString());
|
37
37
|
tokensAccountAddresses.push(farm.baseTokenVault);
|
38
38
|
});
|
39
39
|
poolsAccounts.forEach((pool) => {
|
40
|
-
|
40
|
+
mintsSet.add(pool.mintA.toString());
|
41
|
+
mintsSet.add(pool.mintB.toString());
|
41
42
|
tokensAccountAddresses.push(...[pool.tokenAccountA, pool.tokenAccountB]);
|
42
43
|
});
|
43
|
-
const
|
44
|
-
const tokensAccounts = yield
|
44
|
+
const mints = Array.from(mintsSet);
|
45
|
+
const [tokenPriceById, tokensAccounts, poolsSupplyAndDecimals, farmsSupplyAndDecimals,] = yield Promise.all([
|
46
|
+
cache.getTokenPricesAsMap(mints, portfolio_core_1.NetworkId.solana),
|
47
|
+
(0, solana_1.getParsedMultipleAccountsInfo)(client, solana_1.tokenAccountStruct, tokensAccountAddresses),
|
48
|
+
(0, runInBatch_1.default)(poolsAccounts.map((pool) => () => (0, fetchTokenSupplyAndDecimals_1.fetchTokenSupplyAndDecimals)(pool.tokenPool, client, 0))),
|
49
|
+
(0, runInBatch_1.default)(farmsAccounts.map((farm) => () => (0, fetchTokenSupplyAndDecimals_1.fetchTokenSupplyAndDecimals)(farm.farmTokenMint, client, 0))),
|
50
|
+
]);
|
51
|
+
const unknownMints = mints.filter((mint) => !tokenPriceById.get(mint));
|
52
|
+
const mintDecimals = yield (0, runInBatch_1.default)(unknownMints.map((mint) => () => (0, getDecimalsForToken_1.getDecimalsForToken)(cache, mint, portfolio_core_1.NetworkId.solana)));
|
45
53
|
const tokenAccountByAddress = new Map();
|
54
|
+
const tokensSupplyAndDecimalsByMint = new Map();
|
55
|
+
const decimalsByMint = new Map();
|
46
56
|
tokensAccounts.forEach((tAccount) => {
|
47
57
|
if (!tAccount)
|
48
58
|
return;
|
49
59
|
tokenAccountByAddress.set(tAccount.pubkey.toString(), tAccount);
|
50
60
|
});
|
51
|
-
|
52
|
-
const poolTokenInfoByAddress = new Map();
|
53
|
-
batchResult.forEach((r, index) => {
|
61
|
+
farmsSupplyAndDecimals.forEach((r, index) => {
|
54
62
|
if (r.status === 'rejected')
|
55
63
|
return;
|
56
64
|
if (!r.value)
|
57
65
|
return;
|
58
|
-
|
66
|
+
tokensSupplyAndDecimalsByMint.set(farmsAccounts[index].farmTokenMint.toString(), r.value);
|
59
67
|
});
|
68
|
+
poolsSupplyAndDecimals.forEach((r, index) => {
|
69
|
+
if (r.status === 'rejected')
|
70
|
+
return;
|
71
|
+
if (!r.value)
|
72
|
+
return;
|
73
|
+
tokensSupplyAndDecimalsByMint.set(poolsAccounts[index].tokenPool.toString(), r.value);
|
74
|
+
});
|
75
|
+
mintDecimals.forEach((r, index) => {
|
76
|
+
if (r.status === 'rejected')
|
77
|
+
return;
|
78
|
+
if (!r.value)
|
79
|
+
return;
|
80
|
+
decimalsByMint.set(mints[index], r.value);
|
81
|
+
});
|
82
|
+
const sources = [];
|
60
83
|
for (const poolAccount of poolsAccounts) {
|
61
84
|
if ([
|
62
85
|
poolAccount.tokenAccountA.toString(),
|
@@ -64,7 +87,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
64
87
|
].includes('11111111111111111111111111111111'))
|
65
88
|
continue;
|
66
89
|
const lpMint = poolAccount.tokenPool;
|
67
|
-
const lpSupplyAndDecimals =
|
90
|
+
const lpSupplyAndDecimals = tokensSupplyAndDecimalsByMint.get(lpMint.toString());
|
68
91
|
if (!lpSupplyAndDecimals)
|
69
92
|
continue;
|
70
93
|
const lpSupply = new bignumber_js_1.default(lpSupplyAndDecimals.supply).times(Math.pow(10, lpSupplyAndDecimals.decimals));
|
@@ -76,76 +99,53 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
76
99
|
continue;
|
77
100
|
const mintA = poolAccount.mintA.toString();
|
78
101
|
const mintB = poolAccount.mintB.toString();
|
79
|
-
const tokenPriceA =
|
80
|
-
const tokenPriceB =
|
81
|
-
const [decimalsA, decimalsB] =
|
82
|
-
(0
|
83
|
-
(0
|
84
|
-
]
|
102
|
+
const tokenPriceA = tokenPriceById.get(poolAccount.mintA.toString());
|
103
|
+
const tokenPriceB = tokenPriceById.get(poolAccount.mintB.toString());
|
104
|
+
const [decimalsA, decimalsB] = [
|
105
|
+
(tokenPriceA === null || tokenPriceA === void 0 ? void 0 : tokenPriceA.decimals) || decimalsByMint.get(mintA),
|
106
|
+
(tokenPriceB === null || tokenPriceB === void 0 ? void 0 : tokenPriceB.decimals) || decimalsByMint.get(mintB),
|
107
|
+
];
|
85
108
|
const lpDecimals = lpSupplyAndDecimals.decimals;
|
86
109
|
if (!decimalsA || !decimalsB)
|
87
110
|
continue;
|
88
111
|
const coinAmountWei = new bignumber_js_1.default(poolCoinTokenAccount.amount.toString());
|
89
112
|
const pcAmountWei = new bignumber_js_1.default(poolPcTokenAccount.amount.toString());
|
90
|
-
const
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
weight: 0.5,
|
96
|
-
}, {
|
97
|
-
address: mintB,
|
98
|
-
decimals: decimalsB,
|
99
|
-
reserveAmountRaw: pcAmountWei,
|
100
|
-
tokenPrice: tokenPriceB,
|
101
|
-
weight: 0.5,
|
102
|
-
});
|
103
|
-
if (underlyingSource)
|
104
|
-
yield cache.setTokenPriceSource(underlyingSource);
|
105
|
-
if (!tokenPriceA || !tokenPriceB)
|
106
|
-
continue;
|
107
|
-
const lpSource = (0, getLpTokenSourceRawOld_1.default)(portfolio_core_1.NetworkId.solana, lpMint.toString(), constants_1.platformId, { address: lpMint.toString(), decimals: lpDecimals, supplyRaw: lpSupply }, [
|
108
|
-
{
|
109
|
-
address: tokenPriceA.address,
|
110
|
-
decimals: tokenPriceA.decimals,
|
111
|
-
price: tokenPriceA.price,
|
112
|
-
reserveAmountRaw: coinAmountWei,
|
113
|
+
const tokenPriceSources = (0, getLpTokenSource_1.getLpTokenSource)({
|
114
|
+
lpDetails: {
|
115
|
+
address: lpMint.toString(),
|
116
|
+
decimals: lpDecimals,
|
117
|
+
supply: lpSupply.dividedBy(Math.pow(10, lpDecimals)).toNumber(),
|
113
118
|
},
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
119
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
120
|
+
platformId: constants_1.platformId,
|
121
|
+
poolUnderlyings: [
|
122
|
+
{
|
123
|
+
address: mintA,
|
124
|
+
decimals: decimalsA,
|
125
|
+
tokenPrice: tokenPriceA,
|
126
|
+
reserveAmount: coinAmountWei.dividedBy(Math.pow(10, decimalsA)).toNumber(),
|
127
|
+
},
|
128
|
+
{
|
129
|
+
address: mintB,
|
130
|
+
decimals: decimalsB,
|
131
|
+
reserveAmount: pcAmountWei.dividedBy(Math.pow(10, decimalsB)).toNumber(),
|
132
|
+
tokenPrice: tokenPriceB,
|
133
|
+
},
|
134
|
+
],
|
135
|
+
sourceId: lpMint.toString(),
|
136
|
+
elementName: 'Aquafarms (deprecated)',
|
137
|
+
priceUnderlyings: true,
|
138
|
+
});
|
139
|
+
sources.push(...tokenPriceSources);
|
134
140
|
}
|
135
|
-
const tokensSupDecResult = yield (0, runInBatch_1.default)(farmsAccounts.map((farm) => () => (0, fetchTokenSupplyAndDecimals_1.fetchTokenSupplyAndDecimals)(farm.farmTokenMint, client, 0)));
|
136
|
-
const tokensSuppliesAndDecimalsByMint = new Map();
|
137
|
-
tokensSupDecResult.forEach((r, index) => {
|
138
|
-
if (r.status === 'rejected')
|
139
|
-
return;
|
140
|
-
if (!r.value)
|
141
|
-
return;
|
142
|
-
tokensSuppliesAndDecimalsByMint.set(farmsAccounts[index].farmTokenMint.toString(), r.value);
|
143
|
-
});
|
144
141
|
for (let i = 0; i < farmsAccounts.length; i += 1) {
|
145
142
|
const aquafarm = farmsAccounts[i];
|
143
|
+
if (aquafarm.farmTokenMint.toString() !==
|
144
|
+
'DJseRvvLM53GrowUcjjCRYXJSzMH7dN5jrkGWaFAU3fm')
|
145
|
+
continue;
|
146
146
|
const baseMint = aquafarm.baseTokenMint.toString();
|
147
|
-
const
|
148
|
-
if (!
|
147
|
+
const baseTokenPrice = tokenPriceById.get(baseMint);
|
148
|
+
if (!baseTokenPrice)
|
149
149
|
continue;
|
150
150
|
const baseVault = tokenAccountByAddress.get(aquafarm.baseTokenVault.toString());
|
151
151
|
if (!baseVault)
|
@@ -153,18 +153,36 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
153
153
|
if (baseVault.amount.isZero())
|
154
154
|
continue;
|
155
155
|
const farmMint = aquafarm.farmTokenMint.toString();
|
156
|
-
const tokenSupplyRes =
|
156
|
+
const tokenSupplyRes = tokensSupplyAndDecimalsByMint.get(farmMint);
|
157
157
|
if (!tokenSupplyRes)
|
158
158
|
continue;
|
159
159
|
const { decimals: farmDecimals, supply: farmSupply } = tokenSupplyRes;
|
160
160
|
const baseVaultAmount = baseVault.amount
|
161
|
-
.div(Math.pow(10,
|
161
|
+
.div(Math.pow(10, baseTokenPrice.decimals))
|
162
162
|
.toNumber();
|
163
|
-
const baseVaultValue = baseVaultAmount *
|
163
|
+
const baseVaultValue = baseVaultAmount * baseTokenPrice.price;
|
164
164
|
if (baseVaultValue < computeAndStoreLpPrice_1.minimumLiquidity.toNumber())
|
165
165
|
continue;
|
166
166
|
const price = baseVaultValue / farmSupply;
|
167
|
-
|
167
|
+
if (aquafarm.farmTokenMint.toString() ===
|
168
|
+
'DJseRvvLM53GrowUcjjCRYXJSzMH7dN5jrkGWaFAU3fm') {
|
169
|
+
sources.push({
|
170
|
+
id: constants_1.orcaStakingPlatformId,
|
171
|
+
elementName: '(deprecated)',
|
172
|
+
weight: 1,
|
173
|
+
address: farmMint.toString(),
|
174
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
175
|
+
platformId: constants_1.platformId,
|
176
|
+
decimals: farmDecimals,
|
177
|
+
price,
|
178
|
+
underlyings: baseTokenPrice.underlyings || [
|
179
|
+
Object.assign(Object.assign({}, baseTokenPrice), { amountPerLp: 1 }),
|
180
|
+
],
|
181
|
+
timestamp: Date.now(),
|
182
|
+
});
|
183
|
+
continue;
|
184
|
+
}
|
185
|
+
sources.push({
|
168
186
|
id: constants_1.platformId,
|
169
187
|
elementName: 'Aquafarms (deprecated)',
|
170
188
|
weight: 1,
|
@@ -173,10 +191,13 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
173
191
|
platformId: constants_1.platformId,
|
174
192
|
decimals: farmDecimals,
|
175
193
|
price,
|
176
|
-
underlyings:
|
194
|
+
underlyings: baseTokenPrice.underlyings || [
|
195
|
+
Object.assign(Object.assign({}, baseTokenPrice), { amountPerLp: 1 }),
|
196
|
+
],
|
177
197
|
timestamp: Date.now(),
|
178
198
|
});
|
179
199
|
}
|
200
|
+
yield cache.setTokenPriceSources(sources);
|
180
201
|
});
|
181
202
|
const job = {
|
182
203
|
id: `${constants_1.platformId}-lp-tokens`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lpTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/lpTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"lpTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/lpTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAyE;AACzE,gEAAqC;AAErC,2CAKqB;AACrB,uCAA0D;AAC1D,iDAAsD;AACtD,6DAA0E;AAC1E,+CAK4B;AAC5B,gGAA6F;AAG7F,6EAAqD;AACrD,oFAA2E;AAC3E,8EAA2E;AAC3E,wEAAqE;AAErE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,CAAC,aAAa,EAAE,aAAa,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACvD,IAAA,iCAAwB,EACtB,MAAM,EACN,+BAAc,EACd,4BAAgB,EAChB,yBAAe,CAChB;QACD,IAAA,iCAAwB,EACtB,MAAM,EACN,+BAAc,EACd,wBAAY,EACZ,sBAAY,CACb;KACF,CAAC,CAAC;IAEH,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CAAC,CAAC;gBACpD,IAAI,CAAC,UAAU;oBAAE,OAAO;gBACxB,MAAM,CAAC,IAAI,CACT,IAAA,gCAAsB,EACpB,KAAK,CAAC,SAAS,EACf,IAAI,sBAAS,CAAC,KAAK,CAAC,WAAW,CAAC;qBAC7B,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC;qBACpC,QAAQ,EAAE,EACb,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CACF,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAEnC,MAAM,OAAO,GAA6B;YACxC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,QAAQ;YACf,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACjD,IAAI,EAAE;gBACJ,MAAM;aACP;SACF,CAAC;QACF,OAAO,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;CAAA;AA5DD,gEA4DC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"unstakingPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/picasso/unstakingPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAErC,2CAIqB;AAErB,qGAA6E;AAE7E,kEAA+D;AAE/D,MAAM,aAAa,GAAG,IAAI,6BAAa,CAAU,iCAAqB,EAAE;IACtE,MAAM,EAAE,oCAAwB;IAChC,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;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AG,EAAE,CAAC;QAEvD,MAAM,CAAC,IAAI,CACT,IAAA,gCAAsB,EACpB,KAAK,CAAC,SAAS,EACf,IAAI,sBAAS,CAAC,KAAK,CAAC,WAAW,CAAC;aAC7B,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC;aACpC,QAAQ,EAAE,EACb,0BAAS,CAAC,MAAM,EAChB,UAAU,EACV,SAAS,EACT;YACE,WAAW;YACX,WAAW,EAAE,WAAW,CAAC,OAAO,EAAE;SACnC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,QAAQ;YACf,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACjD,IAAI,EAAE;gBACJ,MAAM;aACP;
|
1
|
+
{"version":3,"file":"unstakingPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/picasso/unstakingPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAErC,2CAIqB;AAErB,qGAA6E;AAE7E,kEAA+D;AAE/D,MAAM,aAAa,GAAG,IAAI,6BAAa,CAAU,iCAAqB,EAAE;IACtE,MAAM,EAAE,oCAAwB;IAChC,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,0CAA0C;IAC1C,8DAA8D;IAE9D,MAAM,SAAS,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC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EACf,IAAI,sBAAS,CAAC,KAAK,CAAC,WAAW,CAAC;aAC7B,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC;aACpC,QAAQ,EAAE,EACb,0BAAS,CAAC,MAAM,EAChB,UAAU,EACV,SAAS,EACT;YACE,WAAW;YACX,WAAW,EAAE,WAAW,CAAC,OAAO,EAAE;SACnC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,QAAQ;YACf,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACjD,IAAI,EAAE;gBACJ,MAAM;aACP;SACF;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,sBAAsB;IACvC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -54,30 +54,30 @@ function sushiV3PairToUniV2(pair) {
|
|
54
54
|
}
|
55
55
|
function getV3PairsAddresses(url, length = 300) {
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
57
|
-
const query = (0, graphql_request_1.gql) `
|
58
|
-
{
|
59
|
-
pools(
|
60
|
-
orderBy: totalValueLockedUSD
|
61
|
-
first: ${length}
|
62
|
-
orderDirection: desc
|
63
|
-
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
-
) {
|
65
|
-
id
|
66
|
-
token0Price
|
67
|
-
token1Price
|
68
|
-
liquidity
|
69
|
-
token0 {
|
70
|
-
id
|
71
|
-
totalSupply
|
72
|
-
decimals
|
73
|
-
}
|
74
|
-
token1 {
|
75
|
-
id
|
76
|
-
totalSupply
|
77
|
-
decimals
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
57
|
+
const query = (0, graphql_request_1.gql) `
|
58
|
+
{
|
59
|
+
pools(
|
60
|
+
orderBy: totalValueLockedUSD
|
61
|
+
first: ${length}
|
62
|
+
orderDirection: desc
|
63
|
+
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
+
) {
|
65
|
+
id
|
66
|
+
token0Price
|
67
|
+
token1Price
|
68
|
+
liquidity
|
69
|
+
token0 {
|
70
|
+
id
|
71
|
+
totalSupply
|
72
|
+
decimals
|
73
|
+
}
|
74
|
+
token1 {
|
75
|
+
id
|
76
|
+
totalSupply
|
77
|
+
decimals
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
81
|
`;
|
82
82
|
const res = yield (0, graphql_request_1.default)(url, query);
|
83
83
|
const pools = res.pools;
|
@@ -3,8 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.findPowerUserAllocation = void 0;
|
6
|
+
exports.findMarginPDA = exports.findPowerUserAllocation = void 0;
|
7
|
+
const bn_js_1 = __importDefault(require("bn.js"));
|
8
|
+
const web3_js_1 = require("@solana/web3.js");
|
7
9
|
const powerUsers_json_1 = __importDefault(require("./powerUsers.json"));
|
10
|
+
const constants_1 = require("./constants");
|
8
11
|
function findPowerUserAllocation(owner) {
|
9
12
|
const users = powerUsers_json_1.default;
|
10
13
|
const amount = users[owner];
|
@@ -13,4 +16,12 @@ function findPowerUserAllocation(owner) {
|
|
13
16
|
return amount;
|
14
17
|
}
|
15
18
|
exports.findPowerUserAllocation = findPowerUserAllocation;
|
19
|
+
const findMarginPDA = (owner) => web3_js_1.PublicKey.findProgramAddressSync([
|
20
|
+
Buffer.from('margin'),
|
21
|
+
web3_js_1.PublicKey.findProgramAddressSync([], constants_1.tensorPid)[0].toBytes(),
|
22
|
+
new web3_js_1.PublicKey(owner).toBytes(),
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
24
|
+
new bn_js_1.default(0).toArrayLike(Uint8Array, 'le', 2),
|
25
|
+
], constants_1.tensorPid)[0];
|
26
|
+
exports.findMarginPDA = findMarginPDA;
|
16
27
|
//# sourceMappingURL=helpers.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,wEAA2C;
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAuB;AACvB,6CAA4C;AAC5C,wEAA2C;AAC3C,2CAAwC;AAExC,SAAgB,uBAAuB,CAAC,KAAa;IACnD,MAAM,KAAK,GAA8B,yBAAU,CAAC;IACpD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;IAC5B,IAAI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IAC9B,OAAO,MAAM,CAAC;AAChB,CAAC;AALD,0DAKC;AAEM,MAAM,aAAa,GAAG,CAAC,KAAa,EAAE,EAAE,CAC7C,mBAAS,CAAC,sBAAsB,CAC9B;IACE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACrB,mBAAS,CAAC,sBAAsB,CAAC,EAAE,EAAE,qBAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE;IAC5D,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE;IAC9B,8DAA8D;IAC9D,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,UAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;CAClD,EACD,qBAAS,CACV,CAAC,CAAC,CAAC,CAAC;AAVM,QAAA,aAAa,iBAUnB"}
|
@@ -8,10 +8,12 @@ const constants_1 = require("./constants");
|
|
8
8
|
const bidsFetcher_1 = __importDefault(require("./bidsFetcher"));
|
9
9
|
const locksFetcher_1 = __importDefault(require("./locksFetcher"));
|
10
10
|
const airdropPowerUsersFetcher_1 = __importDefault(require("./airdropPowerUsersFetcher"));
|
11
|
+
const sharedEscrowFetcher_1 = __importDefault(require("./sharedEscrowFetcher"));
|
11
12
|
exports.platforms = [constants_1.platform];
|
12
13
|
exports.fetchers = [
|
13
14
|
bidsFetcher_1.default,
|
14
15
|
locksFetcher_1.default,
|
15
16
|
airdropPowerUsersFetcher_1.default,
|
17
|
+
sharedEscrowFetcher_1.default,
|
16
18
|
];
|
17
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,gEAAwC;AACxC,kEAA0C;AAC1C,0FAAiE;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,gEAAwC;AACxC,kEAA0C;AAC1C,0FAAiE;AACjE,gFAAwD;AAE3C,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,QAAQ,GAAc;IACjC,qBAAW;IACX,sBAAY;IACZ,kCAAuB;IACvB,6BAAmB;CACpB,CAAC"}
|
@@ -0,0 +1,52 @@
|
|
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 constants_1 = require("./constants");
|
18
|
+
const clients_1 = require("../../utils/clients");
|
19
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
20
|
+
const helpers_1 = require("./helpers");
|
21
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
22
|
+
const client = (0, clients_1.getClientSolana)();
|
23
|
+
const marginPDA = (0, helpers_1.findMarginPDA)(owner);
|
24
|
+
const solRawBalance = yield client.getBalance(marginPDA);
|
25
|
+
if (!solRawBalance || solRawBalance === 0)
|
26
|
+
return [];
|
27
|
+
const rent = yield client.getMinimumBalanceForRentExemption(8);
|
28
|
+
const solTokenPrice = yield cache.getTokenPrice(portfolio_core_1.solanaNativeAddress, portfolio_core_1.NetworkId.solana);
|
29
|
+
const amount = new bignumber_js_1.default(solRawBalance)
|
30
|
+
.minus(rent)
|
31
|
+
.dividedBy(Math.pow(10, portfolio_core_1.solanaNetwork.native.decimals))
|
32
|
+
.toNumber();
|
33
|
+
const asset = (0, tokenPriceToAssetToken_1.default)(portfolio_core_1.solanaNativeAddress, amount, portfolio_core_1.NetworkId.solana, solTokenPrice);
|
34
|
+
return [
|
35
|
+
{
|
36
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
37
|
+
label: 'Deposit',
|
38
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
39
|
+
platformId: constants_1.platformId,
|
40
|
+
name: 'Shared Escrow',
|
41
|
+
value: asset.value,
|
42
|
+
data: { assets: [asset] },
|
43
|
+
},
|
44
|
+
];
|
45
|
+
});
|
46
|
+
const fetcher = {
|
47
|
+
id: `${constants_1.platformId}-shared-escrow`,
|
48
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
49
|
+
executor,
|
50
|
+
};
|
51
|
+
exports.default = fetcher;
|
52
|
+
//# sourceMappingURL=sharedEscrowFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sharedEscrowFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/sharedEscrowFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAAyC;AACzC,iDAAsD;AACtD,qGAA6E;AAC7E,uCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,IAAA,uBAAa,EAAC,KAAK,CAAC,CAAC;IAEvC,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAEzD,IAAI,CAAC,aAAa,IAAI,aAAa,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC,CAAC,CAAC;IAE/D,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,aAAa,CAC7C,oCAAmB,EACnB,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,MAAM,GAAG,IAAI,sBAAS,CAAC,aAAa,CAAC;SACxC,KAAK,CAAC,IAAI,CAAC;SACX,SAAS,CAAC,SAAA,EAAE,EAAI,8BAAa,CAAC,MAAM,CAAC,QAAQ,CAAA,CAAC;SAC9C,QAAQ,EAAE,CAAC;IAEd,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,oCAAmB,EACnB,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,aAAa,CACd,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE;SAC1B;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AACF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -40,28 +40,28 @@ function getPairKey(version) {
|
|
40
40
|
exports.getPairKey = getPairKey;
|
41
41
|
function getPairsV2FromTheGraph(url, length = 300) {
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
43
|
-
const query = (0, graphql_request_1.gql) `
|
44
|
-
{
|
45
|
-
pairs(
|
46
|
-
orderBy: reserveUSD
|
47
|
-
first: ${length}
|
48
|
-
orderDirection: desc
|
49
|
-
where: { trackedReserveETH_not: "0" }
|
50
|
-
) {
|
51
|
-
id
|
52
|
-
reserve0
|
53
|
-
reserve1
|
54
|
-
totalSupply
|
55
|
-
token0 {
|
56
|
-
id
|
57
|
-
decimals
|
58
|
-
}
|
59
|
-
token1 {
|
60
|
-
id
|
61
|
-
decimals
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
43
|
+
const query = (0, graphql_request_1.gql) `
|
44
|
+
{
|
45
|
+
pairs(
|
46
|
+
orderBy: reserveUSD
|
47
|
+
first: ${length}
|
48
|
+
orderDirection: desc
|
49
|
+
where: { trackedReserveETH_not: "0" }
|
50
|
+
) {
|
51
|
+
id
|
52
|
+
reserve0
|
53
|
+
reserve1
|
54
|
+
totalSupply
|
55
|
+
token0 {
|
56
|
+
id
|
57
|
+
decimals
|
58
|
+
}
|
59
|
+
token1 {
|
60
|
+
id
|
61
|
+
decimals
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
65
|
`;
|
66
66
|
const res = yield (0, graphql_request_1.default)(url, query);
|
67
67
|
const pairs = res.pairs;
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
|
4
|
-
exports.infoQueryMsg = JSON.parse(`{
|
5
|
-
"info": {}
|
4
|
+
exports.infoQueryMsg = JSON.parse(`{
|
5
|
+
"info": {}
|
6
6
|
}`);
|
7
|
-
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
-
"token_info": {}
|
7
|
+
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
+
"token_info": {}
|
9
9
|
}`);
|
10
|
-
exports.minterQueryMsg = JSON.parse(`{
|
11
|
-
"minter": {}
|
10
|
+
exports.minterQueryMsg = JSON.parse(`{
|
11
|
+
"minter": {}
|
12
12
|
}`);
|
13
|
-
exports.poolQueryMsg = JSON.parse(`{
|
14
|
-
"pool": {}
|
13
|
+
exports.poolQueryMsg = JSON.parse(`{
|
14
|
+
"pool": {}
|
15
15
|
}`);
|
16
16
|
//# sourceMappingURL=constants.js.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
function getQueryBalanceByOwner(owner) {
|
4
|
-
return JSON.parse(`{
|
5
|
-
"balance": {
|
6
|
-
"address": "${owner}"
|
7
|
-
}
|
4
|
+
return JSON.parse(`{
|
5
|
+
"balance": {
|
6
|
+
"address": "${owner}"
|
7
|
+
}
|
8
8
|
}`);
|
9
9
|
}
|
10
10
|
exports.default = getQueryBalanceByOwner;
|