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§