referrerpolicy=no-referrer-when-downgrade
pallet_staking::asset

Function update_stake

Source
pub fn update_stake<T: Config>(
    who: &T::AccountId,
    amount: BalanceOf<T>,
) -> DispatchResult
Expand description

Update amount at stake for who.

Overwrites the existing stake amount. If passed amount is lower than the existing stake, the difference is unlocked.