Function update_commission

Source
pub fn update_commission<T: Config>(
    index: IndexDigest<T>,
    commission: Commission<T>,
)
Expand description

Update the commission for a funding pool by creating a new pool instance.

This operation does not mutate the existing pool. Instead, it creates a new pool derived from the given index with the updated commission, assigning the caller as the new pool manager.

§Behavior

  • A new pool is created with the specified commission.
  • The caller becomes the manager of the new pool.
  • The new pool starts with no funds or backing.
  • The original pool remains unchanged.

§Notes

  • Pools are non-custodial, and funds are not transferred during this operation.
  • This effectively creates a fresh pool configuration with updated parameters.

Emits: Event::PoolCreated

§Warning: Doc-Only

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