Hierarchy

Constructors

  • Parameters

    • eBTC: eBTC
    • cdpService: CdpService
    • sharedServices: {
          borrowerOperations: BorrowerOperations;
          cdpManager: CdpManager;
          hintHelper: HintHelper;
          sortedCdps: SortedCdps;
      }
      • borrowerOperations: BorrowerOperations
      • cdpManager: CdpManager
      • hintHelper: HintHelper
      • sortedCdps: SortedCdps

    Returns CdpViewService

Properties

borrowerOperations: BorrowerOperations
cdpManager: CdpManager
hintHelper: HintHelper
level: LogLevel
sdk: eBTC
sortedCdps: SortedCdps

Accessors

  • get address(): undefined | string
  • Returns undefined | string

  • get connector(): Signer | MulticallProvider
  • Returns Signer | MulticallProvider

  • get provider(): MulticallProvider
  • Returns MulticallProvider

  • get signer(): undefined | Signer
  • Returns undefined | Signer

Methods

  • Parameters

    • level: LogLevel
    • Optional message: any
    • Rest ...optionalParams: any[]

    Returns void

  • Parameters

    • Optional message: any
    • Rest ...optionalParams: any[]

    Returns void

  • Parameters

    • Optional message: any
    • Rest ...optionalParams: any[]

    Returns void

  • Read system base rate

    Parameters

    • Optional overrides: Overrides

      Get system base rate overrides

    Returns Promise<BigNumber>

    System current base rate

  • Retrieve information for a single cdp. This includes unrealized collateral and debt changes to the cdp.

    Parameters

    • cdpId: BytesLike

      id of the cdp to get data for

    • Optional overrides: Overrides

      Get cdp paramter overrides

    Returns Promise<CdpBase>

    Cdp info related to the requested id

  • Read system cdps opened

    Parameters

    • Optional overrides: Overrides

      Get system cdps count overrides

    Returns Promise<BigNumber>

    System current cdps opened

  • Read specific cdp outstanding collateral

    Parameters

    • cdpId: BytesLike

      The id of the requested trove

    • Optional overrides: Overrides

      Get debt collateral overrides

    Returns Promise<BigNumber>

    Collateral for requested trove in an 18 decimal BigNumber

  • Read specific trove outstanding collateral ratio

    Parameters

    • cdpId: BytesLike

      The id of the requested trove

    • Optional overrides: Overrides

      Get collateral ratio read overrides

    Returns Promise<BigNumber>

    Collateral ratio for requested trove

  • Read specific trove outstanding debt

    Parameters

    • cdpId: BytesLike

      The id of the requested trove

    • Optional overrides: Overrides

      Get debt read overrides

    Returns Promise<BigNumber>

    Debt for requested trove in an 18 decimal BigNumber

  • Read entire debt and coll for a given CDP

    Parameters

    • cdpId: BytesLike

      id of the cdp to get data for

    • Optional overrides: Overrides

      Get total collateral read overrides

    Returns Promise<EntireCdpDebtAndColl>

    Total system collateral

  • Returns the current minumum collateral ratio to open a CDP in the current system's state

    Parameters

    • Optional overrides: Overrides

      Get minimum collateral ratio read overrides

    Returns Promise<BigNumber>

    Minimum collateral ratio required for a cdp to be opened in Ether unit

  • Returns the current minumum collateral amount in stEth balance (not shares) as 18 decimal BigNumber to open a CDP in the current system's state

    Parameters

    • Optional overrides: Overrides

      Get minimum collateral amount read overrides

    Returns Promise<BigNumber>

    Minimum collateral amount in stEth balance (not shares) as 18 decimal BigNumber required for a cdp to be opened

  • Returns array of cdpIds that belong to the requested address

    Parameters

    • address: string

      Request address to get cdps for

    • Optional overrides: Overrides

      Get owned cdps override parameters

    Returns Promise<string[]>

    List of cdpIds for the cdp that are owned by the requested address

  • Read system redemption fees

    Parameters

    • Optional overrides: Overrides

      Get system redemption fee overrides

    Returns Promise<BigNumber>

    System current redemption fees

  • Returns the Staking reward split of the stEth currently in a CDP. This value is how much % in basis points the protocol takes (Example: 6000 = 60% of staking rewards taken by the protocol)

    Parameters

    • Optional overrides: Overrides

      Get staking reward split read overrides

    Returns Promise<BigNumber>

    Staking reward split of the stEth in a CDP. This value is how much % in basis points the protocol takes (Example: 6000 = 60% of staking rewards taken by the protocol)

  • Read system outstanding collateral

    Parameters

    • Optional overrides: Overrides

      Get total collateral read overrides

    Returns Promise<BigNumber>

    Total system collateral

  • Get the latest synced Total Collateral Ratio (TCR) of the system.

    Parameters

    • Optional overrides: Overrides

      getSyncedTCR overrides

    Returns Promise<BigNumber>

    The Total System's Collateral Ratio in the Ether unit

  • Read system outstanding debt

    Parameters

    • Optional overrides: Overrides

      Get total debt read overrides

    Returns Promise<BigNumber>

    Total system debt

  • Parameters

    • Optional message: any
    • Rest ...optionalParams: any[]

    Returns void

  • Parameters

    • Optional message: any
    • Rest ...optionalParams: any[]

    Returns void

  • Parameters

    • Optional message: any
    • Rest ...optionalParams: any[]

    Returns void

Generated using TypeDoc