Function pallet_capacity::pallet::dispatchables::withdraw_unstaked
source · pub fn withdraw_unstaked<T: Config>()
Expand description
Removes all thawed UnlockChunks from caller’s UnstakeUnlocks and thaws(unfreezes) the sum of the thawed values in the caller’s token account.
Errors
- Returns
Error::NoUnstakedTokensAvailable
if the account has no unstaking chunks. - Returns
Error::NoThawedTokenAvailable
if there are unstaking chunks, but none are thawed.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::withdraw_unstaked
.