pub fn is_associated_token_account_or_owner( pubkey: &Pubkey, owner: &Pubkey, mint: &Pubkey, ) -> bool
Check if the given pubkey is an ATA address or the owner itself.
pubkey
owner