impermax-sdk 2.1.237 → 2.1.239

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,77 +28,77 @@ exports.POOL_TOKEN_ROUTER = {
28
28
  };
29
29
  exports.ROUTER = {
30
30
  [types_1.Networks.Ropsten]: {
31
- [types_1.Factory.V2V1]: '0xbFf4acF789297A8507Eb7493AE18EB2C3A3A9632' // OLD ROUTER
31
+ [types_1.Factory.V2V1]: ''
32
32
  },
33
33
  [types_1.Networks.Mainnet]: {
34
- [types_1.Factory.V2V1]: '0x6271c6D2Cf5072D769A16eD99C8D5F3272d44E4F'
34
+ [types_1.Factory.V2V1]: ''
35
35
  },
36
36
  [types_1.Networks.Polygon]: {
37
- [types_1.Factory.V2V1_1]: '0x69767394c72240275A7a6CCeD1f1a7960Aa06333',
38
- [types_1.Factory.V2V2]: '0xF117a35038cdcfFAAeA6f953438E048D9440A9c2',
39
- [types_1.Factory.SOLV2]: '0xD7F63a4F2d317b51e84e64cb0d1eDB9F70956Ac9',
40
- [types_1.Factory.SOL_STABLE]: '0xe564D3d09863D81ACa176abE58de027389a186aA',
37
+ [types_1.Factory.V2V1_1]: '',
38
+ [types_1.Factory.V2V2]: '',
39
+ [types_1.Factory.SOLV2]: '',
40
+ [types_1.Factory.SOL_STABLE]: '',
41
41
  },
42
42
  [types_1.Networks.Arbitrum]: {
43
- [types_1.Factory.V2V1_1]: '0x9655C5a1ADB30EC5a3a7AD5d06AbeDe8468B60B7',
44
- [types_1.Factory.V2V2]: '0x58d966725Ee8fcd93CAF7C98C0c8F9b34ef076D3',
45
- [types_1.Factory.SOLV2]: '0x3b03681d1a46B473F0074cd2C4D27f086497DD56',
43
+ [types_1.Factory.V2V1_1]: '',
44
+ [types_1.Factory.V2V2]: '',
45
+ [types_1.Factory.SOLV2]: '',
46
46
  },
47
47
  [types_1.Networks.Avalanche]: {
48
- [types_1.Factory.V2V1_2]: '0xA8567d1229cCaB63E3a834Cd29066a063911E4cf',
49
- [types_1.Factory.V2V2]: '0xfB48b69fcba9218f86a437121198E46b2b88Ad63',
50
- [types_1.Factory.SOLV2]: '0xD18d2B8BaAd0078593a3C020cc3c6c5CD2F5B8b8',
48
+ [types_1.Factory.V2V1_2]: '',
49
+ [types_1.Factory.V2V2]: '',
50
+ [types_1.Factory.SOLV2]: '',
51
51
  },
52
52
  [types_1.Networks.Moonriver]: {
53
- [types_1.Factory.V2V1_2]: '0x3271cc175577465691e48196955e09d638fa05d5', // OLD ROUTER
53
+ [types_1.Factory.V2V1_2]: '',
54
54
  },
55
55
  [types_1.Networks.Aurora]: {
56
- [types_1.Factory.V2V1_2]: '0xBB92270716C8c424849F17cCc12F4F24AD4064D6', // OLD ROUTER
56
+ [types_1.Factory.V2V1_2]: '',
57
57
  },
58
58
  [types_1.Networks.Cronos]: {},
59
59
  [types_1.Networks.Fantom]: {
60
- [types_1.Factory.SOLV1_2]: '0xF655C8567E0f213e6C634CD2A68d992152161dC6',
61
- [types_1.Factory.SOLV2]: '0xd9eA4A62C46Cb221F74314C21979Cfb2E020de87',
62
- [types_1.Factory.V2V2]: '0xd4B557536c7d30463b9BEB470c117F8963Cee24a'
60
+ [types_1.Factory.SOLV1_2]: '',
61
+ [types_1.Factory.SOLV2]: '',
62
+ [types_1.Factory.V2V2]: ''
63
63
  },
64
64
  [types_1.Networks.Canto]: {
65
- [types_1.Factory.SOLV2]: '0x370D3eE40f1257fC432C33e387981CeDD15C7fac',
65
+ [types_1.Factory.SOLV2]: '',
66
66
  },
67
67
  [types_1.Networks.ZksyncEra]: {
68
- [types_1.Factory.SOLV2]: '0xDC9eb03D753D552A3eE286d272F37d49de2783D3',
68
+ [types_1.Factory.SOLV2]: '',
69
69
  },
70
70
  [types_1.Networks.Blast]: {
71
- [types_1.Factory.SOLV2]: '0x447b4E5C469b76A1f7175cE7b224629091713a02',
72
- [types_1.Factory.V2V2]: '0x57f9284e10cA2e21181FA626973C72D45a45fd20',
71
+ [types_1.Factory.SOLV2]: '',
72
+ [types_1.Factory.V2V2]: '',
73
73
  },
74
74
  [types_1.Networks.Harmony]: {},
75
75
  [types_1.Networks.Moonbeam]: {},
76
76
  [types_1.Networks.Sxnetwork]: {},
77
77
  [types_1.Networks.Base]: {
78
- [types_1.Factory.SOLV2]: '0x1EBC3b5911B99aDdE07944c75D9E03958abdB49f',
79
- [types_1.Factory.SOL_STABLE]: '0xC5d6CB2205349Cc94684E7acF012751344bc58F7',
80
- [types_1.Factory.V2V2]: '0x21D9d4d17255d427A5F77D23fb9Eb3c5Cd281ebf'
78
+ [types_1.Factory.SOLV2]: '0x1Ab153346De262D59642e63F9569C656EdC6efaF',
79
+ [types_1.Factory.SOL_STABLE]: '',
80
+ [types_1.Factory.V2V2]: ''
81
81
  },
82
82
  [types_1.Networks.Scroll]: {
83
- [types_1.Factory.SOLV2]: '0xFF8D0CDC9C857c7fA265121394558B26e1eAAffE',
84
- [types_1.Factory.SOL_STABLE]: '0x736176788edef99D2FAbfAa0f5e13BCb3b46bE17'
83
+ [types_1.Factory.SOLV2]: '',
84
+ [types_1.Factory.SOL_STABLE]: ''
85
85
  },
86
86
  [types_1.Networks.Optimism]: {
87
- [types_1.Factory.SOLV2]: '0xb5657FA5ba87CaD11b9150c319069625d423aaD4',
87
+ [types_1.Factory.SOLV2]: '',
88
88
  },
89
89
  [types_1.Networks.Mantle]: {
90
- [types_1.Factory.V2V2]: '0xF4A9dda025e65945E7A3F873D6146A12c8110A19'
90
+ [types_1.Factory.V2V2]: ''
91
91
  },
92
92
  [types_1.Networks.Real]: {
93
- [types_1.Factory.SOLV2]: '0x64515b2f866Ac9B1297f03329d82a8507332fEf5',
94
- [types_1.Factory.SOL_STABLE]: '0x3784D354863fe8862d60E446E3f29A08c21D1Ea9'
93
+ [types_1.Factory.SOLV2]: '',
94
+ [types_1.Factory.SOL_STABLE]: ''
95
95
  },
96
96
  [types_1.Networks.Sonic]: {
97
- [types_1.Factory.SOLV2]: '0xcBdf792456367a91708C0036E0678eCFB1f09654',
97
+ [types_1.Factory.SOLV2]: '',
98
98
  },
99
99
  [types_1.Networks.Linea]: {
100
- [types_1.Factory.SOLV2]: '0xEB81da0cAC9D3efc4bf3270080936C6a5758926f',
101
- [types_1.Factory.SOL_STABLE]: '0xC8BBC42B546d25c411b9BD42cDDDa12c00B468bc',
100
+ [types_1.Factory.SOLV2]: '',
101
+ [types_1.Factory.SOL_STABLE]: '',
102
102
  },
103
103
  };
104
104
  exports.ACTIONS_GETTER = {
@@ -55,7 +55,7 @@ async function initializeUserData(account) {
55
55
  for (const supplyPosition of userDataOfFactory.supplyPositions) {
56
56
  const lendingPoolId = supplyPosition.borrowable.lendingPool.id;
57
57
  // Don't include supply positions if lending pool is not in pair list
58
- if (!pairs.includes(lendingPoolId))
58
+ if (pairs.length > 0 && !pairs.includes(lendingPoolId))
59
59
  continue;
60
60
  const underlyingId = supplyPosition.borrowable.underlying.id;
61
61
  const borrowableA = (await this.getLendingPool(factory, lendingPoolId)).getBorrowableA();
@@ -9,7 +9,7 @@ async function initializeV2Positions(offchain, factory, rawUserData, pairs) {
9
9
  for (const collateralPosition of rawUserData.collateralPositions) {
10
10
  const lendingPoolId = collateralPosition.collateral.lendingPool.id;
11
11
  // Don't include collateral positions if lending pool is not in pair list
12
- if (!pairs.includes(lendingPoolId))
12
+ if (pairs.length > 0 && !pairs.includes(lendingPoolId))
13
13
  continue;
14
14
  if (!collateralPositions[lendingPoolId])
15
15
  collateralPositions[lendingPoolId] = [];
@@ -19,7 +19,7 @@ async function initializeV2Positions(offchain, factory, rawUserData, pairs) {
19
19
  for (const borrowPosition of rawUserData.borrowPositions) {
20
20
  const lendingPoolId = borrowPosition.borrowable.lendingPool.id;
21
21
  // Don't include borrow positions if lending pool is not in pair list
22
- if (!pairs.includes(lendingPoolId))
22
+ if (pairs.length > 0 && !pairs.includes(lendingPoolId))
23
23
  continue;
24
24
  const underlyingId = borrowPosition.borrowable.underlying.id;
25
25
  const borrowableA = (await offchain.getLendingPool(factory, lendingPoolId)).getBorrowableA();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.237",
3
+ "version": "2.1.239",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",