Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Feb 22, 2024
1 parent e760365 commit f865799
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion locked-asset/proxy_dex/src/proxy_farm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ pub trait ProxyFarmModule:
opt_original_caller: OptionalValue<ManagedAddress>,
) -> DestroyFarmResultType<Self::Api> {
self.require_is_intermediated_farm(&farm_address);
self.require_is_intermediated_pair(&farm_address);
self.require_is_intermediated_pair(&pair_address);
self.require_wrapped_farm_token_id_not_empty();
self.require_wrapped_lp_token_id_not_empty();

Expand Down
5 changes: 1 addition & 4 deletions locked-asset/proxy_dex/tests/proxy_farm_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ use multiversx_sc_scenario::{
};
use num_traits::ToPrimitive;
use proxy_dex::{
proxy_farm::ProxyFarmModule, proxy_pair::ProxyPairModule,
wrapped_farm_attributes::WrappedFarmTokenAttributes,
wrapped_farm_token_merge::WrappedFarmTokenMerge,
wrapped_lp_attributes::WrappedLpTokenAttributes,
proxy_farm::ProxyFarmModule, proxy_pair::ProxyPairModule, wrapped_farm_attributes::WrappedFarmTokenAttributes, wrapped_farm_token_merge::WrappedFarmTokenMerge, wrapped_lp_attributes::WrappedLpTokenAttributes
};
use proxy_dex_test_setup::*;
use simple_lock::locked_token::LockedTokenAttributes;
Expand Down

0 comments on commit f865799

Please sign in to comment.