Function withdrawTokens

  • Withdraws staked tokens This can only be done for unstaked tokens whose unstake cooldown period has run out

    Returns

    InstructionReturn

    Parameters

    • program: AtlasStakingIDLProgram

      Staking IDL program

    • user: AsyncSigner<unknown>

      User withdrawing tokens

    • registeredStake: RegisteredStake

      Registered stake to withdraw from

    • rewardsTo: PublicKey

      The user's StakeMint token account. Owned by the registered "owner" in user's staking account with the same mint as the "stake_mint" in the registeredStake account.

    Returns InstructionReturn

Generated using TypeDoc