From abba3de4ce304365098130b443e9dd3c48e5f25d Mon Sep 17 00:00:00 2001 From: microwavedcola1 <89031858+microwavedcola1@users.noreply.github.com> Date: Thu, 4 May 2023 14:46:09 +0200 Subject: [PATCH] Fix bug in flash loan for delegates where compute budget program was not allowed, also improved logging (#572) Signed-off-by: microwavedcola1 --- programs/mango-v4/src/instructions/flash_loan.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/mango-v4/src/instructions/flash_loan.rs b/programs/mango-v4/src/instructions/flash_loan.rs index ee1527898..4be78d1c2 100644 --- a/programs/mango-v4/src/instructions/flash_loan.rs +++ b/programs/mango-v4/src/instructions/flash_loan.rs @@ -138,8 +138,9 @@ pub fn flash_loan_begin<'key, 'accounts, 'remaining, 'info>( ix.program_id == AssociatedToken::id() || ix.program_id == jupiter_mainnet_3::ID || ix.program_id == jupiter_mainnet_4::ID + || ix.program_id == compute_budget::ID || ix.program_id == crate::id(), - "delegate is only allowed to pass in ixs to ATA or Jupiter v3 or v4 programs" + "delegate is only allowed to pass in ixs to ATA or Jupiter v3 or v4 programs, passed ({})", ix.program_id ); }