Function unstakeTokens

  • Harvests pending rewards then starts the unstaking process

    Returns

    InstructionReturn

    Parameters

    • program: AtlasStakingIDLProgram

      Staking IDL program

    • user: AsyncSigner<unknown>

      User signing the transaction

    • registeredStake: RegisteredStake

      Registered stake account

    • rewardsTo: PublicKey

      Token account to receive the rewards, owned by the user and of the same mint as the rewardMint in the registeredStake account

    Returns InstructionReturn

Generated using TypeDoc