Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
psorinionut committed Jul 31, 2024
1 parent 4e5e21c commit 0478274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
8 changes: 1 addition & 7 deletions common/modules/farm/config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -78,6 +71,7 @@ pub trait ConfigModule: pausable::PausableModule + permissions_module::Permissio
#[storage_mapper("userTotalFarmPosition")]
fn user_total_farm_position(&self, user: &ManagedAddress) -> SingleValueMapper<BigUint>;

// Update for this storage disabled for this version of the exchange
#[view(getAllowExternalClaim)]
#[storage_mapper("allowExternalClaim")]
fn allow_external_claim(&self, user: &ManagedAddress) -> SingleValueMapper<bool>;
Expand Down
9 changes: 1 addition & 8 deletions energy-integration/fees-collector/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TokenIdentifier>;
Expand All @@ -87,6 +79,7 @@ pub trait ConfigModule {
#[storage_mapper("allTokens")]
fn all_tokens(&self) -> SingleValueMapper<ManagedVec<TokenIdentifier>>;

// 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<bool>;
Expand Down

0 comments on commit 0478274

Please sign in to comment.