Service exposing functions to interface with an eBTC incentive rewards.

Hierarchy

Constructors

Properties

_rewards?: Rewards
level: LogLevel
rewardAddresses: string[] = []
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

    • account: string
    • totalCumulativeRewards: BigNumber[]

    Returns Promise<[string[], BigNumber[]]>

  • Parameters

    • account: string

    Returns Promise<[string[], BigNumber[]]>

  • Parameters

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

    Returns void

  • Parameters

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

    Returns void

  • Returns the amount of rewards that are currently claimable by an account.

    Parameters

    • account: string

      The account to check

    • totalCumulativeRewards: BigNumber[]

      The total amount of rewards that have been distributed to this account. This value can be obtained from the merkle tree in WEI (18 decimal bignumber)

    Returns Promise<RewardAmounts>

    The amount of rewards that can be claimed by the account

  • Returns the total amount of rewards claimed by an account. This includes all cycles from the rewards contract

    Parameters

    • account: string

      the account

    Returns Promise<RewardAmounts>

    a map of the claimed reward tokens to the amount claimed

  • 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