Function back

Source
pub fn back<T: Config>(
    via: FundingTarget<T>,
    value: AuthorAsset<T>,
    fortitude: FortitudeWrapper,
    precision: PrecisionWrapper,
)
Expand description

Provide economic backing support to an author using a supported funding model.

This extrinsic allows the caller to economically support an author by locking assets under the FreezeReason::AuthorFunding commitment domain. Funding directly affects an author’s eligibility, exposure, and election weight.

§Funding Models

  • Direct: Funds are committed explicitly to a single author.
  • Index: Route funds through an index resolving to multiple author digests.
  • Pool: Commit funds to a managed pool of authors with commission-based withdrawals.

§Guarantees

  • Funds are fully locked and cannot be double-used elsewhere.
  • Author collateral is never mixed with external funding.
  • MinFund and MaxExposure are strictly enforced.
  • Local minimum and maximum limits enforced by authors and underlying systems are considered.
  • Funding is rejected if the resolved author or digest is invalid.

§Execution Controls

  • precision defines how strictly the requested amount must be satisfied:
    • [Precision::Exact]: Requires full amount commitment.
    • [Precision::BestEffort]: Allows partial fulfillment where supported.
  • force defines how funds are sourced:
    • [Fortitude::Force]: Uses the caller’s liquid balance, enforcing the commitment directly.
    • [Fortitude::Polite]: Uses funds already deposited in the commitment reserve (if Config::CommitmentAdapter == pallet_commitment).

Emits via internal hook: - Event::AuthorFunded if direct author backing - Event::IndexFunded multiple authors via an index - Event::PoolFunded multiple authors via a managed pool

§Warning: Doc-Only

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