diff --git a/programs/marginfi/src/state/price.rs b/programs/marginfi/src/state/price.rs index ff4477bc..7ac1f8ec 100644 --- a/programs/marginfi/src/state/price.rs +++ b/programs/marginfi/src/state/price.rs @@ -354,7 +354,7 @@ impl SwitchboardPullPriceFeed { fn get_price(&self) -> MarginfiResult { let sw_result = self.feed.result; // Note: Pull oracles support mean (result.mean) or median (result.value) - let price: I80F48 = I80F48::from_num(sw_result.mean) + let price: I80F48 = I80F48::from_num(sw_result.value) .checked_div(EXP_10_I80F48[switchboard_on_demand::PRECISION as usize]) .ok_or_else(math_error!())?;