Skip to content

Commit

Permalink
remove redundant multiply
Browse files Browse the repository at this point in the history
  • Loading branch information
0xripleys committed Dec 18, 2023
1 parent f7f7bf7 commit 85ca111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token-lending/program/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ fn _refresh_reserve<'a>(
// currently there's no way to support two prices without a pyth oracle. So if a reserve
// only supports switchboard, reserve.smoothed_market_price == reserve.market_price
if reserve.liquidity.pyth_oracle_pubkey == solend_program::NULL_PUBKEY {
reserve.liquidity.smoothed_market_price = market_price.try_mul(reserve.price_scale())?;
reserve.liquidity.smoothed_market_price = reserve.liquidity.market_price;
}

Reserve::pack(*reserve, &mut reserve_info.data.borrow_mut())?;
Expand Down

0 comments on commit 85ca111

Please sign in to comment.