referrerpolicy=no-referrer-when-downgrade

Function pallet_nomination_pools::pallet::dispatchables::create

source ·
pub fn create<T: Config>(
    amount: BalanceOf<T>,
    root: <<T as Config>::Lookup as StaticLookup>::Source,
    nominator: <<T as Config>::Lookup as StaticLookup>::Source,
    bouncer: <<T as Config>::Lookup as StaticLookup>::Source,
)
Expand description

Create a new delegation pool.

§Arguments

  • amount - The amount of funds to delegate to the pool. This also acts of a sort of deposit since the pools creator cannot fully unbond funds until the pool is being destroyed.
  • index - A disambiguation index for creating the account. Likely only useful when creating multiple pools in the same extrinsic.
  • root - The account to set as PoolRoles::root.
  • nominator - The account to set as the PoolRoles::nominator.
  • bouncer - The account to set as the PoolRoles::bouncer.

§Note

In addition to amount, the caller will transfer the existential deposit; so the caller needs at have at least amount + existential_deposit transferable.

§Warning: Doc-Only

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