impermax-sdk 2.1.412 → 2.1.413

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.
@@ -30,8 +30,8 @@ class OnchainBorrowable extends onchainPoolToken_1.default {
30
30
  return lendingPool.getBorrowable(this.borrowable);
31
31
  }
32
32
  async initializeToken() {
33
- const poolToken = await this.getPoolToken();
34
- return this.getContractHelper().newERC20(await poolToken.methods.underlying().call());
33
+ const poolToken = await this.getOffchainPoolToken();
34
+ return this.getContractHelper().newERC20(await poolToken.getUnderlyingAddress());
35
35
  }
36
36
  async isETH() {
37
37
  const underlying = (await this.getToken())._address;
@@ -59,9 +59,9 @@ class OnchainLendingPoolV2 extends onchainLendingPool_1.default {
59
59
  return this.cache.stakedLPToken;
60
60
  }
61
61
  async initializeUniswapV2Pair() {
62
- const stakedLPToken = await this.getStakedLPToken();
62
+ const stakedLPToken = await this.getOffchainLendingPool();
63
63
  return this.getContractHelper().newUniswapV2Pair(stakedLPToken
64
- ? await (stakedLPToken.methods.underlying().call())
64
+ ? await stakedLPToken.getUniswapV2PairAddress()
65
65
  : this.id);
66
66
  }
67
67
  async getUniswapV2Pair() {
@@ -30,8 +30,8 @@ class OnchainLendingVault extends onchainPoolToken_1.default {
30
30
  return this.getContractHelper().newLendingVault(await this.getPoolTokenAddress());
31
31
  }
32
32
  async initializeToken() {
33
- const poolToken = await this.getPoolToken();
34
- return this.getContractHelper().newERC20(await poolToken.methods.underlying().call());
33
+ const poolToken = await this.getOffchainLendingVault();
34
+ return this.getContractHelper().newERC20(await poolToken.getUnderlyingAddress());
35
35
  }
36
36
  // Available Liquidity
37
37
  async initializeAvailableLiquidity() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.412",
3
+ "version": "2.1.413",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",