Trait traits::OracleApi

source ·
pub trait OracleApi<Amount, CurrencyId> {
    // Required method
    fn convert(amount: &Amount, to: CurrencyId) -> Result<Amount, DispatchError>;
}

Required Methods§

source

fn convert(amount: &Amount, to: CurrencyId) -> Result<Amount, DispatchError>

Implementors§