pub trait NativePriceOracle<AssetId, Price> {
    fn price(currency: AssetId) -> Option<Price>;
}
Expand description

Implementers of this trait provide the price of a given asset compared to the native currency.

So if 100 native tokens correspond to 200 ABC tokens, the price returned would be 2.0.

Should return None if no price is available.

Required Methods§

Implementations on Foreign Types§

Implementors§