Skip to content

Commit

Permalink
program: more logging when amm cant fulfill
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Dec 27, 2023
1 parent 627c104 commit 43f1bb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion programs/drift/src/controller/orders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1829,7 +1829,8 @@ pub fn fulfill_perp_order_with_amm(
// if is an actual swap (and not amm jit order) then msg!
if override_base_asset_amount.is_none() {
msg!(
"Amm cant fulfill order. base asset amount {} market.amm.min_order_size {}",
"Amm cant fulfill order. market index {} base asset amount {} market.amm.min_order_size {}",
market.market_index,
base_asset_amount,
market.amm.min_order_size
);
Expand Down

0 comments on commit 43f1bb0

Please sign in to comment.