@sonarwatch/portfolio-plugins 0.14.37 → 0.14.39
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1748 -1740
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/plugins/adrena/alpPriceJob.d.ts +3 -0
- package/src/plugins/adrena/alpPriceJob.js +49 -0
- package/src/plugins/adrena/alpPriceJob.js.map +1 -0
- package/src/plugins/adrena/index.js +2 -1
- package/src/plugins/adrena/index.js.map +1 -1
- package/src/plugins/adrena/structs.d.ts +21 -0
- package/src/plugins/adrena/structs.js +21 -1
- package/src/plugins/adrena/structs.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/bonkrewards/positionFetcher.js +0 -2
- package/src/plugins/bonkrewards/positionFetcher.js.map +1 -1
- package/src/plugins/meteora/dlmmVaultsFetcher.js +37 -44
- package/src/plugins/meteora/dlmmVaultsFetcher.js.map +1 -1
- package/src/plugins/meteora/struct.d.ts +3 -3
- package/src/plugins/meteora/struct.js +3 -3
- package/src/plugins/meteora/struct.js.map +1 -1
- package/src/plugins/pyth/pricingJob.js +11 -0
- package/src/plugins/pyth/pricingJob.js.map +1 -1
- package/src/plugins/scallop/obligationsFetcher.js +1 -0
- package/src/plugins/scallop/obligationsFetcher.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/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/getSupply.d.ts +4 -0
- package/src/utils/solana/getSupply.js +28 -0
- package/src/utils/solana/getSupply.js.map +1 -0
package/README.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
# @sonarwatch/portfolio-plugins
|
2
|
-
|
3
|
-
This library is @sonarwatch/portfolio-plugins
|
1
|
+
# @sonarwatch/portfolio-plugins
|
2
|
+
|
3
|
+
This library is @sonarwatch/portfolio-plugins
|
package/package.json
CHANGED
@@ -0,0 +1,49 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
|
+
const web3_js_1 = require("@solana/web3.js");
|
14
|
+
const constants_1 = require("./constants");
|
15
|
+
const clients_1 = require("../../utils/clients");
|
16
|
+
const structs_1 = require("./structs");
|
17
|
+
const getSupply_1 = require("../../utils/solana/getSupply");
|
18
|
+
const constants_2 = require("../abex/constants");
|
19
|
+
const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
|
20
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
21
|
+
const client = (0, clients_1.getClientSolana)();
|
22
|
+
const alpSupply = yield (0, getSupply_1.getSupply)(client, new web3_js_1.PublicKey(constants_1.alpMint));
|
23
|
+
if (!alpSupply)
|
24
|
+
throw new Error('Cannot get ALP supply');
|
25
|
+
const poolAccount = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, structs_1.poolStruct, new web3_js_1.PublicKey('4bQRutgDJs6vuh6ZcWaPVXiQaBzbHketjbCDjL4oRN34'));
|
26
|
+
if (!poolAccount)
|
27
|
+
throw new Error('Cannot get ALP pool');
|
28
|
+
const aumUsd = poolAccount.aumUsdLow.div(Math.pow(10, 6));
|
29
|
+
if (aumUsd.isZero())
|
30
|
+
throw new Error('Adrena aumUsd is 0');
|
31
|
+
const price = aumUsd.div(alpSupply).toNumber();
|
32
|
+
yield cache.setTokenPriceSource({
|
33
|
+
address: constants_1.alpMint,
|
34
|
+
decimals: constants_2.alpDecimals,
|
35
|
+
id: 'adrena',
|
36
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
37
|
+
platformId: portfolio_core_1.walletTokensPlatformId,
|
38
|
+
price,
|
39
|
+
timestamp: Date.now(),
|
40
|
+
weight: 1,
|
41
|
+
});
|
42
|
+
});
|
43
|
+
const job = {
|
44
|
+
id: `${constants_1.platformId}-alp-price`,
|
45
|
+
executor,
|
46
|
+
label: 'realtime',
|
47
|
+
};
|
48
|
+
exports.default = job;
|
49
|
+
//# sourceMappingURL=alpPriceJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"alpPriceJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrena/alpPriceJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA+E;AAC/E,6CAA4C;AAG5C,2CAAkD;AAClD,iDAAsD;AACtD,uCAAuC;AACvC,4DAAyD;AACzD,iDAAgD;AAChD,kFAA+E;AAE/E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,MAAM,IAAA,qBAAS,EAAC,MAAM,EAAE,IAAI,mBAAS,CAAC,mBAAO,CAAC,CAAC,CAAC;IAClE,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAEzD,MAAM,WAAW,GAAG,MAAM,IAAA,2CAAoB,EAC5C,MAAM,EACN,oBAAU,EACV,IAAI,mBAAS,CAAC,8CAA8C,CAAC,CAC9D,CAAC;IACF,IAAI,CAAC,WAAW;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;IAClD,IAAI,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAE3D,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC/C,MAAM,KAAK,CAAC,mBAAmB,CAAC;QAC9B,OAAO,EAAE,mBAAO;QAChB,QAAQ,EAAE,uBAAW;QACrB,EAAE,EAAE,QAAQ;QACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,UAAU,EAAE,uCAAsB;QAClC,KAAK;QACL,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;QACrB,MAAM,EAAE,CAAC;KACV,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,QAAQ;IACR,KAAK,EAAE,UAAU;CAClB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -6,9 +6,10 @@ 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 custodiesJob_1 = __importDefault(require("./custodiesJob"));
|
9
|
+
const alpPriceJob_1 = __importDefault(require("./alpPriceJob"));
|
9
10
|
const positionsFetcher_1 = __importDefault(require("./positionsFetcher"));
|
10
11
|
const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
|
11
12
|
exports.platforms = [constants_1.platform];
|
12
|
-
exports.jobs = [custodiesJob_1.default];
|
13
|
+
exports.jobs = [custodiesJob_1.default, alpPriceJob_1.default];
|
13
14
|
exports.fetchers = [positionsFetcher_1.default, stakingFetcher_1.default];
|
14
15
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrena/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,kEAA0C;AAC1C,0EAAkD;AAClD,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,sBAAY,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrena/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,kEAA0C;AAC1C,gEAAwC;AACxC,0EAAkD;AAClD,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,sBAAY,EAAE,qBAAW,CAAC,CAAC;AAC1C,QAAA,QAAQ,GAAc,CAAC,0BAAgB,EAAE,wBAAc,CAAC,CAAC"}
|
@@ -176,6 +176,27 @@ export type LiquidStake = {
|
|
176
176
|
overlapAmount: BigNumber;
|
177
177
|
};
|
178
178
|
export declare const liquidStakeStruct: BeetStruct<LiquidStake, Partial<LiquidStake>>;
|
179
|
+
export type Pool = {
|
180
|
+
buffer: number;
|
181
|
+
padding: Buffer;
|
182
|
+
bump: number;
|
183
|
+
lpTokenBump: number;
|
184
|
+
nbStableCustody: number;
|
185
|
+
initialized: number;
|
186
|
+
allowTrade: number;
|
187
|
+
allowSwap: number;
|
188
|
+
liquidityState: number;
|
189
|
+
registeredCustodyCount: number;
|
190
|
+
name: Buffer;
|
191
|
+
custodies: PublicKey[];
|
192
|
+
padding1: number[];
|
193
|
+
whitelistedSwapper: PublicKey;
|
194
|
+
ratios: Buffer;
|
195
|
+
padding2: number[];
|
196
|
+
aumUsdHigh: BigNumber;
|
197
|
+
aumUsdLow: BigNumber;
|
198
|
+
};
|
199
|
+
export declare const poolStruct: FixableBeetStruct<Pool, Partial<Pool>>;
|
179
200
|
export type UserStaking = {
|
180
201
|
bump: number;
|
181
202
|
threadAuthorityBump: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.userStakingStruct = exports.liquidStakeStruct = exports.lockedStakeStruct = exports.positionStruct = exports.custodyStruct = exports.borrowRateStateStruct = exports.positionsAccountingStruct = exports.StableLockedAmountStatStruct = exports.u128SplitStruct = exports.tradeStatsStruct = exports.volumeStatsStruct = exports.assetsStruct = exports.feesStatsStruct = exports.borrowRateParamsStruct = exports.feesStruct = exports.pricingParamsStruct = void 0;
|
3
|
+
exports.userStakingStruct = exports.poolStruct = exports.liquidStakeStruct = exports.lockedStakeStruct = exports.positionStruct = exports.custodyStruct = exports.borrowRateStateStruct = exports.positionsAccountingStruct = exports.StableLockedAmountStatStruct = exports.u128SplitStruct = exports.tradeStatsStruct = exports.volumeStatsStruct = exports.assetsStruct = exports.feesStatsStruct = exports.borrowRateParamsStruct = exports.feesStruct = exports.pricingParamsStruct = void 0;
|
4
4
|
const beet_1 = require("@metaplex-foundation/beet");
|
5
5
|
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
6
|
const solana_1 = require("../../utils/solana");
|
@@ -164,6 +164,26 @@ exports.liquidStakeStruct = new beet_1.BeetStruct([
|
|
164
164
|
['overlapTime', solana_1.i64],
|
165
165
|
['overlapAmount', solana_1.u64],
|
166
166
|
], (args) => args);
|
167
|
+
exports.poolStruct = new beet_1.FixableBeetStruct([
|
168
|
+
// ['padding', blob(8 + 8 + 32 + 32 * 8 + 32 + 32 + 32 + 8 * 8 + 16 + 8)],
|
169
|
+
['buffer', (0, solana_1.blob)(8)],
|
170
|
+
['bump', beet_1.u8],
|
171
|
+
['lpTokenBump', beet_1.u8],
|
172
|
+
['nbStableCustody', beet_1.u8],
|
173
|
+
['initialized', beet_1.u8],
|
174
|
+
['allowTrade', beet_1.u8],
|
175
|
+
['allowSwap', beet_1.u8],
|
176
|
+
['liquidityState', beet_1.u8],
|
177
|
+
['registeredCustodyCount', beet_1.u8],
|
178
|
+
['name', (0, solana_1.blob)(32)],
|
179
|
+
['custodies', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 8)],
|
180
|
+
['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
|
181
|
+
['whitelistedSwapper', beet_solana_1.publicKey],
|
182
|
+
['ratios', (0, solana_1.blob)(64)],
|
183
|
+
['padding2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 16)],
|
184
|
+
['aumUsdHigh', solana_1.u64],
|
185
|
+
['aumUsdLow', solana_1.u64],
|
186
|
+
], (args) => args);
|
167
187
|
exports.userStakingStruct = new beet_1.FixableBeetStruct([
|
168
188
|
['bump', beet_1.u8],
|
169
189
|
['threadAuthorityBump', beet_1.u8],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrena/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,+CAAoD;AASvC,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,oBAAoB,EAAE,UAAG,CAAC;IAC3B,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,sBAAsB,EAAE,YAAG,CAAC;IAC7B,CAAC,mCAAmC,EAAE,YAAG,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAqB,CAChC,CAAC;AAgBW,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,QAAQ,EAAE,UAAG,CAAC;IACf,CAAC,SAAS,EAAE,UAAG,CAAC;IAChB,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,eAAe,EAAE,UAAG,CAAC;IACtB,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,eAAe,EAAE,UAAG,CAAC;I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,EAAE,YAAG,CAAC;IACpB,CAAC,eAAe,EAAE,YAAG,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAmB,CAC9B,CAAC;AAWW,QAAA,iBAAiB,GAAG,IAAI,wBAAiB,CACpD;IACE,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,qBAAqB,EAAE,SAAE,CAAC;IAC3B,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC,yBAAyB,EAAE,YAAG,CAAC;IAChC,CAAC,aAAa,EAAE,yBAAiB,CAAC;IAClC,CAAC,cAAc,EAAE,IAAA,4BAAqB,EAAC,yBAAiB,EAAE,EAAE,CAAC,CAAC;CAC/D,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAmB,CAC9B,CAAC"}
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrena/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,+CAAoD;AASvC,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,oBAAoB,EAAE,UAAG,CAAC;IAC3B,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,sBAAsB,EAAE,YAAG,CAAC;IAC7B,CAAC,mCAAmC,EAAE,YAAG,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAqB,CAChC,CAAC;AAgBW,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,QAAQ,EAAE,UAAG,CAAC;IACf,CAAC,SAAS,EAAE,UAAG,CAAC;IAChB,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,eAAe,EAAE,UAAG,CAAC;IACtB,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,eAAe,EAAE,UAAG,CAAC;I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E,CAAC,CAAC,CAAC;IACzC,CAAC,yBAAyB,EAAE,YAAG,CAAC;IAChC,CAAC,aAAa,EAAE,yBAAiB,CAAC;IAClC,CAAC,cAAc,EAAE,IAAA,4BAAqB,EAAC,yBAAiB,EAAE,EAAE,CAAC,CAAC;CAC/D,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAmB,CAC9B,CAAC"}
|
@@ -36,27 +36,27 @@ exports.getBalancerPoolsV2 = void 0;
|
|
36
36
|
const graphql_request_1 = __importStar(require("graphql-request"));
|
37
37
|
function getBalancerPoolsV2(url) {
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
39
|
-
const query = (0, graphql_request_1.gql) `
|
40
|
-
query pools {
|
41
|
-
pools(
|
42
|
-
first: 1000
|
43
|
-
orderBy: totalLiquidity
|
44
|
-
orderDirection: desc
|
45
|
-
where: { totalLiquidity_gt: "500" }
|
46
|
-
) {
|
47
|
-
id
|
48
|
-
address
|
49
|
-
symbol
|
50
|
-
totalLiquidity
|
51
|
-
totalShares
|
52
|
-
tokens {
|
53
|
-
balance
|
54
|
-
decimals
|
55
|
-
symbol
|
56
|
-
address
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
39
|
+
const query = (0, graphql_request_1.gql) `
|
40
|
+
query pools {
|
41
|
+
pools(
|
42
|
+
first: 1000
|
43
|
+
orderBy: totalLiquidity
|
44
|
+
orderDirection: desc
|
45
|
+
where: { totalLiquidity_gt: "500" }
|
46
|
+
) {
|
47
|
+
id
|
48
|
+
address
|
49
|
+
symbol
|
50
|
+
totalLiquidity
|
51
|
+
totalShares
|
52
|
+
tokens {
|
53
|
+
balance
|
54
|
+
decimals
|
55
|
+
symbol
|
56
|
+
address
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
60
|
`;
|
61
61
|
const res = yield (0, graphql_request_1.default)(url, query);
|
62
62
|
const pools = res.pools;
|
@@ -32,8 +32,6 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
32
32
|
1000;
|
33
33
|
if (account.depositAmount.isZero())
|
34
34
|
continue;
|
35
|
-
if (account.effectiveStake.isZero())
|
36
|
-
continue;
|
37
35
|
assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.bonkMint, account.depositAmount.dividedBy(Math.pow(10, constants_1.bonkDecimals)).toNumber(), portfolio_core_1.NetworkId.solana, bonkTokenPrice)), { attributes: {
|
38
36
|
lockedUntil,
|
39
37
|
} }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"positionFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bonkrewards/positionFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAA2E;AAE3E,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAsD;AACtD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,mCAAyB,EACzB,oBAAQ,EACR,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,oBAAQ,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAC7E,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,WAAW,GACf,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE;YAClC,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;YACpC,IAAI,CAAC;QACP,IAAI,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE;YAAE,SAAS;
|
1
|
+
{"version":3,"file":"positionFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bonkrewards/positionFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAA2E;AAE3E,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAsD;AACtD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,mCAAyB,EACzB,oBAAQ,EACR,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,oBAAQ,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAC7E,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,WAAW,GACf,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE;YAClC,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;YACpC,IAAI,CAAC;QACP,IAAI,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE;YAAE,SAAS;QAE7C,MAAM,CAAC,IAAI,iCACN,IAAA,gCAAsB,EACvB,oBAAQ,EACR,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,wBAAY,CAAA,CAAC,CAAC,QAAQ,EAAE,EAC9D,0BAAS,CAAC,MAAM,EAChB,cAAc,CACf,KACD,UAAU,EAAE;gBACV,WAAW;aACZ,IACD,CAAC;IACL,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,EAAE,MAAM,EAAE;YAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -21,9 +21,10 @@ const constants_1 = require("./constants");
|
|
21
21
|
const solana_1 = require("../../utils/solana");
|
22
22
|
const struct_1 = require("./struct");
|
23
23
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
24
|
-
const slotTtl = 30000;
|
25
|
-
|
26
|
-
|
24
|
+
// const slotTtl = 30000;
|
25
|
+
// const slot: number | null = null;
|
26
|
+
// const slotUpdate = 0;
|
27
|
+
const dustFilter = 0.00001;
|
27
28
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
28
29
|
const client = (0, clients_1.getClientSolana)();
|
29
30
|
const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.escrowStruct, constants_1.dlmmVaultProgramId, [
|
@@ -34,18 +35,6 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
34
35
|
bytes: owner,
|
35
36
|
},
|
36
37
|
},
|
37
|
-
// {
|
38
|
-
// memcmp: {
|
39
|
-
// offset: 8,
|
40
|
-
// bytes: 'CGZvC5MWsu1bc3vRis619ZBEtvuPqoXrtBMeV9RrKFJp',
|
41
|
-
// },
|
42
|
-
// },
|
43
|
-
// {
|
44
|
-
// memcmp: {
|
45
|
-
// offset: 96,
|
46
|
-
// bytes: '1', // refunded === false
|
47
|
-
// },
|
48
|
-
// },
|
49
38
|
]);
|
50
39
|
if (accounts.length === 0)
|
51
40
|
return [];
|
@@ -55,12 +44,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
55
44
|
});
|
56
45
|
if (!vaults)
|
57
46
|
return [];
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
47
|
+
const time = Date.now();
|
48
|
+
// Looks like Meteora is using timesteamp instead of slot now inside their accounts
|
49
|
+
// if (!slot || Date.now() - slotTtl > slotUpdate) {
|
50
|
+
// slot = await client.getSlot();
|
51
|
+
// slotUpdate = Date.now();
|
52
|
+
// }
|
53
|
+
// if (!slot) return [];
|
64
54
|
const tokenPrices = yield cache.getTokenPricesAsMap(accounts
|
65
55
|
.map((a) => {
|
66
56
|
const v = vaults[a.dlmmVault.toString()];
|
@@ -69,13 +59,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
69
59
|
.flat(), portfolio_core_1.NetworkId.solana);
|
70
60
|
const assets = [];
|
71
61
|
accounts.forEach((escrow) => {
|
72
|
-
if (!slot)
|
73
|
-
return;
|
74
62
|
const vault = vaults[escrow.dlmmVault.toString()];
|
75
|
-
if (!vault)
|
63
|
+
if (!vault || !vault.endVestingTs || !vault.startVestingTs)
|
64
|
+
return;
|
65
|
+
if (time > Number(vault.endVestingTs))
|
76
66
|
return;
|
77
67
|
// Vesting not started yet
|
78
|
-
if (
|
68
|
+
if (Date.now() < Number(vault.startVestingTs)) {
|
79
69
|
const tpQuote = tokenPrices.get(vault.quoteMint);
|
80
70
|
if (!tpQuote)
|
81
71
|
return;
|
@@ -95,11 +85,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
95
85
|
return;
|
96
86
|
const amount = new bignumber_js_1.default(escrow.totalDeposit)
|
97
87
|
.div(Math.pow(10, tpQuote.decimals))
|
98
|
-
.times(1 - 1 / filledRatio)
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
88
|
+
.times(1 - 1 / filledRatio);
|
89
|
+
if (amount.isGreaterThan(dustFilter))
|
90
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.quoteMint, amount.toNumber(), portfolio_core_1.NetworkId.solana, tpQuote, undefined, {
|
91
|
+
isClaimable: true,
|
92
|
+
}));
|
103
93
|
}
|
104
94
|
const tpBase = tokenPrices.get(vault.baseMint);
|
105
95
|
if (!tpBase)
|
@@ -107,26 +97,29 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
107
97
|
const shares = new bignumber_js_1.default(escrow.totalDeposit).div(vault.totalDeposit);
|
108
98
|
const totalAmount = new bignumber_js_1.default(vault.boughtToken).times(shares);
|
109
99
|
const remainingAmount = totalAmount.minus(escrow.claimedToken);
|
110
|
-
if (remainingAmount.
|
100
|
+
if (remainingAmount.isLessThan(dustFilter))
|
111
101
|
return;
|
112
102
|
let claimableAmount = new bignumber_js_1.default(remainingAmount.toString());
|
113
|
-
if (
|
114
|
-
const
|
115
|
-
let
|
116
|
-
? Number(vault.
|
117
|
-
: escrow.
|
118
|
-
if (
|
119
|
-
|
120
|
-
claimableAmount =
|
103
|
+
if (time < Number(vault.endVestingTs)) {
|
104
|
+
const amountPerSec = new bignumber_js_1.default(totalAmount).div(Number(vault.endVestingTs) - Number(vault.startVestingTs));
|
105
|
+
let lastClaimedTs = escrow.lastClaimedTs.isZero()
|
106
|
+
? Number(vault.startVestingTs)
|
107
|
+
: escrow.lastClaimedTs.toNumber();
|
108
|
+
if (lastClaimedTs > time)
|
109
|
+
lastClaimedTs = time;
|
110
|
+
claimableAmount = amountPerSec.times(Math.min(time, Number(vault.endVestingTs)) - lastClaimedTs);
|
121
111
|
}
|
122
|
-
|
123
|
-
|
112
|
+
claimableAmount = claimableAmount.div(Math.pow(10, tpBase.decimals));
|
113
|
+
if (claimableAmount.isGreaterThan(dustFilter)) {
|
114
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.baseMint, claimableAmount.toNumber(), portfolio_core_1.NetworkId.solana, tpBase, undefined, {
|
124
115
|
isClaimable: true,
|
125
116
|
}));
|
126
117
|
}
|
127
|
-
const vestingAmount = remainingAmount
|
128
|
-
|
129
|
-
|
118
|
+
const vestingAmount = remainingAmount
|
119
|
+
.minus(claimableAmount)
|
120
|
+
.div(Math.pow(10, tpBase.decimals));
|
121
|
+
if (vestingAmount.isGreaterThan(dustFilter)) {
|
122
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.baseMint, vestingAmount.toNumber(), portfolio_core_1.NetworkId.solana, tpBase, undefined, {
|
130
123
|
tags: ['Vesting'],
|
131
124
|
}));
|
132
125
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;;;;AAEnB,+DAKoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,2CAA4E;AAE5E,+CAA8D;AAC9D,qCAAwC;AACxC,qGAA6E;AAE7E,
|
1
|
+
{"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;;;;AAEnB,+DAKoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,2CAA4E;AAE5E,+CAA8D;AAC9D,qCAAwC;AACxC,qGAA6E;AAE7E,yBAAyB;AACzB,oCAAoC;AACpC,wBAAwB;AAExB,MAAM,UAAU,GAAG,OAAO,CAAC;AAE3B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE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QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE;gBACJ,MAAM;aACP;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAClD;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -258,7 +258,7 @@ export type Escrow = {
|
|
258
258
|
owner: PublicKey;
|
259
259
|
totalDeposit: BigNumber;
|
260
260
|
claimedToken: BigNumber;
|
261
|
-
|
261
|
+
lastClaimedTs: BigNumber;
|
262
262
|
refunded: number;
|
263
263
|
padding1: number[];
|
264
264
|
padding: BigNumber[];
|
@@ -280,8 +280,8 @@ export type DlmmVault = {
|
|
280
280
|
boughtToken: string;
|
281
281
|
totalRefund: string;
|
282
282
|
totalClaimedToken: string;
|
283
|
-
|
284
|
-
|
283
|
+
startVestingTs: string;
|
284
|
+
endVestingTs: string;
|
285
285
|
bump: number;
|
286
286
|
padding0: number[];
|
287
287
|
padding: Buffer;
|
@@ -256,7 +256,7 @@ exports.escrowStruct = new beet_1.BeetStruct([
|
|
256
256
|
['owner', beet_solana_1.publicKey],
|
257
257
|
['totalDeposit', solana_1.u64],
|
258
258
|
['claimedToken', solana_1.u64],
|
259
|
-
['
|
259
|
+
['lastClaimedTs', solana_1.u64],
|
260
260
|
['refunded', beet_1.u8],
|
261
261
|
['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
|
262
262
|
['padding', (0, beet_1.uniformFixedSizeArray)(solana_1.u128, 2)],
|
@@ -277,8 +277,8 @@ exports.dlmmVaultStruct = new beet_1.BeetStruct([
|
|
277
277
|
['boughtToken', solana_1.u64Str],
|
278
278
|
['totalRefund', solana_1.u64Str],
|
279
279
|
['totalClaimedToken', solana_1.u64Str],
|
280
|
-
['
|
281
|
-
['
|
280
|
+
['startVestingTs', solana_1.u64Str],
|
281
|
+
['endVestingTs', solana_1.u64Str],
|
282
282
|
['bump', beet_1.u8],
|
283
283
|
['padding0', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
|
284
284
|
['padding', (0, solana_1.blob)(160)],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/struct.ts"],"names":[],"mappings":";;;AAAA,oDASmC;AAEnC,kEAA6D;AAE7D,+CAAgF;AAMnE,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,WAAW,EAAE,SAAE,CAAC;IACjB,CAAC,gBAAgB,EAAE,SAAE,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AAOW,QAAA,yBAAyB,GAAG,IAAI,iBAAU,CACrD;IACE,CAAC,yBAAyB,EAAE,YAAG,CAAC;IAChC,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,yBAAyB,EAAE,YAAG,CAAC;CACjC,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA2B,CACtC,CAAC;AA8BW,QAAA,WAAW,GAAG,IAAI,iBAAU,CACvC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,OAAO,EAAE,wBAAgB,CAAC;IAC3B,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,aAAa,EAAE,uBAAS,CAAC;IAC1B,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,SAAS,EAAE,uBAAS,C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C;IACxB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,eAAe,EAAE,eAAM,CAAC;IACzB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,mBAAmB,EAAE,eAAM,CAAC;IAC7B,CAAC,kBAAkB,EAAE,eAAM,CAAC;IAC5B,CAAC,gBAAgB,EAAE,eAAM,CAAC;IAC1B,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,GAAG,CAAC,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC"}
|
1
|
+
{"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/struct.ts"],"names":[],"mappings":";;;AAAA,oDASmC;AAEnC,kEAA6D;AAE7D,+CAAgF;AAMnE,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,WAAW,EAAE,SAAE,CAAC;IACjB,CAAC,gBAAgB,EAAE,SAAE,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AAOW,QAAA,yBAAyB,GAAG,IAAI,iBAAU,CACrD;IACE,CAAC,yBAAyB,EAAE,YAAG,CAAC;IAChC,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,yBAAyB,EAAE,YAAG,CAAC;CACjC,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA2B,CACtC,CAAC;AA8BW,QAAA,WAAW,GAAG,IAAI,iBAAU,CACvC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,OAAO,EAAE,wBAAgB,CAAC;IAC3B,CAAC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U,EAAE,qBAAY,CAAC;IAC1B,CAAC,MAAM,EAAE,qBAAY,CAAC;IACtB,CAAC,OAAO,EAAE,qBAAY,CAAC;IACvB,CAAC,QAAQ,EAAE,eAAM,CAAC;IAClB,CAAC,cAAc,EAAE,eAAM,CAAC;IACxB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,eAAe,EAAE,eAAM,CAAC;IACzB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,mBAAmB,EAAE,eAAM,CAAC;IAC7B,CAAC,gBAAgB,EAAE,eAAM,CAAC;IAC1B,CAAC,cAAc,EAAE,eAAM,CAAC;IACxB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,GAAG,CAAC,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC"}
|
@@ -114,6 +114,17 @@ const feedsToFetch = [
|
|
114
114
|
},
|
115
115
|
],
|
116
116
|
},
|
117
|
+
// USDS
|
118
|
+
{
|
119
|
+
address: new web3_js_1.PublicKey('95CJ8Jd54H97mBPuZnRWajUsaZnP2VFV522WYxJ5ppsz'),
|
120
|
+
tokens: [
|
121
|
+
{
|
122
|
+
decimals: 6,
|
123
|
+
mint: 'USDSwr9ApdHk5bvJKMjzff41FfuX8bSxdKcR81vTwcA',
|
124
|
+
networkdId: portfolio_core_1.NetworkId.solana,
|
125
|
+
},
|
126
|
+
],
|
127
|
+
},
|
117
128
|
];
|
118
129
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
119
130
|
const connection = (0, clients_1.getClientSolana)();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pyth/pricingJob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AU,EAAE,0BAAS,CAAC,GAAG;aAC1B;YACD;gBACE,IAAI,EAAE,uBAAc;gBACpB,QAAQ,EAAE,2BAAkB;gBAC5B,UAAU,EAAE,0BAAS,CAAC,MAAM;aAC7B;SACF;KACF;IAED,OAAO;IACP;QACE,OAAO,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC;QACtE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,8CAA8C;gBACpD,QAAQ,EAAE,CAAC;gBACX,UAAU,EAAE,0BAAS,CAAC,MAAM;aAC7B;SACF;KACF;IACD,QAAQ;IACR;QACE,OAAO,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC;QACtE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,6CAA6C;gBACnD,QAAQ,EAAE,CAAC;gBACX,UAAU,EAAE,0BAAS,CAAC,MAAM;aAC7B;SACF;KACF;IACD,MAAM;IACN;QACE,OAAO,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC;QACtE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,mFAAmF;gBACzF,QAAQ,EAAE,CAAC;gBACX,UAAU,EAAE,0BAAS,CAAC,KAAK;aAC5B;SACF;KACF;CACF,CAAC;AAEF,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,OAAO,GAAG,MAAM,IAAA,kCAAwB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IACzE,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
1
|
+
{"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pyth/pricingJob.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;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -145,6 +145,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
145
145
|
suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(address, collaterals[coinType]
|
146
146
|
.shiftedBy(-1 * ((_b = (_a = metadata === null || metadata === void 0 ? void 0 : metadata.metadata) === null || _a === void 0 ? void 0 : _a.decimals) !== null && _b !== void 0 ? _b : 0))
|
147
147
|
.toNumber(), portfolio_core_1.NetworkId.sui, tokenPrices.get(address)));
|
148
|
+
suppliedYields.push([]);
|
148
149
|
}
|
149
150
|
for (const coinType of Object.keys(debts)) {
|
150
151
|
const metadata = ctmValues.find((value) => value.coinType === (0, utils_1.normalizeStructTag)(coinType));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAAuD;AACvD,gEAAqC;AAIrC,2CAOqB;AAQrB,uCAA2C;AAC3C,qGAA6E;AAC7E,6EAAqD;AAErD,qEAAkE;AAClE,yDAAsD;AACtD,iFAA8E;AAC9E,iDAAmD;AAEnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,MAAM,YAAY,GAAqB,EAAE,CAAC;IAE1C,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAAO,CAAQ,oBAAQ,EAAE;QAC5D,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,gBAAgB;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,MAAM,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