[][src]Trait eq_oracle::PriceGetter

pub trait PriceGetter {
    fn get_price(currency: &Currency) -> Result<FixedI64, DispatchError>;
}

Interface for getting current system price of a currency

Required methods

fn get_price(currency: &Currency) -> Result<FixedI64, DispatchError>

Gets current price for given currency

Loading content...

Implementors

impl<T: Trait> PriceGetter for Module<T>[src]

Loading content...