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

Object Safety§

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§