@sonarwatch/portfolio-plugins 0.11.93 → 0.11.95
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/index.js +8 -0
- package/src/index.js.map +1 -1
- package/src/plugins/aurory/constants.d.ts +9 -0
- package/src/plugins/aurory/constants.js +19 -0
- package/src/plugins/aurory/constants.js.map +1 -0
- package/src/plugins/aurory/helpers.d.ts +2 -0
- package/src/plugins/aurory/helpers.js +21 -0
- package/src/plugins/aurory/helpers.js.map +1 -0
- package/src/plugins/aurory/index.d.ts +6 -0
- package/src/plugins/aurory/index.js +12 -0
- package/src/plugins/aurory/index.js.map +1 -0
- package/src/plugins/aurory/stakingFetcher.d.ts +3 -0
- package/src/plugins/aurory/stakingFetcher.js +47 -0
- package/src/plugins/aurory/stakingFetcher.js.map +1 -0
- package/src/plugins/aurory/structs.d.ts +10 -0
- package/src/plugins/aurory/structs.js +11 -0
- package/src/plugins/aurory/structs.js.map +1 -0
- package/src/plugins/flash/constants.js +1 -0
- package/src/plugins/flash/constants.js.map +1 -1
- package/src/plugins/flash/poolJob.js +3 -2
- package/src/plugins/flash/poolJob.js.map +1 -1
- package/src/plugins/flash/stakeFetcher.js +2 -0
- package/src/plugins/flash/stakeFetcher.js.map +1 -1
- package/src/plugins/flash/structs.d.ts +1 -0
- package/src/plugins/flash/structs.js +26 -1
- package/src/plugins/flash/structs.js.map +1 -1
- package/src/plugins/flowmatic/stakingFetcher.js +4 -0
- package/src/plugins/flowmatic/stakingFetcher.js.map +1 -1
- package/src/plugins/genesysgo/stakingFetcher.js +4 -0
- package/src/plugins/genesysgo/stakingFetcher.js.map +1 -1
- package/src/plugins/kamino/constants.d.ts +3 -3
- package/src/plugins/kamino/constants.js +53 -44
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/kamino/helpers/pdas.d.ts +2 -2
- package/src/plugins/kamino/helpers/pdas.js +28 -15
- package/src/plugins/kamino/helpers/pdas.js.map +1 -1
- package/src/plugins/kamino/index.js +2 -1
- package/src/plugins/kamino/index.js.map +1 -1
- package/src/plugins/kamino/lendsFetcher.js +158 -140
- package/src/plugins/kamino/lendsFetcher.js.map +1 -1
- package/src/plugins/kamino/marketsJob.d.ts +3 -0
- package/src/plugins/kamino/marketsJob.js +29 -0
- package/src/plugins/kamino/marketsJob.js.map +1 -0
- package/src/plugins/kamino/types.d.ts +5 -0
- package/src/plugins/x-staking-solana/constants.d.ts +16 -0
- package/src/plugins/x-staking-solana/constants.js +64 -0
- package/src/plugins/x-staking-solana/constants.js.map +1 -0
- package/src/plugins/x-staking-solana/index.d.ts +6 -0
- package/src/plugins/x-staking-solana/index.js +15 -0
- package/src/plugins/x-staking-solana/index.js.map +1 -0
- package/src/plugins/x-staking-solana/stakingJob.d.ts +3 -0
- package/src/plugins/x-staking-solana/stakingJob.js +49 -0
- package/src/plugins/x-staking-solana/stakingJob.js.map +1 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.11.95](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.94...plugins-0.11.95) (2024-03-05)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.11.94](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.93...plugins-0.11.94) (2024-03-05)
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
## [0.11.93](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.92...plugins-0.11.93) (2024-03-04)
|
6
14
|
|
7
15
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.11.
|
3
|
+
"version": "0.11.95",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"web3-v1": "npm:web3@^1.5.0"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
44
|
-
"@sonarwatch/portfolio-core": "0.11.
|
44
|
+
"@sonarwatch/portfolio-core": "0.11.95"
|
45
45
|
},
|
46
46
|
"main": "./src/index.js",
|
47
47
|
"types": "./src/index.d.ts"
|
package/src/index.js
CHANGED
@@ -89,6 +89,8 @@ const aptin_1 = require("./plugins/aptin");
|
|
89
89
|
const bskt_1 = require("./plugins/bskt");
|
90
90
|
const flowmatic_1 = require("./plugins/flowmatic");
|
91
91
|
const genesysgo_1 = require("./plugins/genesysgo");
|
92
|
+
const aurory_1 = require("./plugins/aurory");
|
93
|
+
const x_staking_solana_1 = require("./plugins/x-staking-solana");
|
92
94
|
var constants_1 = require("./plugins/tokens/constants");
|
93
95
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
94
96
|
Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
|
@@ -168,6 +170,8 @@ exports.platforms = [
|
|
168
170
|
...bskt_1.platforms,
|
169
171
|
...flowmatic_1.platforms,
|
170
172
|
...genesysgo_1.platforms,
|
173
|
+
...aurory_1.platforms,
|
174
|
+
...x_staking_solana_1.platforms,
|
171
175
|
];
|
172
176
|
// JOBS //
|
173
177
|
exports.jobs = [
|
@@ -233,6 +237,8 @@ exports.jobs = [
|
|
233
237
|
...bskt_1.jobs,
|
234
238
|
...flowmatic_1.jobs,
|
235
239
|
...genesysgo_1.jobs,
|
240
|
+
...aurory_1.jobs,
|
241
|
+
...x_staking_solana_1.jobs,
|
236
242
|
];
|
237
243
|
// FETCHERS //
|
238
244
|
exports.fetchers = [
|
@@ -300,6 +306,8 @@ exports.fetchers = [
|
|
300
306
|
...bskt_1.fetchers,
|
301
307
|
...flowmatic_1.fetchers,
|
302
308
|
...genesysgo_1.fetchers,
|
309
|
+
...aurory_1.fetchers,
|
310
|
+
...x_staking_solana_1.fetchers,
|
303
311
|
];
|
304
312
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
305
313
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAIyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAG6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,6CAI0B;AAC1B,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,+CAG2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,sCAIsB;AACtB,+CAI2B;AAC3B,iDAI4B;AAC5B,yCAIwB;AACxB,mDAI6B;AAC7B,qDAI8B;AAC9B,2CAIyB;AACzB,2CAIyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,2CAIyB;AACzB,uDAI+B;AAC/B,6DAIkC;AAClC,2CAIyB;AACzB,yCAIwB;AACxB,mDAI6B;AAC7B,mDAI6B;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAIyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAG6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,6CAI0B;AAC1B,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,+CAG2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,sCAIsB;AACtB,+CAI2B;AAC3B,iDAI4B;AAC5B,yCAIwB;AACxB,mDAI6B;AAC7B,qDAI8B;AAC9B,2CAIyB;AACzB,2CAIyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,2CAIyB;AACzB,uDAI+B;AAC/B,6DAIkC;AAClC,2CAIyB;AACzB,yCA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G,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,cAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,qBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,sBAAmB;IACtB,GAAG,yBAAsB;IACzB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,2BAAsB;CAC1B,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { PublicKey } from '@solana/web3.js';
|
2
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
3
|
+
export declare const auroryPlatformId = "aurory";
|
4
|
+
export declare const platform: Platform;
|
5
|
+
export declare const programId: PublicKey;
|
6
|
+
export declare const auryMint = "AURYydfxJib1ZkTir1Jn1J9ECYUtjb6rKQVmtYaixWPP";
|
7
|
+
export declare const xAuryMint = "xAURp5XmAG7772mfkSy6vRAjGK9JofYjc3dmQDWdVDP";
|
8
|
+
export declare const decimals = 9;
|
9
|
+
export declare const vaultPubkey = "FysGks3izhgVhrUkub9QQWCTEVAdhkZKYSNK2F25maGD";
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.vaultPubkey = exports.decimals = exports.xAuryMint = exports.auryMint = exports.programId = exports.platform = exports.auroryPlatformId = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
exports.auroryPlatformId = 'aurory';
|
6
|
+
exports.platform = {
|
7
|
+
id: exports.auroryPlatformId,
|
8
|
+
name: 'Aurory',
|
9
|
+
image: 'https://sonar.watch/img/platforms/aurory.png',
|
10
|
+
// defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
|
11
|
+
website: 'https://app.aurory.io',
|
12
|
+
twitter: 'https://twitter.com/AuroryProject',
|
13
|
+
};
|
14
|
+
exports.programId = new web3_js_1.PublicKey('StKLLTf7CQ9n5BgXPSDXENovLTCuNc7N2ehvTb6JZ5x');
|
15
|
+
exports.auryMint = 'AURYydfxJib1ZkTir1Jn1J9ECYUtjb6rKQVmtYaixWPP';
|
16
|
+
exports.xAuryMint = 'xAURp5XmAG7772mfkSy6vRAjGK9JofYjc3dmQDWdVDP';
|
17
|
+
exports.decimals = 9;
|
18
|
+
exports.vaultPubkey = 'FysGks3izhgVhrUkub9QQWCTEVAdhkZKYSNK2F25maGD';
|
19
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aurory/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,gBAAgB,GAAG,QAAQ,CAAC;AAC5B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,wBAAgB;IACpB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,qEAAqE;IACrE,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,mCAAmC;CAC7C,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAC1D,QAAA,SAAS,GAAG,6CAA6C,CAAC;AAC1D,QAAA,QAAQ,GAAG,CAAC,CAAC;AACb,QAAA,WAAW,GAAG,8CAA8C,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
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
|
+
exports.getStakingAccountAddress = void 0;
|
13
|
+
const web3_js_1 = require("@solana/web3.js");
|
14
|
+
const constants_1 = require("./constants");
|
15
|
+
function getStakingAccountAddress(owner) {
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
17
|
+
return web3_js_1.PublicKey.findProgramAddressSync([new web3_js_1.PublicKey(owner).toBuffer()], constants_1.programId)[0];
|
18
|
+
});
|
19
|
+
}
|
20
|
+
exports.getStakingAccountAddress = getStakingAccountAddress;
|
21
|
+
//# sourceMappingURL=helpers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aurory/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAC5C,2CAAwC;AAExC,SAAsB,wBAAwB,CAC5C,KAAa;;QAEb,OAAO,mBAAS,CAAC,sBAAsB,CACrC,CAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,EACjC,qBAAS,CACV,CAAC,CAAC,CAAC,CAAC;IACP,CAAC;CAAA;AAPD,4DAOC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
|
+
const constants_1 = require("./constants");
|
8
|
+
const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
|
9
|
+
exports.platforms = [constants_1.platform];
|
10
|
+
exports.jobs = [];
|
11
|
+
exports.fetchers = [stakingFetcher_1.default];
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aurory/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
|
@@ -0,0 +1,47 @@
|
|
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 constants_1 = require("./constants");
|
17
|
+
const clients_1 = require("../../utils/clients");
|
18
|
+
const helpers_1 = require("./helpers");
|
19
|
+
const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
|
20
|
+
const structs_1 = require("./structs");
|
21
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
22
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
23
|
+
const client = (0, clients_1.getClientSolana)();
|
24
|
+
const stakingAccountAddress = yield (0, helpers_1.getStakingAccountAddress)(owner);
|
25
|
+
const stakingAccount = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, structs_1.UserStakingAccountStruct, stakingAccountAddress);
|
26
|
+
if (!stakingAccount)
|
27
|
+
return [];
|
28
|
+
const tokenPrice = yield cache.getTokenPrice(constants_1.xAuryMint, portfolio_core_1.NetworkId.solana);
|
29
|
+
const asset = (0, tokenPriceToAssetToken_1.default)(constants_1.xAuryMint, stakingAccount.amount.dividedBy(Math.pow(10, constants_1.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice);
|
30
|
+
return [
|
31
|
+
{
|
32
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
33
|
+
label: 'Staked',
|
34
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
35
|
+
platformId: constants_1.auroryPlatformId,
|
36
|
+
data: { assets: [asset] },
|
37
|
+
value: asset.value,
|
38
|
+
},
|
39
|
+
];
|
40
|
+
});
|
41
|
+
const fetcher = {
|
42
|
+
id: `${constants_1.auroryPlatformId}-staking`,
|
43
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
44
|
+
executor,
|
45
|
+
};
|
46
|
+
exports.default = fetcher;
|
47
|
+
//# sourceMappingURL=stakingFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aurory/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;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ex-foundation/beet';
|
3
|
+
import BigNumber from 'bignumber.js';
|
4
|
+
type UserStakingAccount = {
|
5
|
+
buffer: Buffer;
|
6
|
+
amount: BigNumber;
|
7
|
+
xAmount: BigNumber;
|
8
|
+
};
|
9
|
+
export declare const UserStakingAccountStruct: BeetStruct<UserStakingAccount, Partial<UserStakingAccount>>;
|
10
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UserStakingAccountStruct = void 0;
|
4
|
+
const beet_1 = require("@metaplex-foundation/beet");
|
5
|
+
const solana_1 = require("../../utils/solana");
|
6
|
+
exports.UserStakingAccountStruct = new beet_1.BeetStruct([
|
7
|
+
['buffer', (0, solana_1.blob)(8)],
|
8
|
+
['amount', solana_1.u64],
|
9
|
+
['xAmount', solana_1.u64],
|
10
|
+
], (args) => args, 'UserStakingAccount');
|
11
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aurory/structs.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AAEvD,+CAA+C;AAQlC,QAAA,wBAAwB,GAAG,IAAI,iBAAU,CACpD;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,QAAQ,EAAE,YAAG,CAAC;IACf,CAAC,SAAS,EAAE,YAAG,CAAC;CACjB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA0B,EACpC,oBAAoB,CACrB,CAAC"}
|
@@ -15,6 +15,7 @@ exports.flashPid = new web3_js_1.PublicKey('FLASH6Lo6h3iasJKWDs2F8TkW2UKf3s15C8P
|
|
15
15
|
exports.poolsPkeys = [
|
16
16
|
new web3_js_1.PublicKey('HfF7GCcEc76xubFCHLLXRdYcgRzwjEPdfKWqzRS8Ncog'),
|
17
17
|
new web3_js_1.PublicKey('KwhpybQPe9xuZFmAfcjLHj3ukownWex1ratyascAC1X'),
|
18
|
+
new web3_js_1.PublicKey('D6bfytnxoZBSzJM7fcixg5sgWJ2hj8SbwkPvb2r8XpbH'),
|
18
19
|
];
|
19
20
|
exports.marketsKey = 'markets';
|
20
21
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,6CAA6C;IACpD,qEAAqE;IACrE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,6CAA6C;IACpD,qEAAqE;IACrE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;IAC5D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;CAC9D,CAAC;AAEW,QAAA,UAAU,GAAG,SAAS,CAAC"}
|
@@ -25,11 +25,12 @@ const constants_2 = require("../jupiter/constants");
|
|
25
25
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
26
26
|
const client = (0, clients_1.getClientSolana)();
|
27
27
|
const pools = yield (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(client, constants_1.poolsPkeys);
|
28
|
-
if (!pools[0] || !pools[1])
|
28
|
+
if (!pools[0] || !pools[1] || !pools[2])
|
29
29
|
return;
|
30
30
|
const poolsAccounts = [
|
31
31
|
structs_1.pool1Struct.deserialize(pools[0].data)[0],
|
32
32
|
structs_1.pool2Struct.deserialize(pools[1].data)[0],
|
33
|
+
structs_1.pool3Struct.deserialize(pools[2].data)[0],
|
33
34
|
];
|
34
35
|
const custodies = yield cache.getItem(constants_2.custodiesKey, {
|
35
36
|
prefix: constants_1.platformId,
|
@@ -59,8 +60,8 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
60
|
}
|
60
61
|
for (let i = 0; i < poolsAccounts.length; i++) {
|
61
62
|
const pool = poolsAccounts[i];
|
63
|
+
const supAndDecimals = yield (0, fetchTokenSupplyAndDecimals_1.fetchTokenSupplyAndDecimals)(pool.flpMint, client);
|
62
64
|
const mint = pool.flpMint.toString();
|
63
|
-
const supAndDecimals = yield (0, fetchTokenSupplyAndDecimals_1.fetchTokenSupplyAndDecimals)(new web3_js_1.PublicKey(mint), client);
|
64
65
|
if (!supAndDecimals)
|
65
66
|
continue;
|
66
67
|
const { supply, decimals } = supAndDecimals;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poolJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/poolJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAmE;AACnE,6CAA4C;AAG5C,iDAAsD;AACtD,yFAAiE;AACjE,gGAA6F;AAC7F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AAK;gBACvB,aAAa,EAAE,YAAY,CAAC,MAAM;qBAC/B,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC;qBACpC,QAAQ,EAAE;aACd,CAAC,CAAC;QACL,CAAC;QAED,wCAAwC;QACxC,IAAI,MAAM,GAAG,IAAA,0BAAgB,EAC3B,0BAAS,CAAC,MAAM,EAChB,sBAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,EACxB,sBAAU,EACV,IAAA,wBAAe,EAAC,IAAI,CAAC,IAAI,CAAC,EAC1B,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EACnC,MAAM,CACP,CAAC;QACF,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM;aACvB,SAAS,CAAC,SAAA,EAAE,EAAI,QAAQ,CAAA,CAAC;aACzB,SAAS,CAAC,MAAM,CAAC;aACjB,QAAQ,EAAE,CAAC;QAEd,MAAM,KAAK,CAAC,OAAO,CAAC,sBAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE;YACvE,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC,CAAC;QAEH,MAAM,KAAK,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,OAAO;IACxB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -48,6 +48,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
48
48
|
const amount = stakeAccount.stakeStats.activeAmount
|
49
49
|
.plus(stakeAccount.stakeStats.pendingActivation)
|
50
50
|
.dividedBy(Math.pow(10, flpTokenPrice.decimals));
|
51
|
+
if (amount.isZero())
|
52
|
+
continue;
|
51
53
|
assets.push((0, tokenPriceToAssetToken_1.default)(flpTokenPrice.address, amount.toNumber(), portfolio_core_1.NetworkId.solana, flpTokenPrice));
|
52
54
|
}
|
53
55
|
if (assets.length === 0)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakeFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/stakeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAAyC;AACzC,iDAAsD;AACtD,+CAAmE;AACnE,uCAA2C;AAC3C,qGAA6E;AAC7E,uCAAoC;AAEpC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACvD,MAAM,EACN,wBAAc,EACd,IAAA,iBAAO,EAAC,KAAK,CAAC,CACf,CAAC;IAEF,MAAM,KAAK,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAC/C,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CACjD,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAW,KAAK,EAAE;QACrD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IAEzB,MAAM,WAAW,GAAwB,IAAI,GAAG,EAAE,CAAC;IACnD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC5B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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,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACzD,IAAI,EAAE;gBACJ,MAAM;aACP;SACF;KACF,CAAC;AACJ,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"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.pool2Struct = exports.pool1Struct = exports.tokenRatiosStruct = exports.positionStruct = exports.marketStruct = exports.positionStatsStruct = exports.oraclePriceStruct = exports.marketPermissionsStruct = exports.flpStakeStruct = exports.stakeStatsStruct = exports.custodyStruct = exports.permissionsStruct = exports.feesStatsStruct = exports.borrowRateStateStruct = exports.assetsStruct = exports.borrowRateParamsStruct = exports.feesStruct = exports.ratioFeesStruct = exports.FeesMode = exports.pricingParamsStruct = exports.oracleParamsStruct = void 0;
|
3
|
+
exports.pool3Struct = exports.pool2Struct = exports.pool1Struct = exports.tokenRatiosStruct = exports.positionStruct = exports.marketStruct = exports.positionStatsStruct = exports.oraclePriceStruct = exports.marketPermissionsStruct = exports.flpStakeStruct = exports.stakeStatsStruct = exports.custodyStruct = exports.permissionsStruct = exports.feesStatsStruct = exports.borrowRateStateStruct = exports.assetsStruct = exports.borrowRateParamsStruct = exports.feesStruct = exports.ratioFeesStruct = exports.FeesMode = exports.pricingParamsStruct = exports.oracleParamsStruct = 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");
|
@@ -245,4 +245,29 @@ exports.pool2Struct = new beet_1.BeetStruct([
|
|
245
245
|
['flpTokenAccountBump', beet_1.u8],
|
246
246
|
['vpVolumeFactor', beet_1.u8],
|
247
247
|
], (args) => args);
|
248
|
+
exports.pool3Struct = new beet_1.BeetStruct([
|
249
|
+
['buffer', (0, solana_1.blob)(8)],
|
250
|
+
['nameLength', beet_1.u32],
|
251
|
+
['name', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 12)],
|
252
|
+
['permissions', exports.permissionsStruct],
|
253
|
+
['inceptionTime', solana_1.i64],
|
254
|
+
['flpMint', beet_solana_1.publicKey],
|
255
|
+
['oracleAuthority', beet_solana_1.publicKey],
|
256
|
+
['flpTokenAccount', beet_solana_1.publicKey],
|
257
|
+
['rewardCustody', beet_solana_1.publicKey],
|
258
|
+
['custodiesLength', beet_1.u32],
|
259
|
+
['custodies', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 4)],
|
260
|
+
['ratiosLength', beet_1.u32],
|
261
|
+
['ratios', (0, beet_1.uniformFixedSizeArray)(exports.tokenRatiosStruct, 4)],
|
262
|
+
['marketsLength', beet_1.u32],
|
263
|
+
['markets', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 6)],
|
264
|
+
['maxAumUsd', solana_1.u128],
|
265
|
+
['aumUsd', solana_1.u128],
|
266
|
+
['totalStaked', exports.stakeStatsStruct],
|
267
|
+
['stakingFeeShareBps', solana_1.u64],
|
268
|
+
['bump', beet_1.u8],
|
269
|
+
['flpMintBump', beet_1.u8],
|
270
|
+
['flpTokenAccountBump', beet_1.u8],
|
271
|
+
['vpVolumeFactor', beet_1.u8],
|
272
|
+
], (args) => args);
|
248
273
|
//# sourceMappingURL=structs.js.map
|
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AAA,4BAAqB,EAAC,uBAAS,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC,WAAW,EAAE,aAAI,CAAC;IACnB,CAAC,QAAQ,EAAE,aAAI,CAAC;IAChB,CAAC,aAAa,EAAE,wBAAgB,CAAC;IACjC,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,aAAa,EAAE,SAAE,CAAC;IACnB,CAAC,qBAAqB,EAAE,SAAE,CAAC;IAC3B,CAAC,gBAAgB,EAAE,SAAE,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC"}
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AAGnC,kEAA6D;AAC7D,+CAA0D;AAY7C,QAAA,kBAAkB,GAAG,IAAI,iBAAU,CAC9C;IACE,CAAC,eAAe,EAAE,uBAAS,CAAC;IAC5B,CAAC,qBAAqB,EAAE,uBAAS,CAAC;IAClC,CAAC,YAAY,EAAE,SAAE,CAAC;IAClB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,gBAAgB,EAAE,YAAG,CAAC;CACxB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAC/B,CAAC;AAgBW,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,cAAc,EAAE,YAAG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e,EAAE,uBAAS,CAAC;IAC5B,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,WAAW,EAAE,IAAA,4BAAqB,EAAC,uBAAS,EAAE,CAAC,CAAC,CAAC;IAClD,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,QAAQ,EAAE,IAAA,4BAAqB,EAAC,yBAAiB,EAAE,CAAC,CAAC,CAAC;IACvD,CAAC,eAAe,EAAE,UAAG,CAAC;IACtB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,uBAAS,EAAE,CAAC,CAAC,CAAC;IAChD,CAAC,WAAW,EAAE,aAAI,CAAC;IACnB,CAAC,QAAQ,EAAE,aAAI,CAAC;IAChB,CAAC,aAAa,EAAE,wBAAgB,CAAC;IACjC,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,aAAa,EAAE,SAAE,CAAC;IACnB,CAAC,qBAAqB,EAAE,SAAE,CAAC;IAC3B,CAAC,gBAAgB,EAAE,SAAE,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC"}
|
@@ -25,6 +25,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
25
25
|
const tokenPrice = yield cache.getTokenPrice(constants_1.flowmaticMint, portfolio_core_1.NetworkId.solana);
|
26
26
|
const assets = [];
|
27
27
|
for (const stakeAccount of stakeAccounts) {
|
28
|
+
if (stakeAccount.depositAmount.isZero())
|
29
|
+
continue;
|
28
30
|
const lockedUntil = new Date(stakeAccount.depositTimestamp
|
29
31
|
.plus(stakeAccount.lockupDuration)
|
30
32
|
.times(1000)
|
@@ -33,6 +35,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
33
35
|
lockedUntil,
|
34
36
|
} }));
|
35
37
|
}
|
38
|
+
if (assets.length === 0)
|
39
|
+
return [];
|
36
40
|
return [
|
37
41
|
{
|
38
42
|
type: portfolio_core_1.PortfolioElementType.multiple,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flowmatic/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAAmE;AACnE,iDAAsD;AACtD,+CAA8D;AAC9D,oDAAmE;AACnE,uCAAyC;AACzC,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,aAAa,GAAG,MAAM,IAAA,iCAAwB,EAClD,MAAM,EACN,mCAAyB,EACzB,qBAAS,EACT,IAAA,sBAAY,EAAC,KAAK,CAAC,CACpB,CAAC;IAEF,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,yBAAa,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAC9E,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;QACzC,MAAM,WAAW,GAAG,IAAI,IAAI,CAC1B,YAAY,CAAC,gBAAgB;aAC1B,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC;aACjC,KAAK,CAAC,IAAI,CAAC;aACX,QAAQ,EAAE,CACd,CAAC,OAAO,EAAE,CAAC;QAEZ,MAAM,CAAC,IAAI,iCACN,IAAA,gCAAsB,EACvB,yBAAa,EACb,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC,QAAQ,EAAE,EACxD,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,KACD,UAAU,EAAE;gBACV,WAAW;aACZ,IACD,CAAC;IACL,CAAC;
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flowmatic/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AAE,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"}
|
@@ -25,12 +25,16 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
25
25
|
const tokenPrice = yield cache.getTokenPrice(constants_1.shadowMint, portfolio_core_1.NetworkId.solana);
|
26
26
|
const assets = [];
|
27
27
|
for (const userState of userStateAccounts) {
|
28
|
+
if (userState.activeStakeScaled.isZero())
|
29
|
+
continue;
|
28
30
|
const amount = userState.activeStakeScaled
|
29
31
|
.dividedBy(Math.pow(10, 18))
|
30
32
|
.dividedBy(Math.pow(10, constants_1.shadowDecimals))
|
31
33
|
.toNumber();
|
32
34
|
assets.push(...(0, tokenPriceToAssetTokens_1.default)(constants_1.shadowMint, amount, portfolio_core_1.NetworkId.solana, tokenPrice));
|
33
35
|
}
|
36
|
+
if (assets.length === 0)
|
37
|
+
return [];
|
34
38
|
return [
|
35
39
|
{
|
36
40
|
type: portfolio_core_1.PortfolioElementType.multiple,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/genesysgo/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAAgF;AAChF,iDAAsD;AACtD,+CAA8D;AAC9D,qDAA2D;AAC3D,+CAAoD;AACpD,uGAA+E;AAE/E,MAAM,QAAQ,GAA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"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/genesysgo/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAAgF;AAChF,iDAAsD;AACtD,+CAA8D;AAC9D,qDAA2D;AAC3D,+CAAoD;AACpD,uGAA+E;AAE/E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,iBAAiB,GAAG,MAAM,IAAA,iCAAwB,EACtD,MAAM,EACN,wBAAe,EACf,qBAAS,EACT,IAAA,yBAAe,EAAC,KAAK,CAAC,CACvB,CAAC;IAEF,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,sBAAU,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAE3E,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,KAAK,MAAM,SAAS,IAAI,iBAAiB,EAAE,CAAC;QAC1C,IAAI,SAAS,CAAC,iBAAiB,CAAC,MAAM,EAAE;YAAE,SAAS;QACnD,MAAM,MAAM,GAAG,SAAS,CAAC,iBAAiB;aACvC,SAAS,CAAC,SAAA,EAAE,EAAI,EAAE,CAAA,CAAC;aACnB,SAAS,CAAC,SAAA,EAAE,EAAI,0BAAc,CAAA,CAAC;aAC/B,QAAQ,EAAE,CAAC;QAEd,MAAM,CAAC,IAAI,CACT,GAAG,IAAA,iCAAuB,EACxB,sBAAU,EACV,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CACF,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,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"}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
2
2
|
import { Platform } from '@sonarwatch/portfolio-core';
|
3
|
+
import { LendingMarketConfig } from './types';
|
3
4
|
export declare const platformId = "kamino";
|
4
5
|
export declare const kaminoPlatform: Platform;
|
5
6
|
export declare const programId: PublicKey;
|
6
7
|
export declare const klendProgramId: PublicKey;
|
7
8
|
export declare const farmProgramId: PublicKey;
|
8
9
|
export declare const farmsKey = "farms";
|
9
|
-
export declare const
|
10
|
-
export declare const
|
11
|
-
export declare const leveragePairs: string[][];
|
10
|
+
export declare const mainMarket = "7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF";
|
11
|
+
export declare const lendingConfigs: Map<string, LendingMarketConfig>;
|
12
12
|
export declare const marketsKey = "markets";
|
13
13
|
export declare const reservesKey = "reserves";
|