@@ -249,9 +249,6 @@ pub mod pallet {
249249 /// Liquidity mining is in `active` or `terminated` state and action cannot be completed.
250250 LiquidityMiningIsNotStopped ,
251251
252- /// LP shares amount is not valid.
253- InvalidDepositAmount ,
254-
255252 /// Account is not allowed to perform action.
256253 Forbidden ,
257254
@@ -470,7 +467,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
470467 /// - `reward_currency`: payoff currency of rewards.
471468 /// - `owner`: liq. mining farm owner.
472469 /// - `yield_per_period`: percentage return on `reward_currency` of all pools.
473- /// - `min_deposit`: minimum amount of LP shares to be deposited into liquidity mining by each user.
470+ /// - `min_deposit`: minimum value of LP shares to be deposited into liquidity mining by each user.
474471 /// - `price_adjustment`: price adjustment between `incentivized_asset` and `reward_currency`.
475472 /// This value should be `1` if `incentivized_asset` and `reward_currency` are the same.
476473 #[ allow( clippy:: too_many_arguments) ]
@@ -577,7 +574,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
577574 /// - `global_farm_id`: global farm id.
578575 /// - `planned_yielding_periods`: planned number of periods to distribute `total_rewards`.
579576 /// - `yield_per_period`: percentage return on `reward_currency` of all pools.
580- /// - `min_deposit`: minimum amount of LP shares to be deposited into liquidity mining by each user.
577+ /// - `min_deposit`: minimum value of LP shares to be deposited into liquidity mining by each user.
581578 fn update_global_farm (
582579 global_farm_id : GlobalFarmId ,
583580 planned_yielding_periods : PeriodOf < T > ,
@@ -1442,11 +1439,6 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
14421439 . as_mut ( )
14431440 . defensive_ok_or :: < Error < T , I > > ( InconsistentStateError :: GlobalFarmNotFound . into ( ) ) ?;
14441441
1445- ensure ! (
1446- deposit. shares. ge( & global_farm. min_deposit) ,
1447- Error :: <T , I >:: InvalidDepositAmount ,
1448- ) ;
1449-
14501442 //NOTE: If yield-farm is active also global-farm MUST be active.
14511443 ensure ! (
14521444 global_farm. state. is_active( ) ,
0 commit comments