Function update_slot_shares

Source
pub fn update_slot_shares<T: Config>(
    pool: PoolDigest<T>,
    slot: PoolDigest<T>,
    shares: Shares<T>,
)
Expand description

Update the share weight of a slot within an existing pool.

Modifies the share allocation of the specified slot in the given pool without altering the pool’s identity or existing commitments.

§Requirements

  • Caller must be the current pool manager.
  • The specified pool and slot must be valid.

§Behavior

  • Updates the slot’s share weight in place.
  • Preserves all existing funds, commitments, and pool configuration.

§Notes

  • Unlike indexes, pools are mutable and support in-place updates.

Emits: Event::PoolSlotShare

§Warning: Doc-Only

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