From cf9b0307aa017257d9e2d517d5daea8dac239ac6 Mon Sep 17 00:00:00 2001 From: Chris Heaney Date: Fri, 10 Nov 2023 12:34:44 +0100 Subject: [PATCH] add some more logs --- programs/jit-proxy/src/instructions/arb_perp.rs | 9 +++++++++ 1 file changed, 9 insertions(+) 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(()) }