fn submit_unsigned_liquidation(borrower: T::AccountId, pool_id: CurrencyId) {
		let who = T::Lookup::unlookup(borrower);
		let call = Call::<T>::liquidate(who.clone(), pool_id);
		if SubmitTransaction::<T, Call<T>>::submit_unsigned_transaction(call.into()).is_err() {
			log::info!(
				target: "RiskManager offchain worker",
				"submit unsigned liquidation for \n AccountId {:?} CurrencyId {:?} \nfailed!",
				who, pool_id,
			);
		}
	}
/// Sends an unsigned liquidation transaction to the blockchain.
///
/// - `borrower`: the borrower in automatic liquidation.
/// - `pool_id`: the CurrencyId of the pool with loan, for which automatic liquidation
/// is performed.
Sends an unsigned liquidation transaction to the blockchain.
`borrower`: the borrower in automatic liquidation.
`pool_id`: the CurrencyId of the pool with loan, for which automatic liquidation
is performed.
Sends an unsigned liquidation transaction to the blockchain . ` borrower ` : the borrower in automatic liquidation . ` pool_id ` : the CurrencyId of the pool with loan for which automatic liquidation is performed .
fn submit_unsigned_liquidation(borrower: T::AccountId, pool_id: CurrencyId) {
		let who = T::Lookup::unlookup(borrower);
		let call = Call::<T>::liquidate(who.clone(), pool_id);
		if SubmitTransaction::<T, Call<T>>::submit_unsigned_transaction(call.into()).is_err() {
			log::info!(
				target: "RiskManager offchain worker",
				"submit unsigned liquidation for \n AccountId {:?} CurrencyId {:?} \nfailed!",
				who, pool_id,
			);
		}
	}
fn submit_unsigned_liquidation ( borrower : T :: AccountId , pool_id : CurrencyId ) { let who = T :: Lookup :: unlookup ( borrower ) ; let call = Call :: < T > :: liquidate ( who . clone ( ) , pool_id ) ; if SubmitTransaction :: < T , Call < T > > :: submit_unsigned_transaction ( call . into ( ) ) . is_err ( ) { log :: info ! ( target " " " \n \n " who pool_id ) ; } }
Sends an unsigned liquidation transaction to the blockchain.
Sends an unsigned liquidation transaction to the blockchain .
borrower
T::AccountId
pool_id
CurrencyId
borrower
T::AccountId
pool_id
CurrencyId