pub trait ProcessBlockValues {
    // Required method
    fn process(
        values: &[CurrencyAmount]
    ) -> Result<CurrencyAmount, &'static str>;
}
Expand description

Trait for processing accumulated currency values within a single block.

This can be anything from median, average, or more complex calculation.

Required Methods§

source

fn process(values: &[CurrencyAmount]) -> Result<CurrencyAmount, &'static str>

Process the accumulated values and return the result.

In case of an error, return an error message.

Object Safety§

This trait is not object safe.

Implementors§