INNER CODE UNIT · Rust
set_candidacy_bond
AstarNetwork/Astar · pallets/collator-selection/src/lib.rs:406
pub fn set_candidacy_bond(
origin: OriginFor<T>,
bond: BalanceOf<T>,
) -> DispatchResultWithPostInfo {
T::UpdateOrigin::ensure_origin(origin)?;
<CandidacyBond<T>>::put(bond);
Self::deposit_event(Event::NewCandidacyBond(bond));
Ok(().into())
}
/// Register this account as a collator candidate. The account must (a) already have
/// registered session keys and (b) be able to reserve the `CandidacyBond`.
///
/// **DEPRECATED**: This extrinsic is deprecated and will be removed in a future version.
/// Applications are now automatically processed when approved via `accept_application`.
/// This function now always fails to enforce the new permissioned workflow.
///
/// This call is not available to `Invulnerable` collators.