referrerpolicy=no-referrer-when-downgrade
pub fn undelegate<T: Config<I>, I: 'static>(
    class: <<T as Config<I>>::Polls as Polling<TallyOf<T, I>>>::Class,
)
Expand description

Undelegate the voting power of the sending account for a particular class of polls.

Tokens may be unlocked following once an amount of time consistent with the lock period of the conviction with which the delegation was issued has passed.

The dispatch origin of this call must be Signed and the signing account must be currently delegating.

  • class: The class of polls to remove the delegation from.

Emits Undelegated.

Weight: O(R) where R is the number of polls the voter delegating to has voted on. Weight is initially charged as if maximum votes, but is refunded later.

§Warning: Doc-Only

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