Skip to content

Commit

Permalink
tweak logs
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Jan 25, 2024
1 parent cf11918 commit df90f30
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions programs/jit-proxy/src/instructions/jit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,14 @@ pub fn jit<'info>(ctx: Context<'_, '_, '_, 'info, Jit<'info>>, params: JitParams
slots_left
);

if taker_order.order_type == OrderType::Oracle {
msg!(
"order type {:?} auction start {} auction end {} oracle price offset {}",
taker_order.order_type,
taker_order.auction_start_price,
taker_order.auction_end_price,
taker_order.oracle_price_offset
);
} else {
msg!(
"order type {:?} auction start {} auction end {} limit price {}",
taker_order.order_type,
taker_order.auction_start_price,
taker_order.auction_end_price,
taker_order.price
);
}
msg!(
"order type {:?} auction start {} auction end {} limit price {} oracle price offset {}",
taker_order.order_type,
taker_order.auction_start_price,
taker_order.auction_end_price,
taker_order.price,
taker_order.oracle_price_offset
);

let remaining_accounts_iter = &mut ctx.remaining_accounts.iter().peekable();
let AccountMaps {
Expand Down

0 comments on commit df90f30

Please sign in to comment.