impermax-sdk 2.1.364 → 2.1.366
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.
package/lib/config/whitelist.js
CHANGED
|
@@ -25,7 +25,7 @@ exports.WHITELISTED_PAIRS = {
|
|
|
25
25
|
"0x8a5F2647dF30f98f4D01485385B1612fd4EFDAc3",
|
|
26
26
|
"0x41E0cBD0f2802862F197bD1a3DE982d3ACB2D54a",
|
|
27
27
|
"0x6d1ceE91c24138b733a96560CaE96E5BC5F5BbBc",
|
|
28
|
-
"
|
|
28
|
+
"0xF9b17C8594B215a7B0f6D2c6720ccB3b62c4d006",
|
|
29
29
|
"0x958211791FcF992eF57D4aEdb1cBB384CfBaBfea",
|
|
30
30
|
"0xa579e983F1552b9581BBf95a54Cc563ee3Ace854", // ETH/LINK univ3
|
|
31
31
|
]
|
|
@@ -2,4 +2,4 @@ import { AddressIndex, Address } from "../../../../../../config/types";
|
|
|
2
2
|
import Offchain from "../../../../../offchain";
|
|
3
3
|
import { NftlpStats } from "../../../../../offchainTypes";
|
|
4
4
|
export declare function fetchNftlpTvls(this: Offchain): Promise<AddressIndex<NftlpStats>>;
|
|
5
|
-
export declare function getNftlpTvl(this: Offchain, nftlpAddress: Address): Promise<NftlpStats>;
|
|
5
|
+
export declare function getNftlpTvl(this: Offchain, nftlpAddress: Address): Promise<NftlpStats | null>;
|
|
@@ -44,6 +44,8 @@ class OffchainCollateralV3 extends offchainCollateral_1.default {
|
|
|
44
44
|
// TODO
|
|
45
45
|
async getTotalBalanceUSD() {
|
|
46
46
|
const nftlpStats = await this.getOffchain().getNftlpTvl(this.nftlp.getNftlpAddress());
|
|
47
|
+
if (!nftlpStats)
|
|
48
|
+
return 0;
|
|
47
49
|
return nftlpStats.tvlUSD;
|
|
48
50
|
}
|
|
49
51
|
}
|