• Creates a new NectarStaking instance or retrieves an existing one from the provided Honeycomb instance. If a web3.PublicKey is provided as the args, it will retrieve the existing NectarStaking instance associated with that pool address. Otherwise, it will create a new staking pool using the provided arguments.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance.

    • args: PublicKey | NewStakingPoolArgs

      Either a web3.PublicKey representing an existing staking pool address, or an object of type NewStakingPoolArgs for creating a new staking pool.

    Returns Promise<NectarStaking>

    A Promise that resolves with the NectarStaking instance representing the created or retrieved staking pool.

Generated using TypeDoc