Trait cfg_traits::fees::PayFee

source ·
pub trait PayFee<AccountId> {
    // Required method
    fn pay(payer: &AccountId) -> DispatchResult;
}
Expand description

Trait to pay fees This trait can be used by a pallet to just pay fees without worring about the value or where the fee goes.

Required Methods§

source

fn pay(payer: &AccountId) -> DispatchResult

Pay the fee using a payer

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<AccountId> PayFee<AccountId> for NoPayFee