diff --git a/programs/jit-proxy/src/instructions/arb_perp.rs b/programs/jit-proxy/src/instructions/arb_perp.rs index 479e925..7cdcf47 100644 --- a/programs/jit-proxy/src/instructions/arb_perp.rs +++ b/programs/jit-proxy/src/instructions/arb_perp.rs @@ -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(()) }