Trait astar_primitives::oracle::PriceProvider
source · 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.
Object Safety§
This trait is not object safe.