Skip to content

Commit

Permalink
remove rewards aggregation from merge farm
Browse files Browse the repository at this point in the history
  • Loading branch information
psorinionut committed Aug 2, 2024
1 parent ba5aec9 commit c957df6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dex/farm/src/base_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,6 @@ pub trait BaseFunctionsModule:

FC::check_and_update_user_farm_position(self, orig_caller, &payments);

let mut storage_cache = StorageCache::new(self);
self.validate_contract_state(storage_cache.contract_state, &storage_cache.farm_token_id);

FC::generate_aggregated_rewards(self, &mut storage_cache);

self.set_farm_supply_for_current_week(&storage_cache.farm_token_supply);

self.merge_from_payments_and_burn(payments, &token_mapper)
}

Expand Down

0 comments on commit c957df6

Please sign in to comment.