pub trait PriceProvider {
// Required method
fn average_price() -> Price;
}Expand description
Interface for fetching price of the native token.
Required Methods§
Sourcefn average_price() -> Price
fn average_price() -> Price
Get the price of the native token.
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.