fedimint_ln_common::config

Trait FeeToAmount

source
pub trait FeeToAmount {
    // Required method
    fn to_amount(&self, payment: &Amount) -> Amount;
}
Expand description

Trait for converting a fee type to specific Amount, relative to a given payment Amount

Required Methods§

source

fn to_amount(&self, payment: &Amount) -> Amount

Calculates fee Amount given a payment Amount

Implementations on Foreign Types§

source§

impl FeeToAmount for RoutingFees

source§

fn to_amount(&self, payment: &Amount) -> Amount

Implementors§