Fix bug in flash loan for delegates where compute budget program was not allowed, also improved logging (#572)

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2023-05-04 14:46:09 +02:00 committed by GitHub
parent 7a2f957d1b
commit abba3de4ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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
);
}