diff --git a/common/modules/farm/config/src/config.rs b/common/modules/farm/config/src/config.rs index 46564e5c0..88858153e 100644 --- a/common/modules/farm/config/src/config.rs +++ b/common/modules/farm/config/src/config.rs @@ -11,13 +11,6 @@ pub const DEFAULT_FARM_POSITION_MIGRATION_NONCE: u64 = 1; #[multiversx_sc::module] pub trait ConfigModule: pausable::PausableModule + permissions_module::PermissionsModule { - // Disabled for this version of the exchange - // #[endpoint(setAllowExternalClaimBoostedRewards)] - // fn set_allow_external_claim(&self, allow_external_claim: bool) { - // let caller = self.blockchain().get_caller(); - // self.allow_external_claim(&caller).set(allow_external_claim); - // } - #[inline] fn is_active(&self) -> bool { let state = self.state().get(); @@ -78,6 +71,7 @@ pub trait ConfigModule: pausable::PausableModule + permissions_module::Permissio #[storage_mapper("userTotalFarmPosition")] fn user_total_farm_position(&self, user: &ManagedAddress) -> SingleValueMapper; + // Update for this storage disabled for this version of the exchange #[view(getAllowExternalClaim)] #[storage_mapper("allowExternalClaim")] fn allow_external_claim(&self, user: &ManagedAddress) -> SingleValueMapper; diff --git a/energy-integration/fees-collector/src/config.rs b/energy-integration/fees-collector/src/config.rs index e65282d17..72fa1fc70 100644 --- a/energy-integration/fees-collector/src/config.rs +++ b/energy-integration/fees-collector/src/config.rs @@ -60,14 +60,6 @@ pub trait ConfigModule { self.all_tokens().set(&all_tokens_vec); } - // Disabled for this version of the exchange - // #[endpoint(setAllowExternalClaimRewards)] - // fn set_allow_external_claim_rewards(&self, allow_external_claim_rewards: bool) { - // let caller = self.blockchain().get_caller(); - // self.allow_external_claim_rewards(&caller) - // .set(allow_external_claim_rewards); - // } - #[view(getLockedTokenId)] #[storage_mapper("lockedTokenId")] fn locked_token_id(&self) -> SingleValueMapper; @@ -87,6 +79,7 @@ pub trait ConfigModule { #[storage_mapper("allTokens")] fn all_tokens(&self) -> SingleValueMapper>; + // Update for this storage disabled for this version of the exchange #[view(getAllowExternalClaimRewards)] #[storage_mapper("allowExternalClaimRewards")] fn allow_external_claim_rewards(&self, user: &ManagedAddress) -> SingleValueMapper;