Service exposing functions to interface with an eBTC incentive rewards.

Hierarchy

Constructors

Properties

_btcUsdChainlinkOracle?: ChainlinkAggregator
_ebtcFeed?: EbtcFeed
_stEth?: Steth
_stEthUsdChainlinkOracle?: ChainlinkAggregator
level: LogLevel
sdk: eBTC

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

  • Retrieves the most up to date stETH/BTC ratio from the eBTC Price Feed. This is the price of 1 stETH in BTC. e.g. 1 stETH = 0.05300524643 BTC (~march 2024) will return 0.05300524643

    Parameters

    • Optional overrides: Overrides

      ethers overrides

    Returns Promise<BigNumber>

    Current stETH/BTC ratio for the eBTC system in Ether units

  • Get the latest BTC/USD price from the Chainlink oracle

    Parameters

    • Optional overrides: Overrides

      Chainlink oracle overrides

    Returns Promise<BigNumber>

    Latest BTC/USD price in Ether units

  • Get the latest stETH/USD price from the Chainlink oracle

    Parameters

    • Optional overrides: Overrides

      Chainlink oracle overrides

    Returns Promise<BigNumber>

    Latest stETH/USD price in Ether units

  • Returns the current share ratio of stEth. Returns the stEth balance for 1 stEth Share. e.g. 1.2 stEth balance per 1 stEth Share

    Returns Promise<BigNumber>

    Current share to balance ratio of stEth in Ether units

  • 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