@@ -327,12 +327,12 @@ where
327327 ) {
328328 Ok ( imbalance) => Ok ( Some ( WithdrawnFee :: Tao ( imbalance) ) ) ,
329329 Err ( _) => {
330- let alpha_vec = Self :: fees_in_alpha :: < T > ( who, call) ;
331- if !alpha_vec. is_empty ( ) {
332- let fee_u64: u64 = fee. into ( ) ;
333- OU :: withdraw_in_alpha ( who, & alpha_vec, fee_u64) ;
334- return Ok ( Some ( WithdrawnFee :: Alpha ) ) ;
335- }
330+ // let alpha_vec = Self::fees_in_alpha::<T>(who, call);
331+ // if !alpha_vec.is_empty() {
332+ // let fee_u64: u64 = fee.into();
333+ // OU::withdraw_in_alpha(who, &alpha_vec, fee_u64);
334+ // return Ok(Some(WithdrawnFee::Alpha));
335+ // }
336336 Err ( InvalidTransaction :: Payment . into ( ) )
337337 }
338338 }
@@ -353,14 +353,14 @@ where
353353 match F :: can_withdraw ( who, fee) {
354354 WithdrawConsequence :: Success => Ok ( ( ) ) ,
355355 _ => {
356- // Fallback to fees in Alpha if possible
357- let alpha_vec = Self :: fees_in_alpha :: < T > ( who, call) ;
358- if !alpha_vec. is_empty ( ) {
359- let fee_u64: u64 = fee. into ( ) ;
360- if OU :: can_withdraw_in_alpha ( who, & alpha_vec, fee_u64) {
361- return Ok ( ( ) ) ;
362- }
363- }
356+ // // Fallback to fees in Alpha if possible
357+ // let alpha_vec = Self::fees_in_alpha::<T>(who, call);
358+ // if !alpha_vec.is_empty() {
359+ // let fee_u64: u64 = fee.into();
360+ // if OU::can_withdraw_in_alpha(who, &alpha_vec, fee_u64) {
361+ // return Ok(());
362+ // }
363+ // }
364364 Err ( InvalidTransaction :: Payment . into ( ) )
365365 }
366366 }
0 commit comments