From 6ed7254d1a578ffbc2b091d28cb92b25e7cc511d Mon Sep 17 00:00:00 2001 From: Jon Cinque Date: Thu, 9 Nov 2023 15:51:26 +0100 Subject: [PATCH] stake-pool: Allow mints with confidential transfer fee (#5610) --- stake-pool/program/src/state.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stake-pool/program/src/state.rs b/stake-pool/program/src/state.rs index f35dd508812..31c2ef94665 100644 --- a/stake-pool/program/src/state.rs +++ b/stake-pool/program/src/state.rs @@ -500,10 +500,11 @@ impl StakePool { /// Checks if the given extension is supported for the stake pool mint pub fn is_extension_supported_for_mint(extension_type: &ExtensionType) -> bool { - const SUPPORTED_EXTENSIONS: [ExtensionType; 7] = [ + const SUPPORTED_EXTENSIONS: [ExtensionType; 8] = [ ExtensionType::Uninitialized, ExtensionType::TransferFeeConfig, ExtensionType::ConfidentialTransferMint, + ExtensionType::ConfidentialTransferFeeConfig, ExtensionType::DefaultAccountState, // ok, but a freeze authority is not ExtensionType::InterestBearingConfig, ExtensionType::MetadataPointer,