Trait pallet_payment::FeeHandler 
source · pub trait FeeHandler<T: Config> {
    fn apply_fees(
        from: &T::AccountId,
        to: &T::AccountId,
        detail: &PaymentDetail<T>,
        remark: Option<&[u8]>
    ) -> (T::AccountId, Percent);
}Expand description
Fee Handler trait that defines how to handle marketplace fees to every payment/swap
Required Methods§
sourcefn apply_fees(
    from: &T::AccountId,
    to: &T::AccountId,
    detail: &PaymentDetail<T>,
    remark: Option<&[u8]>
) -> (T::AccountId, Percent)
 
fn apply_fees(
    from: &T::AccountId,
    to: &T::AccountId,
    detail: &PaymentDetail<T>,
    remark: Option<&[u8]>
) -> (T::AccountId, Percent)
Get the distribution of fees to marketplace participants