fn pools_balancing() -> DispatchResult {
		// If balancing of pools isn't required then collects_sales_list returns empty list
		// and next steps won't be processed.
		Self::collects_sales_list()?
			.iter()
			.try_for_each(|sale: &Sales| -> DispatchResult {
				let (max_supply_amount, target_amount) =
					Self::get_amounts(sale.supply_pool_id, sale.target_pool_id, sale.amount)?;
				Self::submit_unsigned_tx(
					sale.supply_pool_id,
					sale.target_pool_id,
					max_supply_amount,
					target_amount,
				);
				Ok(())
			})?;
		Ok(())
	}
/// Makes balancing of liquidation pools if it necessary.
Makes balancing of liquidation pools if it necessary.
Makes balancing of liquidation pools if it necessary .
fn pools_balancing() -> DispatchResult {
		// If balancing of pools isn't required then collects_sales_list returns empty list
		// and next steps won't be processed.
		Self::collects_sales_list()?
			.iter()
			.try_for_each(|sale: &Sales| -> DispatchResult {
				let (max_supply_amount, target_amount) =
					Self::get_amounts(sale.supply_pool_id, sale.target_pool_id, sale.amount)?;
				Self::submit_unsigned_tx(
					sale.supply_pool_id,
					sale.target_pool_id,
					max_supply_amount,
					target_amount,
				);
				Ok(())
			})?;
		Ok(())
	}
fn pools_balancing ( ) -> DispatchResult { // If balancing of pools isn't required then collects_sales_list returns empty list // and next steps won't be processed. Self :: collects_sales_list ( ) ? . iter ( ) . try_for_each ( | sale : & Sales | -> DispatchResult { let ( max_supply_amount , target_amount ) = Self :: get_amounts ( sale . supply_pool_id , sale . target_pool_id , sale . amount ) ? ; Self :: submit_unsigned_tx ( sale . supply_pool_id , sale . target_pool_id , max_supply_amount , target_amount , ) ; Ok ( ( ) ) } ) ? ; Ok ( ( ) ) }
Makes balancing of liquidation pools if it necessary.
Makes balancing of liquidation pools if it necessary .