pub trait PricingProvider<T: Balance> {
// Required method
fn spot_price(
price_config: &PriceParameters<T>,
queue_depth: u32,
) -> Result<T, DispatchError>;
}Expand description
Type for determining the prices of on-demand orders
Required Methods§
Sourcefn spot_price(
price_config: &PriceParameters<T>,
queue_depth: u32,
) -> Result<T, DispatchError>
fn spot_price( price_config: &PriceParameters<T>, queue_depth: u32, ) -> Result<T, DispatchError>
Returns the current spot price of an on-demand order.
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.