pub fn update_outdated_to_current(
    iterations: u32,
    outdated: (EmaPrice, EmaVolume, EmaLiquidity),
    update_with: (EmaPrice, EmaLiquidity),
    smoothing: Fraction
) -> (EmaPrice, EmaVolume, EmaLiquidity)
Expand description

Calculate the current oracle values from the outdated and update_with values using the smoothing factor with the old values being iterations out of date.

Note: The volume is always updated with zero values so it is not a parameter.