referrerpolicy=no-referrer-when-downgrade

claim_revenue

Function claim_revenue 

Source
pub fn claim_revenue<T: Config>(region_id: RegionId, max_timeslices: Timeslice)
Expand description

Claim the revenue owed from inclusion in the Instantaneous Coretime Pool.

  • origin: Must be a Signed origin.
  • region_id: The Region which was assigned to the Pool.
  • max_timeslices: The maximum number of timeslices which should be processed. This must be greater than 0. This may affect the weight of the call but should be ideally made equivalent to the length of the Region region_id. If less, further dispatches will be required with the same region_id to claim revenue for the remainder. Processing stops at the first timeslice whose revenue the relay chain has not yet reported; the remainder can be claimed once it has been.

The fee is waived only if at least one timeslice was processed, and the weight of the timeslices that were not processed is refunded.

§Warning: Doc-Only

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