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:
parent
7a2f957d1b
commit
abba3de4ce
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue