Trait serp_traits::stp258::FetchPrice[][src]

pub trait FetchPrice<Balance> {
    type Balance: AtLeast32BitUnsigned + FullCodec + Copy + MaybeSerializeDeserialize + Debug + Default;
    fn fetch_price() -> Self::Balance;
}

Expected price oracle interface. fetch_price must return the amount of Coins exchanged for the tracked value.

Associated Types

type Balance: AtLeast32BitUnsigned + FullCodec + Copy + MaybeSerializeDeserialize + Debug + Default[src]

The balance of an account.

Loading content...

Required methods

fn fetch_price() -> Self::Balance[src]

Fetch the current price.

Loading content...

Implementors

Loading content...