Skip to content

Commit

Permalink
program: cu optimization for place perp order
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Dec 2, 2024
1 parent 8fb2cae commit a71f327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/drift/src/controller/orders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ pub fn place_perp_order(
padding: [0; 3],
};

let valid_oracle_price = Some(oracle_map.get_price_data(&market.oracle_id())?.price);
let valid_oracle_price = Some(oracle_price_data.price);
match validate_order(&new_order, market, valid_oracle_price, slot) {
Ok(()) => {}
Err(ErrorCode::PlacePostOnlyLimitFailure)
Expand Down

0 comments on commit a71f327

Please sign in to comment.