pub trait Zip317FeeRule: FeeRule {
// Required methods
fn marginal_fee(&self) -> Zatoshis;
fn grace_actions(&self) -> usize;
}
Expand description
An extension to the [FeeRule
] trait that exposes methods required for
ZIP 317 fee calculation.
Required Methods§
Sourcefn marginal_fee(&self) -> Zatoshis
fn marginal_fee(&self) -> Zatoshis
Returns the ZIP 317 marginal fee.
Sourcefn grace_actions(&self) -> usize
fn grace_actions(&self) -> usize
Returns the ZIP 317 number of grace actions
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.