pallet_parachain_staking::traits

Trait PayoutCollatorReward

Source
pub trait PayoutCollatorReward<Runtime: Config> {
    // Required method
    fn payout_collator_reward(
        round_index: RoundIndex,
        collator_id: Runtime::AccountId,
        amount: BalanceOf<Runtime>,
    ) -> Weight;
}
Expand description

Defines the behavior to payout the collator’s reward.

Required Methods§

Source

fn payout_collator_reward( round_index: RoundIndex, collator_id: Runtime::AccountId, amount: BalanceOf<Runtime>, ) -> Weight

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<Runtime: Config> PayoutCollatorReward<Runtime> for ()

Defines the default behavior for paying out the collator’s reward. The amount is directly deposited into the collator’s account.

Source§

fn payout_collator_reward( for_round: RoundIndex, collator_id: Runtime::AccountId, amount: BalanceOf<Runtime>, ) -> Weight

Implementors§