Skip to content

Commit

Permalink
add some more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Nov 10, 2023
1 parent 9c6fa40 commit cf9b030
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions programs/jit-proxy/src/instructions/arb_perp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,18 @@ pub fn arb_perp<'info>(
.map_or((0, 0), |p| (p.base_asset_amount, p.quote_asset_amount));

if base_end != base_init || quote_end <= quote_init {
msg!(
"base_end {} base_init {} quote_end {} quote_init {}",
base_end,
base_init,
quote_end,
quote_init
);
return Err(ErrorCode::NoArbOpportunity.into());
}

msg!("pnl {}", quote_end - quote_init);

Ok(())
}

Expand Down

0 comments on commit cf9b030

Please sign in to comment.