Function pallet_ocif_staking::pallet::dispatchables::unstake

source ·
pub fn unstake<T: Config>(core_id: T::CoreId, value: BalanceOf<T>)
Expand description

Start unbonding process and unstake balance from the core.

The unstaked amount will no longer be eligible for rewards but still won’t be unlocked. User needs to wait for the unbonding period to finish before being able to withdraw the funds via withdraw_unstaked call.

In case remaining staked balance is below minimum staking amount, entire stake will be unstaked.

  • core_id: Id of the core to unstake from.

§Warning: Doc-Only

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