pub fn ensure_exchange_claim_switch() -> DispatchResult {
			let is_disabled = Self::get_airdrop_state().block_exchange_request;

			if is_disabled {
				Err(Error::<T>::NewExchangeRequestBlocked.into())
			} else {
				Ok(())
			}
		}
/// Check weather node is set to block incoming exchange request
/// Return error in that case else return Ok
Check weather node is set to block incoming exchange request
Return error in that case else return Ok
Check weather node is set to block incoming exchange request Return error in that case else return Ok
pub fn ensure_exchange_claim_switch() -> DispatchResult {
			let is_disabled = Self::get_airdrop_state().block_exchange_request;
			if is_disabled {
				Err(Error::<T>::NewExchangeRequestBlocked.into())
			} else {
				Ok(())
			}
		}
pub fn ensure_exchange_claim_switch ( ) -> DispatchResult { let is_disabled = Self :: get_airdrop_state ( ) . block_exchange_request ; if is_disabled { Err ( Error :: < T > :: NewExchangeRequestBlocked . into ( ) ) } else { Ok ( ( ) ) } }
Check weather node is set to block incoming exchange request
Return error in that case else return Ok
Check weather node is set to block incoming exchange request Return error in that case else return Ok