Class OptionRewardAPI

Represents a class for handling pool operations related to the voidnode server and the pool contracts.

Hierarchy

  • BaseAPI
    • OptionRewardAPI

Constructors

Properties

premia: Premia

The Premia SDK instance.

streamIndex: number = 0

The current index of quote streams. Used to cancel stale streams.

Methods

  • Cancels all ongoing streams.

    Returns Promise<void>

  • Returns a promise containing a populated transaction to claim rewards from option. Allows the user to use the SDK without providing a signer.

    Parameters

    • strike: bigint

      {bigint} strike price of the option.

    • maturity: bigint

      {bigint} maturity of the option

    • Optional provider: Provider

    Returns Promise<ContractTransaction>

    Promise containing the contract transaction.

  • Returns a promise containing a populated transaction to claim rewards from option. Allows the user to use the SDK without providing a signer.

    Parameters

    • strike: bigint

      {bigint} strike price of the option.

    • maturity: bigint

      {bigint} maturity of the option

    • Optional provider: Provider

    Returns TransactionData

    The encoded transaction data.

Generated using TypeDoc