pub trait FeeToAmount { // Required method fn to_amount(&self, payment: &Amount) -> Amount; }
Trait for converting a fee type to specific Amount, relative to a given payment Amount
Amount
Calculates fee Amount given a payment Amount