Function registerStake

  • Registers a new stake for the given stakeMint and rewardMint.

    Returns

    InstructionReturn

    Parameters

    • program: AtlasStakingIDLProgram

      Staking IDL program

    • updateAuthority: AsyncSigner<unknown>

      Authority for the registered stake account

    • stakeMint: PublicKey

      Mint for the stake token

    • rewardMint: PublicKey

      Mint for the reward token

    • rewardMultiplier: number

      Rate at which reward tokens will be distributed. Tokens in base units per day per REWARD_MULTIPLIER_BASE tokens staked

    • cooldownPeriod: number

      Amount of time, in seconds, the user must wait before withdrawing their staked tokens

    Returns InstructionReturn

Generated using TypeDoc