@sonarwatch/portfolio-plugins 0.12.155 → 0.12.156

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.12.155",
3
+ "version": "0.12.156",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
@@ -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;
@@ -1,9 +1,12 @@
1
+ import BigNumber from 'bignumber.js';
1
2
  import { ParsedAccount } from '../../../utils/solana';
2
- import { Reserve } from '../structs/klend';
3
+ import { BigFractionBytes, Reserve } from '../structs/klend';
3
4
  export declare function getEchangeRate(reserve: ParsedAccount<Reserve>): number;
4
5
  type Allocation = {
5
6
  quantity: string;
6
7
  name: string;
7
8
  };
8
9
  export declare function getAllocationsBySeason(owner: string, season: 1 | 2): Promise<Allocation[] | undefined>;
10
+ export declare function getCumulativeBorrowRate(borrowRatesSf: BigFractionBytes): BigNumber;
11
+ export declare function sfToValue(sf: BigNumber): BigNumber;
9
12
  export {};
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.getAllocationsBySeason = exports.getEchangeRate = void 0;
15
+ exports.sfToValue = exports.getCumulativeBorrowRate = exports.getAllocationsBySeason = exports.getEchangeRate = void 0;
16
16
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
17
17
  const axios_1 = __importDefault(require("axios"));
18
18
  const apr_1 = require("./apr");
@@ -40,4 +40,19 @@ function getAllocationsBySeason(owner, season) {
40
40
  });
41
41
  }
42
42
  exports.getAllocationsBySeason = getAllocationsBySeason;
43
+ function getCumulativeBorrowRate(borrowRatesSf) {
44
+ return [
45
+ (0, bignumber_js_1.default)(borrowRatesSf.value0),
46
+ (0, bignumber_js_1.default)(borrowRatesSf.value1),
47
+ (0, bignumber_js_1.default)(borrowRatesSf.value2),
48
+ (0, bignumber_js_1.default)(borrowRatesSf.value3),
49
+ ].reduce((prev, curr, i) => prev.plus(curr.shiftedBy(-i * 64)), new bignumber_js_1.default(0));
50
+ }
51
+ exports.getCumulativeBorrowRate = getCumulativeBorrowRate;
52
+ const FRACTIONS = 60;
53
+ const MULTIPLIER_NUMBER = Math.pow(2, FRACTIONS);
54
+ function sfToValue(sf) {
55
+ return sf.dividedBy(MULTIPLIER_NUMBER);
56
+ }
57
+ exports.sfToValue = sfToValue;
43
58
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/kamino/helpers/common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,kDAA6C;AAG7C,+BAAuC;AACvC,4CAAgD;AAEhD,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAElC,SAAgB,cAAc,CAAC,OAA+B;IAC5D,MAAM,WAAW,GAAG,IAAI,sBAAS,CAC/B,IAAA,oBAAc,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,CAC7C,CAAC;IACF,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;IAC/C,IAAI,eAAe,CAAC,MAAM,EAAE,IAAI,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC;QACrD,OAAO,uBAAuB,CAAC;IACjC,CAAC;IACD,OAAO,IAAI,sBAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC;SAC7C,SAAS,CAAC,WAAW,CAAC;SACtB,QAAQ,EAAE,CAAC;AAChB,CAAC;AAXD,wCAWC;AAOD,SAAsB,sBAAsB,CAC1C,KAAa,EACb,MAAa;;QAEb,MAAM,GAAG,GAAuC,MAAM,eAAK;aACxD,GAAG,CAAC,GAAG,4BAAgB,GAAG,KAAK,6BAA6B,MAAM,EAAE,EAAE;YACrE,OAAO,EAAE,IAAI;SACd,CAAC;aACD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;QACrB,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IACpC,CAAC;CAAA;AAVD,wDAUC"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/kamino/helpers/common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,kDAA6C;AAG7C,+BAAuC;AACvC,4CAAgD;AAEhD,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAElC,SAAgB,cAAc,CAAC,OAA+B;IAC5D,MAAM,WAAW,G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AC;AACJ,CAAC;AAVD,0DAUC;AAED,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,iBAAiB,GAAG,SAAA,CAAC,EAAI,SAAS,CAAA,CAAC;AAEzC,SAAgB,SAAS,CAAC,EAAa;IACrC,OAAO,EAAE,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;AACzC,CAAC;AAFD,8BAEC"}
@@ -20,6 +20,7 @@ const klend_1 = require("./structs/klend");
20
20
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
21
21
  const solana_1 = require("../../utils/solana");
22
22
  const pdas_1 = require("./helpers/pdas");
23
+ const common_1 = require("./helpers/common");
23
24
  const zeroAdressValue = '11111111111111111111111111111111';
24
25
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
25
26
  const client = (0, clients_1.getClientSolana)();
@@ -90,10 +91,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
90
91
  if (borrow.borrowReserve.toString() === zeroAdressValue ||
91
92
  borrow.borrowedAmountSf.isLessThanOrEqualTo(0))
92
93
  continue;
93
- const amountRaw = borrow.borrowedAmountSf.dividedBy(borrow.cumulativeBorrowRateBsf.value0);
94
94
  const reserve = reserves[borrow.borrowReserve.toString()];
95
95
  if (!reserve)
96
96
  continue;
97
+ const { cumulativeBorrowRate } = reserve;
98
+ const obligationCumulativeBorrowRate = (0, common_1.getCumulativeBorrowRate)(borrow.cumulativeBorrowRateBsf);
99
+ const amountRaw = (0, common_1.sfToValue)(borrow.borrowedAmountSf
100
+ .multipliedBy(cumulativeBorrowRate)
101
+ .dividedBy(obligationCumulativeBorrowRate));
97
102
  const mint = reserve.liquidity.mintPubkey;
98
103
  const tokenPrice = tokenPriceById.get(mint);
99
104
  const amount = amountRaw
@@ -1 +1 @@
1
- {"version":3,"file":"lendsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/lendsFetcher.ts"],"names":[],"mappings":";;;;;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,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,GACxD,IAAA,wCAAuB,EAAC;gBACtB,cAAc;gBACd,cAAc;gBACd,YAAY;gBACZ,YAAY;gBACZ,eAAe;aAChB,CAAC,CAAC;YAEL,QAAQ,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;gBACrC,SAAS;gBACT,UAAU,EAAV,sBAAU;gBACV,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,UAAU;gBAChB,KAAK;gBACL,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc;oBACd,cAAc;oBACd,aAAa;oBACb,cAAc;oBACd,WAAW,EAAE,IAAI;oBACjB,YAAY;oBACZ,WAAW;oBACX,KAAK;iBACN;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -29,9 +29,11 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
29
29
  const borrowApr = (0, apr_1.calculateBorrowAPR)(reserve);
30
30
  const supplyApr = (0, apr_1.calculateSupplyAPR)(reserve);
31
31
  const exchangeRate = (0, common_1.getEchangeRate)(reserve);
32
+ const cumulativeBorrowRate = (0, common_1.getCumulativeBorrowRate)(reserve.liquidity.cumulativeBorrowRateBsf).toString();
32
33
  reserveById[reserve.pubkey.toString()] = Object.assign(Object.assign({}, reserve), { borrowApr,
33
34
  supplyApr,
34
- exchangeRate });
35
+ exchangeRate,
36
+ cumulativeBorrowRate });
35
37
  }
36
38
  yield cache.setItem(constants_1.reservesKey, reserveById, {
37
39
  prefix: constants_1.platformId,
@@ -1 +1 @@
1
- {"version":3,"file":"reservesJob.js","source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CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"reservesJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/reservesJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,+CAA8D;AAC9D,wDAA4D;AAC5D,2CAAsE;AACtE,2CAAgD;AAChD,uCAAuE;AAEvE,6CAA2E;AAE3E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,gBAAgB,GAAG,CACvB,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,iCAAwB,EACtB,MAAM,EACN,qBAAa,EACb,0BAAc,EACd,IAAA,wBAAc,EAAC,IAAI,CAAC,CACrB;QACD,IAAA,iCAAwB,EACtB,MAAM,EACN,qBAAa,EACb,0BAAc,EACd,IAAA,wBAAc,EAAC,IAAI,CAAC,CACrB;KACF,CAAC,CACH,CAAC,IAAI,EAAE,CAAC;IACT,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAClC,MAAM,WAAW,GAAoC,EAAE,CAAC;QACxD,KAAK,MAAM,OAAO,IAAI,gBAAgB,EAAE,CAAC;YACvC,MAAM,SAAS,GAAG,IAAA,wBAAkB,EAAC,OAAO,CAAC,CAAC;YAC9C,MAAM,SAAS,GAAG,IAAA,wBAAkB,EAAC,OAAO,CAAC,CAAC;YAC9C,MAAM,YAAY,GAAG,IAAA,uBAAc,EAAC,OAAO,CAAC,CAAC;YAC7C,MAAM,oBAAoB,GAAG,IAAA,gCAAuB,EAClD,OAAO,CAAC,SAAS,CAAC,uBAAuB,CAC1C,CAAC,QAAQ,EAAE,CAAC;YACb,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,mCACjC,OAAO,KACV,SAAS;gBACT,SAAS;gBACT,YAAY;gBACZ,oBAAoB,GACrB,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,CAAC,OAAO,CAAC,uBAAW,EAAE,WAAW,EAAE;YAC5C,MAAM,EAAE,sBAAU;YAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -4,11 +4,13 @@ export type ReserveDataEnhanced = ReserveData & {
4
4
  supplyApr: number;
5
5
  borrowApr: number;
6
6
  exchangeRate: number;
7
+ cumulativeBorrowRate: string;
7
8
  };
8
9
  export type ReserveEnhanced = Reserve & {
9
10
  supplyApr: number;
10
11
  borrowApr: number;
11
12
  exchangeRate: number;
13
+ cumulativeBorrowRate: string;
12
14
  };
13
15
  export type ReserveConfig = {
14
16
  status: number;
@@ -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;
@@ -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;
@@ -42,20 +42,20 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
42
42
  const clients_1 = require("../../utils/clients");
43
43
  const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
44
44
  const helpers_1 = require("./helpers");
45
- const query = (0, graphql_request_1.gql) `
46
- query GetAirdropFinalFrontend($authority: String!) {
47
- getAirdropFinalFrontend(authority: $authority) {
48
- authority
49
- community_allocation
50
- eligibility
51
- main_allocation
52
- og_allocation
53
- s1_allocation
54
- s2_allocation
55
- total_allocation
56
- __typename
57
- }
58
- }
45
+ const query = (0, graphql_request_1.gql) `
46
+ query GetAirdropFinalFrontend($authority: String!) {
47
+ getAirdropFinalFrontend(authority: $authority) {
48
+ authority
49
+ community_allocation
50
+ eligibility
51
+ main_allocation
52
+ og_allocation
53
+ s1_allocation
54
+ s2_allocation
55
+ total_allocation
56
+ __typename
57
+ }
58
+ }
59
59
  `;
60
60
  const networkId = portfolio_core_1.NetworkId.solana;
61
61
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
@@ -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;