query_pyth_price

Function query_pyth_price 

Source
pub fn query_pyth_price<Exp: Integer, C: SolanaClock>(
    clock: &C,
    oracle: &PriceUpdateV2,
    _: OracleConfig<Exp>,
) -> Result<PriceRange<Exp>>
where UFix64<Exp>: FixExt,
Expand description

Fetches price range from a Pyth oracle with a number of validations.