pub fn claim_commission<T: Config>(pool_id: PoolId)
Expand description
Claim pending commission.
The root
role of the pool is always allowed to claim the pool’s commission.
If the pool has set CommissionClaimPermission::Permissionless
, then any account can
trigger the process of claiming the pool’s commission.
If the pool has set its CommissionClaimPermission
to Account(acc)
, then only
accounts
acc
, and- the pool’s root account
may call this extrinsic on behalf of the pool.
Pending commissions are paid out and added to the total claimed commission. The total pending commission is reset to zero.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::claim_commission
.