referrerpolicy=no-referrer-when-downgrade
pallet_asset_rewards::pallet::dispatchables

Function unstake

Source
pub fn unstake<T: Config>(
    pool_id: PoolId,
    amount: T::Balance,
    staker: Option<T::AccountId>,
)
Expand description

Unstake tokens from a pool.

Removes the freeze on the staked tokens.

Parameters:

  • origin: must be the staker if the pool is still active. Otherwise, any account.
  • pool_id: the pool to unstake from.
  • amount: the amount of tokens to unstake.
  • staker: the account to unstake from. If None, the caller is used.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::unstake.