@wildcatfi/wildcat-sdk
Advanced tools
Comparing version 1.0.11 to 1.0.12
import { BigNumber } from "ethers"; | ||
import { VaultLens, WildcatVaultController, WildcatVaultFactory, MockERC20Factory } from "./typechain"; | ||
import { SignerOrProvider } from "./types"; | ||
export declare const LensAddress = "0x078BE578bFB8f359399d3FAecb7e8a5583Af9fa2"; | ||
export declare const LensAddress = "0x2679D45fd04C6A7c97d4b601312A396C945e79D0"; | ||
export declare const MockERC20FactoryAddress = "0x7d1d45890c937b260b7345B91d6B457e470B13e4"; | ||
export declare const FactoryAddress = "0xA7F3b0D71E0e526c9fb352725D7121583f18B2FE"; | ||
export declare const ControllerAddress = "0xE05EF4571Dd4b5B94a7104E33283A42FD238Ef6a"; | ||
export declare const FactoryAddress = "0x2A9F192E9d698DcA4507b852052B9FA6d972f561"; | ||
export declare const ControllerAddress = "0x5df156551F996f15F8bf9eB1119Dc703a7ba2754"; | ||
export declare const getControllerContract: (provider: SignerOrProvider) => WildcatVaultController; | ||
@@ -9,0 +9,0 @@ export declare const getFactoryContract: (provider: SignerOrProvider) => WildcatVaultFactory; |
@@ -6,6 +6,6 @@ "use strict"; | ||
const typechain_1 = require("./typechain"); | ||
exports.LensAddress = "0x078BE578bFB8f359399d3FAecb7e8a5583Af9fa2"; | ||
exports.LensAddress = "0x2679D45fd04C6A7c97d4b601312A396C945e79D0"; | ||
exports.MockERC20FactoryAddress = "0x7d1d45890c937b260b7345B91d6B457e470B13e4"; | ||
exports.FactoryAddress = "0xA7F3b0D71E0e526c9fb352725D7121583f18B2FE"; | ||
exports.ControllerAddress = "0xE05EF4571Dd4b5B94a7104E33283A42FD238Ef6a"; | ||
exports.FactoryAddress = "0x2A9F192E9d698DcA4507b852052B9FA6d972f561"; | ||
exports.ControllerAddress = "0x5df156551F996f15F8bf9eB1119Dc703a7ba2754"; | ||
const getControllerContract = (provider) => { | ||
@@ -12,0 +12,0 @@ return typechain_1.WildcatVaultController__factory.connect(exports.ControllerAddress, provider); |
@@ -53,2 +53,3 @@ import { BigNumber } from "ethers"; | ||
get collateralNeededForGoodStanding(): TokenAmount; | ||
get isIncurringPenalties(): boolean; | ||
get delinquentDebt(): TokenAmount; | ||
@@ -55,0 +56,0 @@ get outstandingDebt(): TokenAmount; |
@@ -85,2 +85,5 @@ "use strict"; | ||
} | ||
get isIncurringPenalties() { | ||
return this.isDelinquent && this.timeDelinquent > this.gracePeriod; | ||
} | ||
get delinquentDebt() { | ||
@@ -87,0 +90,0 @@ const collateral = this.totalAssets; |
{ | ||
"name": "@wildcatfi/wildcat-sdk", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
882051
12979