fn do_claim(holder: &T::AccountId, pools: Vec<CurrencyId>) -> DispatchResult {
		pools.iter().try_for_each(|&pool_id| -> DispatchResult {
			ensure!(
				pool_id.is_supported_underlying_asset(),
				Error::<T>::NotValidUnderlyingAssetId
			);
			ensure!(
				T::ManagerLiquidityPools::pool_exists(&pool_id),
				liquidity_pools::Error::<T>::PoolNotFound
			);

			T::MntManager::update_mnt_borrow_index(pool_id)?;
			T::MntManager::distribute_borrower_mnt(pool_id, holder, true)?;
			T::MntManager::update_mnt_supply_index(pool_id)?;
			T::MntManager::distribute_supplier_mnt(pool_id, holder, true)?;
			Ok(())
		})
	}
/// Claim all the MNT accrued by holder in the specified markets.
/// - `holder`: The AccountId to claim mnt for;
/// - `pools`: The vector of pools to claim MNT in.
Claim all the MNT accrued by holder in the specified markets.
`holder`: The AccountId to claim mnt for;
`pools`: The vector of pools to claim MNT in.
Claim all the MNT accrued by holder in the specified markets . ` holder ` : The AccountId to claim mnt for ; ` pools ` : The vector of pools to claim MNT in .
fn do_claim(holder: &T::AccountId, pools: Vec<CurrencyId>) -> DispatchResult {
		pools.iter().try_for_each(|&pool_id| -> DispatchResult {
			ensure!(
				pool_id.is_supported_underlying_asset(),
				Error::<T>::NotValidUnderlyingAssetId
			);
			ensure!(
				T::ManagerLiquidityPools::pool_exists(&pool_id),
				liquidity_pools::Error::<T>::PoolNotFound
			);
			T::MntManager::update_mnt_borrow_index(pool_id)?;
			T::MntManager::distribute_borrower_mnt(pool_id, holder, true)?;
			T::MntManager::update_mnt_supply_index(pool_id)?;
			T::MntManager::distribute_supplier_mnt(pool_id, holder, true)?;
			Ok(())
		})
	}
fn do_claim ( holder : & T :: AccountId , pools : Vec < CurrencyId > ) -> DispatchResult { pools . iter ( ) . try_for_each ( | & pool_id | -> DispatchResult { ensure ! ( pool_id is_supported_underlying_asset ( ) Error T NotValidUnderlyingAssetId ) ; ensure ! ( T ManagerLiquidityPools pool_exists ( pool_id ) liquidity_pools Error T PoolNotFound ) ; T :: MntManager :: update_mnt_borrow_index ( pool_id ) ? ; T :: MntManager :: distribute_borrower_mnt ( pool_id , holder , true ) ? ; T :: MntManager :: update_mnt_supply_index ( pool_id ) ? ; T :: MntManager :: distribute_supplier_mnt ( pool_id , holder , true ) ? ; Ok ( ( ) ) } ) }
Claim all the MNT accrued by holder in the specified markets.
Claim all the MNT accrued by holder in the specified markets .
holder
&T::AccountId
pools
Vec<CurrencyId>
holder
&T::AccountId
pools
Vec<CurrencyId>