This commit is contained in:
Hardhat Chad
2025-06-13 12:45:23 -07:00
parent ab04720ca2
commit f487593ba2
2 changed files with 8 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ pub fn process_open(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult
sender_info
.is_writable()?
.as_associated_token_account(&signer_info.key, &mint_quote_info.key)?
.assert_mut(|t| t.amount() >= OPEN_FEE)?;
.assert(|t| t.amount() >= OPEN_FEE)?;
treasury_info.has_address(&TREASURY_ADDRESS)?;
system_program.is_program(&system_program::ID)?;
token_program.is_program(&spl_token::ID)?;