pub fn query_collateral_info(
    querier: &QuerierWrapper,
    collateral_oracle: Addr,
    asset: String,
) -> StdResult<(Decimal, bool)> {
    let res: CollateralInfoResponse = querier.query(&QueryRequest::Wasm(WasmQuery::Smart {
        contract_addr: collateral_oracle.to_string(),
        msg: to_binary(&CollateralOracleQueryMsg::CollateralAssetInfo { asset })?,
    }))?;

    Ok((res.multiplier, res.is_revoked))
}
// queries only collateral information (multiplier and is_revoked), without price
queries only collateral information (multiplier and is_revoked), without price
queries only collateral information ( multiplier and is_revoked ) without price
pub fn query_collateral_info(
    querier: &QuerierWrapper,
    collateral_oracle: Addr,
    asset: String,
) -> StdResult<(Decimal, bool)> {
    let res: CollateralInfoResponse = querier.query(&QueryRequest::Wasm(WasmQuery::Smart {
        contract_addr: collateral_oracle.to_string(),
        msg: to_binary(&CollateralOracleQueryMsg::CollateralAssetInfo { asset })?,
    }))?;
    Ok((res.multiplier, res.is_revoked))
}
pub fn query_collateral_info ( querier : & QuerierWrapper , collateral_oracle : Addr , asset : String , ) -> StdResult < ( Decimal , bool ) > { let res : CollateralInfoResponse = querier . query ( & QueryRequest :: Wasm ( WasmQuery :: Smart { contract_addr : collateral_oracle . to_string ( ) , msg : to_binary ( & CollateralOracleQueryMsg :: CollateralAssetInfo { asset } ) ? , } ) ) ? ; Ok ( ( res . multiplier , res . is_revoked ) ) }
queries only collateral information (multiplier and is_revoked), without price
queries only collateral information ( multiplier and is_revoked ) without price
querier
&QuerierWrapper
collateral_oracle
Addr
asset
String
querier
&QuerierWrapper
collateral_oracle
Addr
asset
String